Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to improve this code to get same output CWindows system32cmd.exe BlueMont Hotel Enter the location for this hotel chain : LA Enter total number

How to improve this code to get same output

image text in transcribed
C\\Windows \\system32\\cmd.exe BlueMont Hotel Enter the location for this hotel chain : LA Enter total number of floors on this hotel: 1 Enter total number of rooms on floor 1 : 10 How many SINGLE rooms are occupied on the 1 th floor? 10 low many DOUBLE rooms are occupied on the 1 th floor? 1 low many KING rooms are occupied on the 1 th floor? 0 How many SUITES are occupied on the 1 th floor? 0 Total number of occupied rooms exceeds the total number of rooms on this floor. Please try again! ! Enter total number of rooms on floor 1 : 20 How many SINGLE rooms are occupied on the 1 th floor? 10 low many DOUBLE rooms are occupied on the 1 th floor? 2 low many KING rooms are occupied on the 1 th floor? 2 How many SUITES are occupied on the 1 th floor? 2 BlueMont Hotel located at LA Today's Room Rates Single Room Double Room King Room Suite Roon 60 75 100 150 Hotel Income 1250 Total # of Rooms 20 Total # of Occupied Rooms 16 Total # of Unoccupied Rooms 4 Occupancy Rate 80 . 00% Ith Floor with 20 rooms has the least # of rooms. Press any key to continue

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

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions