2. Hotel Occupancy % - Ask the user to input a percentage (a number from 0-100)....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Briefly describe ASCII and Unicode and draw attention to any relationship between them. [3 marks] (b) Briefly explain what a Reader is in the context of reading characters from data. [3 marks] A...
-
A force F = (3.00 N)i + (7.00 N)j + (7.00 N)k acts on a 2.00 kg mobile object that moves from an initial position of di = (3.00 m)i (2.00 m)i + (5.00 m)k to a final position of df = (5.00 m)i +...
-
A hydrogen atom emits a photon that has momentum with a magnitude of 5.452 x 10-27 kg ? m/s. This photon is emitted because the electron in the atom falls from a higher energy level into the n = 1...
-
Jason Furman served as the chairman of the White House Council of Economic Advisers under President Obama. In an opinion column in the Wall Street Journal discussing President Trumps tax reform...
-
Helen, a Hollywood actress, was required to do a dangerous stunt for an adventure movie. She insisted that a stunt actress perform the dangerous stunt, but the director wanted a close-up shot of...
-
Capacity and product mix decisions, linear programming Xu Company makes two types of wood doors: standard and deluxe. The doors are manufactured in a plant consisting of three departments: cutting,...
-
19.A radioactive -emission. A detector records n -particles in 2s and by next 2s (accumulatively) it records 1.1 n -particle. Number of -particles recorded by detector after a long time, is (1) 11n...
-
what is Data Manipulation Language ? How is it related to DBMS ?
-
Consider the following 5-pin net, where so is the source, and the other four points are sinks. So (a) Draw the Rectilinear Minimum Spanning Tree (RMST). What is its total wirelength? (b) Draw the...
-
Briefly explain the approach you would take to try to identify which microbial groups are involved in PCP degradation in this soil (5%) Are there any further tests you would recommend that the EPA...
-
5) On the graphs below show the difference between a change in price and a change in demand. Fully label graphs for full marks! (2+2 marks) Change in price Change in demand X 6) A change in the price...
-
Suppose the factory can pollute but the resorts are entitled to damages (payment) for any harms caused by the factory's pollution on the lake. If the factory and the resorts can bargain with zero...
-
What is a bonds yield to maturity? How does the price paid for a bond affect its yield to maturity? What are municipal bonds? Why are they issued? Are all municipal bonds free from default risk? What...
-
In a 4-week study about the effectiveness of using magnetic insoles to treat plantar heel pain, 54 subjects wore magnetic insoles and 45 subjects wore nonmagnetic insoles. The results are shown at...
-
Conduct a VRIO analysis by ranking Husson University (in Maine) business school in terms of the following six dimensions relative to the top three rival schools. If you were the dean with a limited...
-
Write a user-defined function that sorts the elements of a vector from the largest to the smallest. For the function name and arguments, use y=downsort (x). The input to the function is a vector x of...
-
The U.S. population in selected years between 1815 and 1965 is listed in the table below. Determine a quadratic equation in the form P = a2t2 + at1 + a0, where t is the number of years after 1800 and...
-
The area of the aortic valve, Av in cm2, can be estimated by the equation (Hakki Formula): Av = QPG where Q is the cardiac output in L/min, and PG is the difference between the left ventricular...
-
A \(1.0-\mathrm{cm}\)-tall object is \(60 \mathrm{~cm}\) in front of a diverging lens that has a \(-30 \mathrm{~cm}\) focal length. Calculate the image position and height.
-
A 3.0-cm-tall object is \(15 \mathrm{~cm}\) in front of a convex mirror that has a \(-25 \mathrm{~cm}\) focal length. Calculate the image position and height.
-
A 3.0-cm-tall object is \(45 \mathrm{~cm}\) in front of a concave mirror that has a \(25 \mathrm{~cm}\) focal length. Calculate the image position and height.
Study smarter with the SolutionInn App