Question

It’s that time again. Time for Mr. Brummett to calculate each student’s overall grade. However, it’s...

It’s that time again. Time for Mr. Brummett to calculate each student’s overall grade. However, it’s much easier to do it in Python. In this assignment your goal is to write a python program called grade.py that takes in the student’s name, 6 quiz grades, 4 test grades, 6 project grades, and a participation grade. The program should also take in the weighted percentage of each type of assignment (for example Participation is usually 5% of the total grade) as a floating type (.5). It should then print out the student name, each calculated grade for each assignment type and the final overall grade. Guidelines: • All inputs should be taken from the user. • Get and return the overall grade for each assignment type (Tests, Projects, Quizzes, and Participation). This means the program will have to get the max overall points for the assignment type (say quizzes are 10 points apiece so 6*10=60). The number of points for each individual assignment of that type. For example, in quiz the user should be prompted 6 times and these 6 numbers should be added together. • The test cases use a 30% weighted total for Tests, a 15% weighted total for Quizzes, 5% weighted total for Participation, 50% weighted total for Projects. • Use if, elif, and else statements to print a letter grade based on the final grade. Sample Output: Enter Student Name:Jon Doe Please enter the total possible quiz grade:60 Please enter quiz weight in decimal form:.15 Please enter the first quiz grade:10 Please enter the second quiz grade:5 Please enter the third quiz grade:6 Please enter the fourth quiz grade:7 Please enter the fifth quiz grade:10 Please enter the sixth quiz grade:9 Please enter the total possible Participation grade:100 Please enter participation weight in decimal form:.05 Please enter the Participation grade:100 Please enter the total possible project grade:600 Please enter project weight in decimal form:.50 Please enter the first project grade:100 Please enter the second project grade:100 Please enter the third project grade:90 Please enter the fourth project grade:80 Please enter the fifth project grade:80 Please enter the sixth project grade:50 Please enter the total possible test grade:400 Please enter test weight in decimal form:.30 Please enter the first test grade:100 Please enter the second test grade:90 Please enter the third test grade:80 Please enter the fourth test grade:50 Jon Doe's grades are: Overall Quiz Grade: 11.75 Overall Participation Grade: 5.0 Overall Project Grade: 41.66666666666667 Overall Test Grade: 24.0 Final Grade: 82.41666666666667 Your Grade: B

Homework Answers

Answer #1

HOPE THIS ANSWER SATISFIES YOUR QUERY. IF I MISSED SOMETHING PLEASE DO MENTION IN THE COMMENTS AND ALSO PLEASE RATE THE ANSWER. I HAVE ALSO ATTACHED THE SCREENSHOT OF THE CODE FOR BETTER UNDERSTANDING.
THANKS


name = str(input("Enter student name: "))

totalQuiz = int(input("Please enter total possible quiz grade: "))
Wquiz = float(input("Enter quiz weight in decimal form: "))
quiz = []
for i in range(0,6): #for loop for input of values of quiz
marks = int(input("Please enter the " + str(i+1) + " quiz grade: "))
quiz.append(marks)

totalpart = int(input("Please enter total possible participation grade: "))
Wpart = float(input("Enter participation weight in decimal form: "))
marksPart = int(input("Please enter the participation grade: "))

totalproject = int(input("Please enter total possible project grade: "))
Wproject = float(input("Enter project weight in decimal form: "))
project = []
for i in range(0,6): #for loop for input of values of project
marks = int(input("Please enter the " + str(i+1) + " project grade: "))
project.append(marks)

totaltest = int(input("Please enter total possible test grade: "))
Wtest = float(input("Enter test weight in decimal form: "))
test = []
for i in range(0,4): #for loop for input of values of test
marks = int(input("Please enter the " + str(i+1) + " test grade: "))
test.append(marks)

##OVERALL CALCULATION
OvrllQ = sum(quiz)/totalQuiz * Wquiz
OvrllPart = (marksPart/totalpart) * Wpart
OvrllPrj = (sum(project)/totalproject) * Wproject
OvrllT = (sum(test)/totaltest) * Wtest

#FINAL CALCULATION
finalG = (OvrllQ + OvrllPart + OvrllPrj + OvrllT)*100

print(name + "'s grades are: \n")
print("Overall Quiz Grade: " + str(OvrllQ*100))
print("Overall Participation Grade: " + str(OvrllPart*100))
print("Overall Project Grade: " + str(OvrllPrj*100))
print("Overall test Grade: " + str(OvrllT*100))
print("Final Grade: " + str(finalG*100))

#GRADE ASSIGNMENT. YOU CAN CHANGE VALUES IN IF ELSE STATEMENT ACCORDING TO YOUR GRADE PREFERENCE
if finalG > 90:
print("Your Grade: A")
elif (finalG > 80 and finalG < 90):
print("Your Grade: B")
elif (finalG > 70 and finalG < 80):
print("Your Grade: C")
elif (finalG > 60 and finalG < 70):
print("Your Grade: D")
else:
print("Your Grade: F")

​​​​​​​

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
COSC 1436 Programming Assignment 2 Programming Assignment 2 Refactoring is the process of taking existing code...
COSC 1436 Programming Assignment 2 Programming Assignment 2 Refactoring is the process of taking existing code and improving its design without changing the functionality. In this programming assignment, you are going to take your code from Programming Assignment 1 and refactor it so that it uses functions. The program should still do the following:  Get the name of a student  Get the name of three assignments  Get the grade of three assignments as integers  Calculates the...
Code in Java SAMPLE PROGRAM OUTPUT Because there are several different things your program might do...
Code in Java SAMPLE PROGRAM OUTPUT Because there are several different things your program might do depending upon what the user enters, please refer to the examples below to use to test your program. Run your final program one time for each scenario to make sure that you get the expected output. Be sure to format the output of your program so that it follows what is included in the examples. Remember, in all examples bold items are entered by...
we will be taking data in as a file. you cannot use the data values in...
we will be taking data in as a file. you cannot use the data values in your source file but you must read in everything into variables and use it from there. First we need to include <fstream> at the top of our file. We will need to create an input file stream to work and ifstream. ifstream is a datatype. Create a variable with the datatype being ifstream. Variable is drfine by using the member accessor operator to call...
Your program should meet all of the following requirements: The class name should be MathQuiz All...
Your program should meet all of the following requirements: The class name should be MathQuiz All 8 problems should use int values. Use Math.random() for generating your random values. The range of random numbers for each problem should be based on whether the user asks for the "easy" or the "hard" options. "easy" means that all numbers, including the answers, will be no more than 100. It should be possible to get values all the way up to and including...
This question is broken into 3 parts, each of which builds on the functions developed in...
This question is broken into 3 parts, each of which builds on the functions developed in the previous part. Note that you can (and should) still answer parts (b) and (c) even if you cannot answer the preceding parts - just assume that the functions work as they should, and continue. Please explain the code as well Write a C function called weighted_digit_sum that takes a single integer as input, and returns a weighted sum of that numbers digits. The...
OBJECTIVE: read please- provide a word document to make powerpoint Your team has been given the...
OBJECTIVE: read please- provide a word document to make powerpoint Your team has been given the assignment to create the operating model for a new store division of an existing brand and retailer. While the target customer and product mix might be similar, your team will create and propose a new/updated Store Operating Model for this division to the class, who will act as Senior Management and Board of Directors. The Store Operating Model will encompass all of the elements...
Project 2 statement Please write this in JAVA. Please read this entire statement carefully before you...
Project 2 statement Please write this in JAVA. Please read this entire statement carefully before you start doing anything… This project involves implementing a simple university personnel management program. The program contains two different kinds of objects: students and faculty. For each object, the program stores relevant information such as university ID, name, etc. Different information is stored depending on the type of the object. For example, a student has a GPA, while a faculty has a title and department...
Need in C language also need full documentation/explanation of each line A student has established the...
Need in C language also need full documentation/explanation of each line A student has established the following monthly budget: Budget Categories Budgeted amount ----------------------------------------------------- Housing $ 580.00 Utilities $ 150.00 Household Expenses     $ 65.00 Transportation $ 50.00 Food $ 250.00 Medical $ 30.00 Insurance $ 100.00 Entertainment $ 150.00 Clothing $ 75.00 Miscellaneous $ 50.00 ---------------------------------------------------- Write a program that declares a MonthlyBudget structure designed with member variables to hold each of these expense categories. The program should define...
Using If and LookUp Formulas Formatting Grades Input boxes in tan Output boxes in yellow Given...
Using If and LookUp Formulas Formatting Grades Input boxes in tan Output boxes in yellow Given data in blue Answers in red Professor Streterstein is a bit absentminded. His instructor’s grade book is a mess, and he would like your help cleaning it up and making it easier to use. In Professor Streterstein’s course, the maximum possible points a student can earn is 750. The following table displays the grade equivalent to total points for the course. Professor Streterstein's Course...
Answer Questions 2 and 3 based on the following LP problem. Let     P1 = number of...
Answer Questions 2 and 3 based on the following LP problem. Let     P1 = number of Product 1 to be produced           P2 = number of Product 2 to be produced           P3 = number of Product 3 to be produced Maximize 100P1 + 120P2 + 90P3         Total profit Subject to         8P1 + 12P2 + 10P3 ≤ 7280       Production budget constraint             4P1 + 3P2 + 2P3 ≤ 1920       Labor hours constraint                                    P1 > 200         Minimum quantity needed...