Question: 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 

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

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 Algorithms Questions!