Create an algorithm-pseudocode called stadiumalgorithm

Assignment Help Python Programming
Reference no: EM131870955

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.

Reference no: EM131870955

Questions Cloud

About the expected interest rate : What is the yield on 2-year Treasury securities? What is the yield on 3-year Treasury securities?
What is the point-of-sale system : What is the point-of-sale system? How it works in a retail business environment? What have you learned from reading this article?
Estimate the company energy cost behavior : Estimating Cost Behavior; High-Low Method - Use the high-low method to estimate the company's energy cost behavior and express it in equation form
What is the maturity risk premium for two-year security : A 2-year Treasury security yields 8.25%. What is the maturity risk premium for the 2-year security?
Create an algorithm-pseudocode called stadiumalgorithm : Create an algorithm (pseudocode) called stadiumAlgorithm.txt. Code the program as stadium.py. Upload your pseudocode and your source code (stadium.py).
How many bags of coffee beans should be ordered : How many bags of coffee beans should be ordered from the wholesaler to minimize expected cost with such a buy back option? Answer in integer bags.
What is the default risk premium on corporate bond : A Treasury bond that matures in 10 years has a yield of 4.75%. What is the default risk premium on the corporate bond?
What is the sugar found in the nucleotides of dna : -What is the sugar found in the nucleotides of DNA? -Out of these (guanine, cytosine, adenine, uracil, thymine) which are pyrimidines?
What is the current price of the stock : What is the current price of the stock-The price per share is

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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