Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago