Question 2 (10 Points) Write a Java program for a hotel that determines the price of a room based on number of nights, b

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 2 (10 Points) Write a Java program for a hotel that determines the price of a room based on number of nights, b

Post by answerhappygod »

Question 2 10 Points Write A Java Program For A Hotel That Determines The Price Of A Room Based On Number Of Nights B 1
Question 2 10 Points Write A Java Program For A Hotel That Determines The Price Of A Room Based On Number Of Nights B 1 (79.4 KiB) Viewed 55 times
Question 2 (10 Points) Write a Java program for a hotel that determines the price of a room based on number of nights, bed type, and room service. Ask the user to type "single", "queen", or "king" for bed type (ignore case) and "normal" or "gold" for gold service (ignore case). The price per night is BD 30.0 for single bed, BD 35.0 for queen bed, and BD 40.0 for king bed. Additionally, for normal service it is free of charge but for gold add BD 1.0 per night for single bed, BD 1.5 per night for queen bed, and BD 2.0 per night for king bed. Assume all the data entered by the user is valid. SAMPLE INPUT/OUTPUT How many nights? 3 Bed type? queen Room Service? gold Total price is BD 109.5
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply