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

  Write lines of code as instructed in steps

Write lines of code as instructed in Steps

  Calculate delay in network and data loss

For a 1-Gbps network operating over 5000 km, the delay is the limiting factor, not the bandwidth. Consider a MAN with the average source and destination 20 km apart.

  Make databases useful to corporations

Evaluate the tools, technology, and trends that make databases useful to corporations. Provide an example of a corporate database and how your tools and technology would be used in the organization of your choice

  Describe how all the processess could be completed

a system that is in an unsafe state is not necessarily deadlocked. explain why this is true. give an example of such a system ( in an unsafe state) and describe how all the processess could be completed without causing deadlock to ocur

  Create a visual basic program

Create a Visual Basic program that creates a bill for an automobile repair shop. The shop bills customers at the rate of $35 per hour for labor. Parts and supplies are subject to a 5% sales tax.

  Write a statement that passes the value 4

1) Examine the following function header, the write an example call to the function. void showValue(int quantity)

  Create an online questionnaire

Create an online questionnaire using your account on SurveyMonkey® or QuestionPro, Give your participants a few days to complete the online questionnaire.

  Esper is a component for complex event processing

Esper is a component for complex event processing (CEP). We use Esper in this exercise to learn about stream database systems and complex event processing. The scenario used in the exercise is building a stock trading robot. The events (ticks) are..

  Using a competitive ratio measure

Imagine you are standing next to a long fence, extending as far as you can see in both directions. You want to cross the fence and you know that somewhere it has a hole you can go through. But, you don't know whether the hole is to your right or..

  Integer expression evaluator this program must use stacks

this program must use stacks in order to evaluate integer expressions. your program need only implement the following

  Describe the importance of using sub queries

Extracting and interpreting data can be very valuable to an organization. Describe the importance of using sub queries in a database system. Provide at least two business case scenarios to support your response.

  Find the computes and displays the number of square feet

You need to find the computes and displays the number of square feet and the number of square meters in 1/4 acre of land.

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