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
C++ 1. Write a program that determines a student’s grade. The program will read three types...
C++ 1. Write a program that determines a student’s grade. The program will read three types of scores (quiz, mid-term, and final scores), calculate the average and determine the grade based on the following rules: 90% and above: A 80%-89%: B 70%-79%: C 50%-60%: D 0-49%: F
Write a program in Python for a basic string extraction. The program should: Display a message...
Write a program in Python 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...
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...
Write pseudocode with the following functions in the program: main Program - calls the grade function...
Write pseudocode with the following functions in the program: main Program - calls the grade function and passes the score to it. Grade Function - This function should accept a test score as an argument and display the letter grade for the score (as a String), based on the following grading scale: Score Letter Grade 93–100 A 85–92 B 75–84 C 65–74 D Below 65 F
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...
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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT