Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

The Melbourne Cricket Ground (MCG) has the following types of tickets and prices
Ticket Type                                       Price

Platinum                                            $210
Gold                                                  $160
Silver                                                $110
Bronze                                               $79
Active Area A                                      $49
Active Area B                                      $49

Write a program in Python that will ask for the number of ticket sold for each type of tickets one by one. That is, it will first ask "Please enter the number of Platinum tickets sold". Once the user enters the number of Platinum tickets sold it will then ask "Please enter the number of Gold tickets sold" and so on. Finally the program will compute and display the sale amount for each ticket type and as well as the total sale amount.

A typical example of the display of your program can be as follows. Your program MUST follow the same display style.
The Melbourne Cricket Ground (MCG)
Enter the number of Platinum tickets sold: 100
Enter the number of Gold tickets sold: 1
Enter the number of Silver tickets sold: 15
Enter the number of Bronze tickets sold: 5
Enter the number of Active A tickets sold: 5
Enter the number of Active B tickets sold: 10
The sale amount of Platinum tickets (in dollars): 21000
The sale amount of Gold tickets (in dollars): 1600
The sale amount of Silver tickets (in dollars): 1650
The sale amount of Bronze tickets (in dollars): 395
The sale amount of Active A tickets (in dollars): 245
The sale amount of Active B tickets (in dollars): 490
The total sale amount: 25380
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 at 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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91605529

Have any Question?


Related Questions in Computer Engineering

Suppose you take out a loan for 9000 at 12 ordinary

Suppose you take out a loan for $9,000, at 12% ordinary interest. If the amount of interest is $762.00, what is the time period? (Round any fraction to the next higherday)

Identify economic decision that is driven by a behavioral

Identify economic decision that is driven by a behavioral bias rather than by pure rational behavior. why are they differ today?

Computer architecture amp operating systems assessment -

Computer Architecture & Operating Systems Assessment - Computer Architecture Assignment Learning Outcomes - a) Understand how to evaluate the performance of a computer system. b) Understand the five classic components of ...

Explain how amazon and walmart companies use information

Explain how Amazon and Walmart companies use Information and Communication Technologies (ICT) in their competitive strategies. Highlight the differences in their use of ICT.

Restaurant management database project the restaurant

Restaurant Management Database Project : The restaurant maintains the catalog for the list of food and beverage items that it provides. Apart from providing food facility at their own premises, the restaurant takes order ...

By chance does any know what percentage of the world gdp

By chance does any know What percentage of the world GDP has the Global 500 contributed most recently?

A what is gdp deflator and how is it calculatedb if gdp

(a) What is GDP deflator and how is it calculated? (b) If GDP deflator for the year 2014 and 2015 are 105 and 108 respectively, then calculate the increase in price level between 2014 and 2015.

Question consider how deming and tqm would have dealt with

Question: Consider how Deming and TQM would have dealt with (or avoided) the problems at Boeing. What does a TQM initiative look like in an IT department? How would IT support Total Quality at Boeing? The response must b ...

Question erd assignmentcreate a crows foot erd following

Question: ERD Assignment Create a Crow's foot ERD following the business rules for the ProdCo Company. 1. Each sales representative writes many invoices 2. Each invoice is written by one sales representative 3. Each sale ...

Any help will be appreciatedscenarionbspyou are a

Any help will be appreciated Scenario: You are a networking and communications consultant working for HoustonComm Services, Inc, further referred to as HCS. HCS is a company providing technology consulting services to st ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As