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

  Recover the corresponding encryption key

1. Recover the corresponding encryption key knowing that the first ciphertext word corresponds to plaintext "Recall".

  The organization internal and customer data

ESL Inc. is a large company that has been using a series of spreadsheets, access databases, and manual records to keep track of the majority of the organization's internal and customer data.

  The components of a traditional analysis model

The components of a traditional analysis model

  Design and implement a graphical user interface

Design and implement a graphical user interface (GUI) that let user draw geometrical object such as rectangles, circles. squares, and triangles. Create UML class diagram for your classes. Add JavaDoc comments to your classes.

  You need to define the various options used in archiving

congratulations you have just been awarded a small business grant from the federal government. you and several of your

  Can a computer system function without one of these element

- What purposes do CPUs, memory and I-O devices individually serve in a computer system? - How do these 3 elements work together to compute? - Can a computer system function without one of these elements?

  Own research findings on tcp hijacking

Submit a discussion that shares your own research findings on TCP hijacking

  What is the next step after creating a virtual hard disk

What is the next step after creating a virtual hard disk (VHD)?

  Construct the truth tables for the

Which of the following sentences are logical statements. Construct the truth tables for the following propositions

  Prepare properties in ltl

Let a three bit binary counter. Prepare these properties in LTL. Create a model which satisfies the specification and both the above properties.

  Cnditions under which full offsite backup is worth the cost

Discuss conditions under which it is worth the cost. Suggest some kind of compromise, lower cost solutions that still proved some recovery capabilities, and cases where these might be a preferred alternative.

  What is the difference between omega notation

What is the difference between Omega notation and big O notation in computer science algorithm analysis?

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