Write an algorithm in structured english

Assignment Help Basic Computer Science
Reference no: EM13934643

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.

Reference no: EM13934643

Questions Cloud

Create a form application : Create a form that has a text area that will hold Mission Title and Adjusted Total Box Office Profit data.
What is the highest rate you can afford : You want to borrow $99,000 from your local bank to buy a new sailboat. You can afford to make monthly payments of $2,150, but no more. Assuming monthly compounding, what is the highest rate you can afford on a 54-month APR loan?
Considering the clinical issue of patient : Reply to a letter written by a local prescriber by considering the clinical issue of patient and using an academic writing (UK style). Use BNF, SPCs on medicines.org.uk, national guidance and medical journals as reference.
Establish and maintain payroll system prepared manually : Establish and Maintain Payroll system prepared on a computer programme and prepared manually. How much Holiday leave would you tell her she has?
Write an algorithm in structured english : 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 w..
Choice of two investment accounts : You have your choice of two investment accounts. Investment A is a 14-year annuity that features end-of-month $2,000 payments and has an interest rate of 8.5 percent compounded monthly. Investment B is a 8.0 percent continuously compounded lump sum i..
How policies have changed the legal landscape in the us : You have just graduated from College with a degree in the Criminal Justice program and acquired your dream career working with the National Criminal Justice Reference Service (NCJRS).Address how 2 of the following databases, technology tools, and p..
Deceptive of quoting interest rates called add on interest : This problem illustrates a deceptive way of quoting interest rates called add-on interest. Imagine that you see an advertisement for Crazy Judy’s Stereo City that reads something like this: “$1,000 Instant Credit! 16.1% Simple Interest!
What processes macromolecules transported in, out of cell : By what processes are macromolecules transported in and out of a cell? Ideas are examined to illustrate.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd