In Saudi Arabia, the Kudai Parking AreNa is a parking lot that is next to the Ajyad Police Station and close to the Power Plant. Kudai is a well-known parking space near Masjid al Haram. After parking there, you can take a taxi to Masjid al-Haram for 10-15 Riyals for a 10-minute drive. The parking is usually heavily occupied, and the following formula is used to compute the parking lot utilization: Percentage of Parking Lot Utilized Number of lots occupied Total number of lots Write a program that calculates the occupancy rate for each zone of a massive parking lot like Kudai. The program should start by asking for the number of zones in the parking lot. A loop should then iterate once for each zone. During each iteration, the loop should ask the user for the number of lots in the zone and the number of them that are occupied. After all the iterations, the program should display the number of lots the parking has, the number of them that are occupied, the number that is vacant, and the occupancy rate for the parking lot. Suggested Input Validation: Do not accept a value less than 1 for the number of zones. Do not accept a number less than 10 for the number of lots in a zone. Sample Output: Parking Lot Information System How many Zones does the Parking have? 4 How many lots does Zone 1 have? 8 Invalid. Enter 10 or more: 12 How many lots in Zone 1 is occupied? 9 How many lots does Zone 2 have? 44 How many lots in Zone 2 is occupied? 33 How many lots does Zone 3 have? 90 How many lots in Zone 3 is occupied? 82 How many lots does Zone 4 have? 100 How many lots in Zone 4 is occupied? 66 Number of Lots: 246 Occupied Lots: 190 Vacant Lots: 56 Percentage of Parking Lot Utilised: 77.24%

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
In Saudi Arabia, the Kudai Parking Area is a parking lot that is next to the Ajyad Police Station and close to the Power Plant. Kudai is a well-known parking space
near Masjid al-Haram. After parking there, you can take a taxi to Masjid al-Haram for 10-15 Riyals for a 10-minute drive. The parking is usually heavily occupied,
and the following formula is used to compute the parking lot uțilization:
Percentage of Parking Lot Utilized - Number of lots occupied + Total number of lots
Write a program that calculates the occupancy rate for each zone of a massive parking lot like Kudai. The program should start by asking for the number of
zones in the parking lot. A loop should then iterate once for each zone. During each iteration, the loop should ask the user for the number of lots in the zone
and the number of them that are occupied. After all the iterations, the program should display the number of lots the parking has, the number of them that
are occupied, the number that is vacant, and the occupancy rate for the parking lot.
Suggested Input Validation: Do not accept a value less than 1 for the number of zones. Do not accept a number less than 10 for the number of lots in a zone.
Sample Output:
Parking Lot Information System
How many Zones does the Parking have? 4
How many lots does Zone 1 have? 8
Invalid. Enter 10 or more: 12
How many lots in Zone 1 is occupied? 9
How many lots does Zone 2 have? 44
How many lots in Zone 2 is occupied? 33
How many lots does Zone 3 have? 90
How many lots in Zone 3 is occupied? 82
How many lots does Zone 4 have? 100
How many lots in Zone 4 is occupied? 66
Number of Lots: 246
Occupied Lots: 190
Vacant Lots: 56
Percentage of Parking Lot Utilised: 77.24%
Transcribed Image Text:In Saudi Arabia, the Kudai Parking Area is a parking lot that is next to the Ajyad Police Station and close to the Power Plant. Kudai is a well-known parking space near Masjid al-Haram. After parking there, you can take a taxi to Masjid al-Haram for 10-15 Riyals for a 10-minute drive. The parking is usually heavily occupied, and the following formula is used to compute the parking lot uțilization: Percentage of Parking Lot Utilized - Number of lots occupied + Total number of lots Write a program that calculates the occupancy rate for each zone of a massive parking lot like Kudai. The program should start by asking for the number of zones in the parking lot. A loop should then iterate once for each zone. During each iteration, the loop should ask the user for the number of lots in the zone and the number of them that are occupied. After all the iterations, the program should display the number of lots the parking has, the number of them that are occupied, the number that is vacant, and the occupancy rate for the parking lot. Suggested Input Validation: Do not accept a value less than 1 for the number of zones. Do not accept a number less than 10 for the number of lots in a zone. Sample Output: Parking Lot Information System How many Zones does the Parking have? 4 How many lots does Zone 1 have? 8 Invalid. Enter 10 or more: 12 How many lots in Zone 1 is occupied? 9 How many lots does Zone 2 have? 44 How many lots in Zone 2 is occupied? 33 How many lots does Zone 3 have? 90 How many lots in Zone 3 is occupied? 82 How many lots does Zone 4 have? 100 How many lots in Zone 4 is occupied? 66 Number of Lots: 246 Occupied Lots: 190 Vacant Lots: 56 Percentage of Parking Lot Utilised: 77.24%
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY