Digital Academic Solutions

Mount Everest Motor Racing Circuit (MEMRC) Python Program

SOLUTION AVAILABLE AT: http://libraay.com/downloads/mount-everest-motor-racing-circuit-memrc/

Problem:

Inspired by the success of the Mount Panorama Motor Racing Circuit, International Motor Sports Authority (IMSA) has recently built a motor racing circuit on Mount Everest that will be the most challenging and thrilling motor racing event on earth. Mount Everest Motor Racing Circuit (MEMRC) has the following types of tickets and prices.

Table 1: Ticket Type and Price
Ticket Type Price
General Admission $90
Reserved Grandstand Seating $150
The Precinct $250
Lunch Packages on Everest $350

IMSA employs you to build a Ticket Management System (TMS) so that their Ticket Officers can easily compute the prices of various tickets sold.

Write a program in Python that will ask a Ticket Officer for the number of tickets sold for each type of tickets one by one. That is, it will first ask a Ticket Officer “Please enter the number of tickets sold for General Admission”. Once the Ticket Officer enters the number of tickets sold for General Admission it will then ask “Please enter the number of tickets sold for Reserved Grandstand Seating” and so on. Finally, the program will compute and display the total sale amount for each ticket type, and then the combined total cost of all tickets.

A typical example of the display of your program can be as follows. Your program MUST follow the same display style.
———————————————————————————————-
Mount Everest Motor Racing Circuit (MEMRC)
———————————————————————————————–
Please enter the number of tickets sold for General Admission: 100
Please enter the number of tickets sold for Reserved Grandstand Seating: 70
Please enter the number of tickets sold for The Precinct: 15
Please enter the number of tickets sold for Lunch Packages on Everest: 5

Thank You!

The sale amount of tickets for General Admission (in dollars): 9000
The sale amount of tickets for Reserved Grandstand Seating (in dollars): 10500
The sale amount of tickets for The Precinct (in dollars): 3750
The sale amount of tickets for Lunch Packages on Everest (in dollars): 1750

The total sale amount: 25000

Good Bye.

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found athttp://www.unf.edu/~broggio/cop2221/2221pseu.htm.

Select 3 sets of test data that will demonstrate the ‘normal’ operation of your program: that is test data that will demonstrate what happens when VALID input is entered. Select another 2 sets of test data that will demonstrate the “abnormal” operation of your program. Set it out in a tabular form: the test data, the reason it was selected, the output expected as a result of using that test data, and finally leave space to record the output actually observed when the test data is used.

Implement your algorithm in Python. Comment your code as necessary to explain it clearly.

Run your program using the test data you have selected and save the output it produces in a text file.

Submit:

1. Your algorithm.
2. The table recording your chosen test data.
3. Source code for your Python implementation.
4. Output listings demonstrating the results of using the test data.

It is important that the output listings are not edited in any way.

Solution:

SOLUTION AVAILABLE AT: http://libraay.com/downloads/mount-everest-motor-racing-circuit-memrc/

Leave a Reply

Your email address will not be published. Required fields are marked *



Solutions Authored by 15+ Years Experienced Industry Expert