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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:10
What are the major differences between injection molding and extrusion?
Answers: 2
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
question
Mathematics, 27.11.2020 15:20
question
Mathematics, 27.11.2020 15:20
question
Biology, 27.11.2020 15:30
question
English, 27.11.2020 15:30
question
Chemistry, 27.11.2020 15:30
question
Mathematics, 27.11.2020 15:30
question
World Languages, 27.11.2020 15:30
Questions on the website: 13722367