Question 2 (10 Points) Write a Java program for a hotel that determines the price of a room based on number of nights, b
Posted: Sun Jul 10, 2022 11:27 am
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