Related questions
PLEASE USE PYTHON PLEASE (give the same output as the instruction given)
Program Specifications Write a program to calculate a course grade given points for homework, quizzes, Survey, and Pratice question Grades are calculated differently for undergrads, grads and distance learners.
Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress.
Step 1 Read from input student status (str). If input is not one of "UG" (undergrad), "G" (grad), or "DL" (distance learner), print an error message and exit the program. Otherwise read from input floats for homework points, quiz points, Survey, and Practice question score. Calculate each category's average using maximum points for homework (800), quizzes (400), Survey(150), and Practice question (200). Output category averages as a percentage using print(f"Homework: {homework:2.1f}%"). Submit for grading to confirm two tests pass.
Ex: If the input is:
UG 600.0 300.0 120.0 185.0
The output is:
Homework: 75.0% Quizzes: 75.0% Survey: 80.0% Practice question: 92.5%
Ex: If the input is:
TL 600 300 120 180
The output is:
Error: student status must be UG, G or DL
Step 2 Set any average to 100% if average is above 100%. Submit for grading to confirm three tests pass.
Ex: If the input is:
UG 700.0 300.0 200.0 205.0
The output is:
Homework: 87.5% Quizzes: 75.0% Survey: 100.00% Practice question: 100.0%
Step 3 Calculate the course average based on student status using the table below. Output the course average. Submit for grading to confirm five tests pass.
| Category | UG | G | DL |
|---|---|---|---|
| Homework | 20% | 15% | 5% |
| Quizzes | 20% | 5% | 5% |
| Survey | 30% | 35% | 40% |
| Practice question | 30% | 45% | 50% |
Ex: If the input is:
G 800.0 400.0 100.0 100.0
The output is:
Homework: 100.0% Quizzes: 100.0% Survey: 66.7% Practice question: 50.0% G average: 65.8%
Step 4 . Identify the course letter grade based on the course average using the table below. Output the course letter grade. Submit for grading to confirm all tests pass.
| Average | Grade |
|---|---|
| at least 90.0 | A |
| at least 80.0 and less than 90.0 | B |
| at least 70.0 and less than 80.0 | C |
| at least 60.0 and less than 70.0 | D |
| less than 60.0 | F |
Ex: If the input is:
DL 600.0 300.0 120.0 150.0
The output is:
Homework: 75.0% Quizzes: 75.0% Survey: 80.0% Practice question: 75.0% DL average: 77.0% Course grade: C
Step by stepSolved in 2 steps with 4 images
- Python programmingarrow_forwardPYTHON!!! The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: The month number (beginning with 1) The current total balance owed The interest owed for that month The amount of principal owed for that month The payment for that month The balance remaining after payment The amount of interest for a month is equal to balance ×ばつ rate / 12. The amount of principal for a month is equal to the monthly payment minus the interest owed. An example of the program input and output is shown below: Enter the puchase price: 200 (SEE IMAGE FOR PURCHASE PRICE CHART) Results you should get: Input: 200 Output: Purchase price: 200...arrow_forwardPython Assignment 4-4 Write a program to create a list of employees in various departments Input The number of departments The number of employees in in the departments NOTE: Each department has the same number of employees Processing Get the number of departments Get the number of employees per department Create a loop to enter the department names For each department list the names of the employees Output Sample below: Department 1: Accounting ========================== Employee 1: Sam Smith Employee 2: Amy Adams Employee 3: Charles Cook Department 2: Human Resources ========================== Employee 1: Betty Blake Employee 2: Mary Miller Employee 3: Sally Smitharrow_forward
- Assignment-5 Create flow chart and algorithm for following problem: Check whether the inputted number is a. Positive b. Negative C. zeroarrow_forwardWeek runners log Coding in Python and mainly using loops create a program base on the following; Mike, Tina, Jason, Vicky, and Tammy are preparing for an upcoming marathon. Each day of the week, they run a certain number of miles and write them into a notebook. At the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day, Write a program to help them analyze their data. Your program should create a two-dimensional list of five rows and seven columns to store the number of miles run by each runner each day. Sample Output Name Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Average =============================================Mike 10.00 15.00 20.00 25.00 18.00 20.00 26.00 19.14Tina 15.00 18.00 29.00 16.00 26.00 20.00 23.00 21.00Jason 20.00 26.00 18.00 29.00 10.00 12.00 20.00 19.29Vicky 17.00 20.00 15.00 26.00 18.00...arrow_forwardNeed help PYTHON PROGRAMMING ONLY PLEASE NUMBER 12arrow_forward
- Text book imageDatabase System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationText book imageStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONText book imageDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- Text book imageC How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONText book imageDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningText book imageProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education