Create an algorithm pseudocode called stadiumalgorithmtxt


Assignments

Using Python 3.6, complete each assignment below.

Assignment 1

For the following program:

a) Create an algorithm (pseudocode) called stadiumAlgorithm.txt
b) Code the program as stadium.py.
c) Upload your pseudocode and your source code (stadium.py).

Stadium Seating

There are three seating categories for a softball game. Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold. Then display the total number of tickets sold, the amount of income generated from each class and the total ticket sales.

Note: Use constants for the seat prices.

Sample output: WELCOME TO THE BROWN STADIUM!!

Please enter the number of Class A seats sold: 100
Please enter the number of Class B seats sold: 200
Please enter the number of Class C seats sold: 150
Total number of tickets sold: 450

Income Generated:
Class A: $1500.00
Class B: $2400.00
Class C: $1350.00
Total: $5250.00

Assignment 2

For the following program:

1) Create an algorithm called exemptAlgorithm.txt
2) Create the source code called exempt.py
3) Upload your algorithm and source code.

Exempt

You will be writing a program to determine whether or not a student is exempt from the final exam in COP1020C.

Your program should do the following:

• Prompt the user for a student's average and number of days missed.

Input Validation:

• Average must be between 0 and 100
• Number of days missed cannot be less than 0.

Be sure to validate each value separately!

• Use the following conditions to display a message indicating whether or not a student is exempt from the final exam.

If exempt, indicate why.

o Average is at least 96
o Average is at least 93 and days missed are less than 3
o Average is at least 90 and student has perfect attendance

Assignment 3

For the following program:

1) Create an algorithm called surveyAlgorithm.txt
2) Create the source code called survey.py
3) Upload your algorithm and source code.

Write a program that uses the following menu to keep track of student information:

1) Enter a student
2) Quit

If the user chooses 1, prompt the user to enter a grade level (to be chosen from the given menu) and a test score. Keep track of the following:

• Total number of Freshman, Sophomores, Juniors, and Seniors
• Total number of students entered
• Total of all test scores entered

When the user chooses to quit, calculate:

• The percentage of students that fall into each category
• The average of all the test scores entered

Display your results as shown.

Input validation:

• The user must choose valid options from the menus.
• The user must enter a test score between 0 and 100.

Include the following in your algorithm:

If statements/Loops:

• Main menu loop
• Input validation loop for grade level menu
• Input validation loop for test score

Calculations:

• Grade level counters
• Total students
• Grade level percentages
• Total test score
• Average test score.

Solution Preview :

Prepared by a verified Expert
Python Programming: Create an algorithm pseudocode called stadiumalgorithmtxt
Reference No:- TGS02666450

Now Priced at $60 (50% Discount)

Recommended (98%)

Rated (4.3/5)