subject

Write a program that keeps track of where cars are located in a parking garage to estimate the time to retrieve a car when the garage is full. This program will demonstrate the following:How to create a list for use as a stack, How to enter and change data in a stack. Solving the ProblemStep 1In Python, the stack data structure is actually implemented using the list data structure with a few additional functions. These functions come as part of the list structure, so it is really more about how to access the list to make it function like a stack rather than it actually being a different data structure from the list. Step 2To add cars to the stack, use the append method of the list structure like you would with any normal list. Step 3To find how long it will take to retrieve a certain car, you will have to use the pop() function of the list until you find the required vehicle in the garage stack and count the number of vehicles. Step 4Once the number of cars in front of the vehicle are found, the time taken to retrieve the car can be calculated based on the average time it takes to move a vehicle plus the time to retrieve the car. Step 5Finally, the estimated time to retrieve the vehicle can be output to the user to inform the car owner. Documentation Guidelines:Use good programming style (e. g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
When you collaborate or meet with a person or group online, it is called
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
You know the right answer?
Write a program that keeps track of where cars are located in a parking garage to estimate the time...
Questions
question
Mathematics, 02.11.2020 03:40
question
English, 02.11.2020 03:40
question
Mathematics, 02.11.2020 03:40
question
Mathematics, 02.11.2020 03:40
question
Mathematics, 02.11.2020 03:40
Questions on the website: 13722363