Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
image text in transcribed
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 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 Kudal. 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%

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_2

Step: 3

blur-text-image_3

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions