Question: QUESTION 1 15 points Write a program that can request a number of beds. Based on the number of beds, the system can display the


QUESTION 1 15 points Write a program that can request a number of beds. Based on the number of beds, the system can display the room No and the price. Use the sample output as a guide. The system will update the screen. Compile and save as ML Your Name.c. Copy-paste the successfully compiled code in the space provided Table 1.0 noorBed price 1 150 2 300 450 Others not available RoomNo Room150 Room250 Room350 Sample of output 1 15.01 O o noOfBed 1 2 3-5 Others Table TU price 150 300 450 not available RoomNo Room150 Room250 Room350 Sample of output: Enter no of beds: 1 How many room?1 1 Room150 the total is 150.00 Program ended with exit code: 0 Enter no of beds: 4 How many room?2 2 Room350 the total 18 900.00 No room available Program ended with exit code: 0 Enter no of beda: 7 He room available Program ended with exit code: 0 Cc: Save and Submit to save and submit Chick Save aners to save all answers, QUESTION 1 15 points Write a program that can request a number of beds. Based on the number of beds. the system can display the room No and the price, use the sample outout as a guide. The system update the screen. Compile and save as ML_Your Name.c. Copy paste the successfully compiled code in the space provided Table 1.0 noOfBed price 150 2 300 3-5 450 Others not available RoomNo Room! SO Room250 Room350
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
