Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in C++, use classes and comment on the code, please Scenario The users will be able to set the number of floors on the

Code in C++, use classes and comment on the code, please

Scenario

The users will be able to set the number of floors on the building, the number of offices on each floor, the rent of each office per month at the start of the program. They will be able to see the number of empty offices in total within the building and as well as the number of offices available per floor.

Output of the program:

Here is a sharable link to the google docs file to see the output of the program if it is hard to see:

https://docs.google.com/document/d/1n46aLCI8-lYRt_q2kqkD-FSLWxBikWYhyJWHR-HQbJI/edit?usp=sharing

image text in transcribed

Hi welcome to the work Environment!! Enter the number of floors in the building: 3, Enter the number of offices per floor : 2 - Number of underscores should be equivalent to the total number of spaces the input + output values Floor: 1 Would you like to occupy an office on floor: 1(number of offices available: 2) : Yes * The program should keep on going if the user input capslock or lowercase characters for (Yes) Enter a monthly fee: 2000 What is the name of the office: Orthodontist Description of the office: Best Orthodontist on the market!!! Set the first date of payment (dd/mm/yyyy): 12/13/2020 *The date is incorrect so asks for the date once again Invalid date! Re-type the date dd/mm/yyyy): 12/12/2020 Would you like to occupy another office on floor: 1 (number of offices available: 1) : No Number of offices are decreased to 1 Moving onto floor: 2!! Would you like to occupy an office on floor: 2 (number of offices available: 2) : YES - -- -- - - - -- - -- - - - - - - - - - -- -- - - Enter a monthly fee: -5000 Re-Enter the monthly fee: 5000 What is the name of the office: 2, Re-Enter the office name: Sushi market Description of the office: Nice Seafood :) Set the first date of payment (dd/mm/2020): 04/02 * From the first date inputted it keeps track of the date Would you like to occupy another office on floor: 2 (number of offices available: 1) : YES - -- - -- - - - -- - Enter a monthly fee: 4000 What is the name of the office: Burger King Description of the office: We sell Burgers :) Set the first date of payment (dd/mm/2020): 05/08, ------------------- Moving onto floor: 3!! Would You like to occupy an office on floor: 3 (number of offices available: 2) : No - - - - - - -- - - -- - --- -- - - -- -- -- - Congrats!! you have completed the interface of the building

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

More Books

Students also viewed these Databases questions

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago