subject
Engineering, 13.11.2019 18:31 pineapplepizaaaaa

Write your java code in the area on the right. use the run button to compile and run the code. clicking the run checks button will run pre-configured tests against your code to calculate a grade. import java. util. scanner; public class shadyrestroom2 { // modify the code below public static void main (string args[]) { int selection; int price; string result; final int queen = 1, king = 2, suite = 3; final int qprice = 125, kprice = 139, sprice = 165; final string qstring = "queen bed", kstring = "king bed", sstring = "suite with a king bed and pull-out couch", invalidstring = "an invalid option"; scanner in = new scanner(system. in); system. out. println("\t\n\nmenu\n"); system. out. println("(" + queen + ") " + qstring); system. out. println("(" + king + ") " + kstring); system. out. println("(" + suite + ") " + sstring); system. out. print("enter selection (1, 2, or 3) > > "); selection = in. nextint(); if(selection == queen) { result = qstring; price = qprice; } else if(selection == king) { result = kstring; price = kprice; } else if (selection == suite) { result = sstring; price = sprice; } else { result = invalidstring; price = 0; } system. out. println("you selected " + result + " $" + price); } }

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, niicoleassssssf
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
image
Engineering, 04.07.2019 18:10, Tyrant4life
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
image
Engineering, 04.07.2019 18:10, Larkinlover703
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
image
Engineering, 04.07.2019 19:10, gabrielaperezcz
Air inially occupying a volume of 1 m2 at 100 kpa, 27 c undergoes three internally reversible processes in series. process 1-2 compression to 500 kpa during which pv constant process 2-3 adiabatic expanslon to 100 kpa process 3-1: constant-pressure expansion to 100 kpa (a) calculate the change of entropy for each of the three processes. (b) calculate the heat and work involved in each process. (c) is this cycle a power cycle or refrigeration cycle?
Answers: 3
You know the right answer?
Write your java code in the area on the right. use the run button to compile and run the code. click...

Questions in other subjects:

Konu
Arts, 05.05.2020 23:26