Question: Do this using PYTHON: In this compendium, the project the bus is described. In the project, the whole is thus assessed. The work with planning,

Do this using PYTHON:

In this compendium, the project "the bus" is described. In the project, the whole is thus assessed. The work with planning, implementation, troubleshooting and evaluation. And at the examination you will have to communicate the program, simply tell about it. And how you worked with the coding. You must do a school project where you must register people and their age and gender, who sit down and getting off a bus. For this purpose, you think that you should use your knowledge of programming. Based on this bus, you should be able to calculate, for example, the average age, as well as how many males there are and female passengers present.

In this phase you will create your program - simply code. In addition to the program working as it should, requirements are also placed on how you code. Consider, for example, code structure, appropriate identifiers and how you presents the program to the user. When the program can be described as complete, you should test it.

In the object minibus there should be a vector that keeps track of 25 passengers. Each element in the vector is an age. Note that it should be just a vector and not a list. In sodacrate, there should be a switch-case menu where the options are linked to different methods. These methods are: 1. Add a passenger 2. Print the bus, or rather print all ages of passengers. 3. Calculate the total age of all passengers. 4. Exit the program Under the Run() method, code must therefore be written as prints text welcoming the user and then get a list of what things you can do. This choice should be put in a loop so the program doesn't shuts down after selecting something. You can choose how big the vector should be. You shouldn't be able to fit more passengers than what that can fit. If the bus is full, you will be notified of this and the passenger cannot get on.

The last step is to make an evaluation of this project. It is important that you critically examine your own work and convey it in writing, and where you connect the original plan, how well the program works and what errors occurred during testing and how these were resolved. The purpose of this is of course to become a better programmer and not to do about the same mistake again.

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