Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Hotel Occupancy % - Ask the user to input a percentage (a number from 0-100). Validate that the number entered is within this

 

2. Hotel Occupancy % - Ask the user to input a percentage (a number from 0-100). Validate that the number entered is within this range. If it is not, display a message saying "Incorrect - not between 0-100". If it is a valid number, display the associated % according to the following criteria: o A 90-100 - Green o B-80-90 Blue o C-65-79- Yellow o D-51-64 - Black o F-0-50 Red

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

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Algorithms questions

Question

Explain withdrawal risk?

Answered: 1 week ago

Question

What is the decision facing Lexus?

Answered: 1 week ago