Write a Java program that prompts the user to enter the grades and their weight of three Exams. The program calculates and displays the final grade. Hint: Use the following formula: [Grade of Exam 1] * [Weight of Exam 1]% + [Grade of Exam 2]* [Weight of Exam 2]% + [Grade of Exam 3]*[Weight of Exam 3]% Sample Run: Enter the grade of Exam I and its weight: 75 20 Enter the grade of Exam II and its weight: 60 30 Enter the grade of Exam III and its weight: 85 50 The final grade is 75.5

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 27PE
icon
Related questions
Question
Problem 1 (50 pts)
Write a Java program that prompts the user to enter the grades and their weight of three
Exams. The
program
calculates and displays the final grade.
Hint: Use the following formula:
[Grade of Exam 1]* [Weight of
Exam 1]% +
[Grade of
Exam 2]* [Weight of
Exam 2]%
+ [Grade of Exam 3]* [Weight of Exam 3]%
Sample Run:
Enter the grade of Exam I and its weight: 75 20
Enter the grade of Exam II and its weight: 60 30
Enter the grade of Exam III and its weight: 85 50
The final grade is 75.5
Transcribed Image Text:Problem 1 (50 pts) Write a Java program that prompts the user to enter the grades and their weight of three Exams. The program calculates and displays the final grade. Hint: Use the following formula: [Grade of Exam 1]* [Weight of Exam 1]% + [Grade of Exam 2]* [Weight of Exam 2]% + [Grade of Exam 3]* [Weight of Exam 3]% Sample Run: Enter the grade of Exam I and its weight: 75 20 Enter the grade of Exam II and its weight: 60 30 Enter the grade of Exam III and its weight: 85 50 The final grade is 75.5
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr