Question

In: Computer Science

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

uestion: It’s that time again. Time for Mr. Brummett to calculate each student’s overall grade. However, i... 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

Solutions

Expert Solution

The code to do so is as follows:


Output:

if the answer helped you please upvote and in case you have some doubts please post a comment, i will surely help.

Code:

name = input("Enter the student name: ")
quizTotal = int(input("Enter the total possible quiz grade: "))
quizWeight = float(input("Please enter quiz weight in decimal form: "))
q1 = int(input("Please enter the first quiz grade: "))
q2 = int(input("Please enter the second quiz grade: "))
q3 = int(input("Please enter the third quiz grade: "))
q4 = int(input("Please enter the fourth quiz grade: "))
q5 = int(input("Please enter the fifth quiz grade: "))
q6 = int(input("Please enter the sixth quiz grade: "))

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


projectTotal = int(input("Enter the total possible project grade: "))
projectWeight = float(input("Please enter project weight in decimal form: "))
p1 = int(input("Please enter the first project grade: "))
p2 = int(input("Please enter the second project grade: "))
p3 = int(input("Please enter the third project grade: "))
p4 = int(input("Please enter the fourth project grade: "))
p5 = int(input("Please enter the fifth project grade: "))
p6 = int(input("Please enter the sixth project grade: "))

testTotal = int(input("Enter the total possible test grade: "))
testWeight = float(input("Please enter test weight in decimal form: "))
t1 = int(input("Please enter the first test grade: "))
t2 = int(input("Please enter the second test grade: "))
t3 = int(input("Please enter the third test grade: "))
t4 = int(input("Please enter the fourth test grade: "))

quizGrade = ((q1+q2+q3+q4+q5+q6)/quizTotal)*quizWeight*100
participationGrade = (participation/participationTotal)*participationWeight*100
projectGrade = ((p1+p2+p3+p4+p5+p6)/projectTotal)*projectWeight *100
testGrade = ((t1+t2+t3+t4)/testTotal)*testWeight*100

totalGrade = quizGrade+participationGrade+projectGrade+testGrade
gradeName = ""
if(totalGrade >=90 and totalGrade<=100):
gradeName = 'A'
elif (totalGrade >=80 and totalGrade<90):
gradeName = 'B'
elif (totalGrade >=70 and totalGrade<80):
gradeName ='C'
elif (totalGrade >=60 and totalGrade<70):
gradeName = 'D'
elif (totalGrade >=50 and totalGrade<60):
gradeName = 'E'
else:
gradeName = 'F'
print(f"{name}'s grades are: Overall Quiz Grade: {quizGrade} Overall Participation Grade: {participationGrade} Overall Project Grade: {projectGrade} Overall Test Grade:{testGrade} Final Grade: {totalGrade} Your Grade: {gradeName} ")


Related Solutions

It’s that wonderful joyful time of the year again. That’s right! It’s Tax Time!
Using BASH. It’s that wonderful joyful time of the year again. That’s right! It’s Tax Time! You have been hired by CIT Taxing & Associates to develop a script that will take in a person's gross income and total taxes paid to Uncle Sam (the federal government) and spit out that person’s tax bracket and total taxes that he/she owes. To complete the script you will need to use an IFstatement as well as follow these guidelines:● Name The Script: tax_man●...
The time it takes to grade a randomly selected student’s paper varies with a mean of...
The time it takes to grade a randomly selected student’s paper varies with a mean of 5.25 minutes and a standard deviation of 4.25 minutes. a) Is the distribution of grading times Normal? Explain. b) If the task is to grade 80 randomly selected papers: What is the (approximate) probability the (sample) mean time to grade these papers exceeds 6 minutes?
Note: don't copy paste answer again and again its my 3rd attempt and each time same...
Note: don't copy paste answer again and again its my 3rd attempt and each time same picture of answers uploaded i need the actual answers of the following question Problem:       Suppose that the demand for Cod Liver Oil (CLO) can be written QD =5000-2P (so, the inverse demand curve for CLO is P=2500-0.5QD), where P is the price per ton (in dollars) of CLO and QD is the quantity demanded (in tons) in a period. Use Excel Scatterplots to...
Instructions: For each part...Calculate the theoretical yield and percent yield. Then calculate the overall yield. I...
Instructions: For each part...Calculate the theoretical yield and percent yield. Then calculate the overall yield. I am really struggling with this and have been working on it for awhile. Could you please show a step by step for my understanding? Cyclohexanol: molecular weight 100.16g/mol Cyclohexanol: density 0.947 g/cm 3 Part A: dehydration of cyclohexanol Amount of cyclohexanol used (g): 7.4 g Amount of cyclohexanol obtained (g): 1.611g Cyclohexene: molecular weight 82.14 g/mol Cyclohexene: density 0.81 g/cm 3 Part B: Oxidative...
It’s time to play America’s favorite game show: NAME THAT STATISTICAL TEST. For each of the...
It’s time to play America’s favorite game show: NAME THAT STATISTICAL TEST. For each of the scenarios described below, please state which of the tests or measurements discussed in class would be most appropriate to use in testing the claim at hand. Do not carry out any actual computations. a) You have random samples of athletes from four men’s college sports: 12 baseball players, 8 wrestlers, 7 tennis players, and 10 golfers. You wish to determine whether athletes’ heights are...
In addition to calculating and outputting each students quiz grade to calculate the average score for...
In addition to calculating and outputting each students quiz grade to calculate the average score for each quiz and the average of all the student quiz averages. Output the results at the bottom of each quiz column and the Quiz Average column (Row 22). Hint: Be careful when setting up your expression to calculate the average of all the quiz averages, this may require a slightly different expression then the others (not due to math). Student Quiz 1 Quiz 2...
18. It’s time to play America’s favorite game show: NAME THAT STATISTICAL TEST. For each of...
18. It’s time to play America’s favorite game show: NAME THAT STATISTICAL TEST. For each of the scenarios described below, please state which of the tests or measurements discussed in class would be most appropriate to use in testing the claim at hand. Do not carry out any actual computations. a) (3 pts) You have random samples of athletes from four men’s college sports: 12 baseball players, 8 wrestlers, 7 tennis players, and 10 golfers. You wish to determine whether...
Calculate the accumulated value at time 5 years of payments that are received continuously over each...
Calculate the accumulated value at time 5 years of payments that are received continuously over each year with payment of $100 during 1st year, $110 in 2nd year, $130 in 3rd year, $140 in 4th year and $200 in 5th year. Assume EAR = 5%.
1. a Calculate the natural log of the capacitor voltage for each time point b. Add...
1. a Calculate the natural log of the capacitor voltage for each time point b. Add a linear trendline to your graph and display the best fit equation c. Record the slope from your best-fit equation in step d. Calculate the capacitor time constant τ using the slope with the equation e. Calculate the internal DMM resistance R using the following equation: ( I am not sure how to use my data to answer this problem) Voltage -2.28 -0.9 -0.75...
Hi, I am having trouble with trying to calculate asymptotic time complexity for each of these...
Hi, I am having trouble with trying to calculate asymptotic time complexity for each of these functions. A step by step tutorial would be great. This is done in Python. Please not only the answer, but how you calculated it as well. Here is the code #Q2 # to denote ayymptotic time complexity use the following notation # O(l) O(m) O(a) O(b) # e.g. traversing through l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] is O(l)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT