Question

In Python... Write a program that calculates a student’s final grade in this course. The program...

In Python...

Write a program that calculates a student’s final grade in this course.

The program should:

  • Display a message stating its goal
  • Prompt the user to enter a student’s average grade for the weekly assignments, grade for mid-course project and grade for final project
  • Calculate the final grade based on these percentages...
  • Assignments = 60%
  • Mid-course & Final Project = 40% (20% each)
  • A A- B+ B B- C+ C C- D+ D D- E
    100-94 93-89 88-85 84-82 81-79 78-76 75-73 72-70 69-67 66-63 63-60 60-0
  • Display a message with the final grade (based on the calculation)
  • Do not use more advanced functions as it is not needed.
  • Make sure to include comments that explain all your steps (starts with #).

Homework Answers

Answer #1
# Code.py
print("program that calculates a student’s final grade in this course.")
assignments = float(input("Enter a student’s average grade for the weekly assignments: "))
midCourse = float(input("Enter a student’s average grade for the mid-course project: "))
finalProject = float(input("Enter a student’s average grade for the final project: "))
finalGrade = (assignments*0.60)+(midCourse*0.20)+(finalProject*0.20)
print("Final grade is",finalGrade)

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
Write a Java program to display a letter grade based on an actual grade. A =...
Write a Java program to display a letter grade based on an actual grade. A = 90-100 B = 80-89 C = 70-79 D = 60-69 F = less than 60 The program needs to do the following: 1. Create a short integer to store a grade. (See Week 3 - Things to Know - Java Data Types ) 2. Prompt for a grade ( 0-100). 3. Based on the grade given, use IF statements to display the letter grade...
Write a Java program to display a letter grade based on an actual grade. USING ECLIPSE...
Write a Java program to display a letter grade based on an actual grade. USING ECLIPSE IDE A = 90-100 B = 80-89 C = 70-79 D = 60-69 F = less than 60 The program needs to do the following: 1. Create a short integer to store a grade. (See Week 3 - Things to Know - Java Data Types ) 2. Prompt for a grade ( 0-100). 3. Based on the grade given, use IF statements to display...
Write a program in python that calculates the salary of employees. The program should prompt the...
Write a program in python that calculates the salary of employees. The program should prompt the user to enter hourly rate and number of hours of work a day. Then, the program should display the salary daily, bi-weekly (5 days a week), and monthly. Sample program: Enter your hourly rate: >>> 20 Enter how many hours you work a day: >>> 8 Your daily salary is: $160 Your bi-weekly salary is: $1600 Your monthly: $3200
Write a program for a basic string extraction. The program should: Display a message stating its...
Write a program for a basic string extraction. The program should: Display a message stating its goal Prompt the user to enter any input Extract only the string characters from the input Display the extraction in lowercase For example, for the input "But, why?!?" the output should be but why Remember: Do not use more advanced functions than needed. Make sure to include comments that explain all your steps (starts with #). Run the program a few times to make...
C++ Write a program that calculates and prints the total grade for n assignments as a...
C++ Write a program that calculates and prints the total grade for n assignments as a percentage. Prompt the user to enter the value of n, followed by the number of points received and number of points possible for each assignment . Calculate and print the total number of points received, total number of points possible, and the overall percentage: (total points received / total points possible) * 100. Output: Enter·number·of·assignments·to·input:3↵ Enter·number·of·points·received·for·assignment·1 :10↵ Enter·number·of·possible·points·for·assignment·1 :10↵ Enter·number·of·points·received·for·assignment·2 :7↵ Enter·number·of·possible·points·for·assignment·2 :12↵ Enter·number·of·points·received·for·assignment·3...
The time taken by a professor to grade a student’s take home final exam in Organizational...
The time taken by a professor to grade a student’s take home final exam in Organizational Behavior is uniformly distributed between 30 to 60 minutes. Let X be the time taken to grade a student’s final exam in Org Behavior. [Be sure to show your calculations.] a. Draw the probability distribution of X. b. What is the probability it will take less than 20 minutes to grade a student’s exam? c. What is the expected value of grading time for...
a set of final examination grades in an introductory statistics course is normally distributed with a...
a set of final examination grades in an introductory statistics course is normally distributed with a mean of 77 and a standard deviation of 7 complete parts a through d. a. what is the probability that a student scored below 89 on this exam b. what is the probability that a student scored between 70 and 93 c. the probability is 15% that a student taking the test scores higher than what grade d. if the professor grades on a...
You are to write a program that will process students and their grades. For each student...
You are to write a program that will process students and their grades. For each student the program will read in a student’s name. It should also read in 10 test scores for the student and calculate his or her average. You must read the scores using a loop. The program should output the student’s name, average and letter grade. The average should be displayed accurate to 1 decimal digit. Letter grades are assigned based on the scale: 90-100    A...
Please write the code in Python. Write a program/function in any Object-Oriented programming language that will...
Please write the code in Python. Write a program/function in any Object-Oriented programming language that will implement Queue Abstract Data Type with the following functions/methods.  Any build-in/pre-defined Queue function/library (e.g., java.util.Queue in Java) is NOT allowed to use in your code. push(Element):  insert the input Element (e.g., String or Integer in Java) to the end of the queue. pop(): remove the head element of the queue and print the head element on screen. count():  return the total number of elements in the queue...
A set of final examination grades in an introductory statistics course is normally distributed, with a...
A set of final examination grades in an introductory statistics course is normally distributed, with a mean of 72 and a standard deviation of 9. a) What is the probability that a student scored below 89 on this exam? (Round to 4 decimal places as needed.) b) What is the probability that a student scored between 63 and 95? (Round to 4 decimal places ad needed.) c) The probability is 5% that a student taking the test scores higher than...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT