Question: #Write program prompting user to enter room capacity ( i . e . , maximum number of guests that can stay in a room )

#Write program prompting user to enter room capacity (i.e., maximum number of guests that can stay in a room) and total number of guests.
#Compute and display the minimum number of rooms required for the guests to stay.
#Use math function to round the result up to the next integer
#Display result in format below
#Examples:
#Enter room capacity: 5
#Enter total number of guests: 6
#Room capacity: 5
#Number of guests: 6
#Number of rooms required: 2
#Enter room capacity: 10
#Enter total number of guests: 1
#Room capacity: 10
#Number of guests: 1
#Number of rooms required: 1
#Enter room capacity: 7
#Enter total number of guests: 50
#Room capacity: 7
#Number of guests: 50
#Number of rooms required: 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!