Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

use python, please! Write a grade calculation program that does the following: 1. Ask the user for their name and store this value in a

image text in transcribeduse python, please!

Write a "grade calculation" program that does the following: 1. Ask the user for their name and store this value in a variable 2. Also ask the user for the name of a class and store this value in a variable as well 3. Ask the user for the weighting of tests in their class (i.e. tests are worth 60% of the total grade) 4. Ask the user for 3 test scores 5. Calculate the student's test average, and print it out to the user 6. Ask the user for the weighting of homework assignments in their class (.e. homework assignments are 40% of the total grade) 7. Ask the user for 3 homework assignment scores 8. Calculate the student's homework average, and print it out to the user 9. Calculate the student's final grade and display it to the user. Here's a sample running of the program: What is your name? Nikola What class are you in? Intro to Programming How much are tests worth in this class (i.e. 0.40 for 40%): 0.40 Enter test score #1: 90 Enter test score #2: 85 Enter test score #3: 97 Your test average is: 90.67 How much are homework assignments worth in this class (i.e. 0.60 for 60%): 0.60 Enter homework score #1: 100 Enter homework score #2: 90 Enter homework score #3: 80 Your homework average is: 90.0 Thanks, Nikola. Your final score in Intro to Programming is 90.27 Comment your source code and describe your code to someone who may be viewing it for the first time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions