Prelim Grade = (Quiz Grade + Exam Grade) / 2 15. If Prelim Grade is greater than 99 then set Prelim Grade to 99 16. If Prelim Grade is less than 65 then set Prelim Grade to 65 17. If Prelim Grade is greater than or equal to 75 then display the grade together with the remark PASSED. 18. If Prelim Grade is less than 75 then display the grade together with the remark FAILED Sample runs: Sample run 1 Enter the Perfect Quiz Score: 100 Sample run 2 Enter the Perfect Quiz Score: 200 Enter the Perfect Examination Score: 100 Enter the Perfect Examination Score: 10 Enter a student's quiz score: 100 Enter a student's examination score: 100 Enter a student's quiz score: 10 Enter a student's examination score: 1 Computed Grade: 65 Page 2 I 2 Remark: ILED Computed Grade: 99 Remark: PASSED

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
6. Declare a variable to hold the Exam Grade
7. Declare a variable to hold the Prelim Grade
8. Read the Perfect Quiz Score
9. Read the Perfect Exam Score
10. Read the Total Quiz Score
11. Read the Examination Score
12. Compute the Quiz Grade:
Quiz Grade = (Total Quiz Score) / (Perfect Quiz Score) * 50 + 50
13. Compute the Exam Grade:
Exam Grade = (Examination Score) / (Perfect Examination Score) * 50 + 50
14. Compute the Prelim Grade:
Prelim Grade = (Quiz Grade + Exam Grade) / 2
15. If Prelim Grade is greater than 99 then set Prelim Grade to 99
16. If Prelim Grade is less than 65 then set Prelim Grade to 65
17. If Prelim Grade is greater than or equal to 75 then display the grade together with the
remark PASSED.
18. If Prelim Grade is less than 75 then display the grade together with the remark FAILED
Sample runs:
Sample run 1
Sample run 2
Enter the Perfect Quiz Score: 200
Enter the Perfect Quiz Score: 100
Enter the Perfect Examination Score: 100
Enter the Perfect Examination Score: 10
Enter a student's quiz score: 100
Enter a student's quiz score: 10
Enter a student's examination score: 1
Enter a student's examination score: 100
Computed Grade: 65
Remark: ILED+
Computed Grade: 99
Page
2 I 2
Remark: PASSED
Transcribed Image Text:6. Declare a variable to hold the Exam Grade 7. Declare a variable to hold the Prelim Grade 8. Read the Perfect Quiz Score 9. Read the Perfect Exam Score 10. Read the Total Quiz Score 11. Read the Examination Score 12. Compute the Quiz Grade: Quiz Grade = (Total Quiz Score) / (Perfect Quiz Score) * 50 + 50 13. Compute the Exam Grade: Exam Grade = (Examination Score) / (Perfect Examination Score) * 50 + 50 14. Compute the Prelim Grade: Prelim Grade = (Quiz Grade + Exam Grade) / 2 15. If Prelim Grade is greater than 99 then set Prelim Grade to 99 16. If Prelim Grade is less than 65 then set Prelim Grade to 65 17. If Prelim Grade is greater than or equal to 75 then display the grade together with the remark PASSED. 18. If Prelim Grade is less than 75 then display the grade together with the remark FAILED Sample runs: Sample run 1 Sample run 2 Enter the Perfect Quiz Score: 200 Enter the Perfect Quiz Score: 100 Enter the Perfect Examination Score: 100 Enter the Perfect Examination Score: 10 Enter a student's quiz score: 100 Enter a student's quiz score: 10 Enter a student's examination score: 1 Enter a student's examination score: 100 Computed Grade: 65 Remark: ILED+ Computed Grade: 99 Page 2 I 2 Remark: PASSED
Problem:
Given a student's Total Quiz Score, the student's Examination Score, the Perfect Quiz score, and
the Perfect Examination Score, the Prelim Grade is computed by using the following formulas:
Quiz Grade = (Total Quiz Score) / (Perfect Quiz Score) * 50 + 50
Exam Grade = (Examination Score) / (Perfect Examination Score) * 50 + 50
Prelim Grade = (Quiz Grade + Exam Grade) / 2
Notes:
If the computed Prelim Grade is more than 99, the Prelim Grade is set to 99.
If the computed Prelim Grade is less than 65, the Prelim Grade is set to 65.
Based on the algorithm and the sample runs/executions, create a java program that computes
the Prelim Grade based on the above mentioned formulas. The program will allow the
computer to accept a student's Total Quiz Score, a student's Examination Score, the Perfect
Total Quiz Score and the Perfect Examination Score. The computer will then show the
corresponding grade. In addition, the remark “PASSED" will be given if the grade is at least 75
and the remark "FAILED" will be given if the grade is less than 75.
ALGORITHM
1. Declare a variable to hold the Total Quiz Score
2. Declare a variable to hold the Examination Score
3. Declare a variable to hold the Perfect Quiz Score
4. Declare a variable to hold the Perfect Exam Score
5. Declare a variable to hold the Quiz Grade.
Transcribed Image Text:Problem: Given a student's Total Quiz Score, the student's Examination Score, the Perfect Quiz score, and the Perfect Examination Score, the Prelim Grade is computed by using the following formulas: Quiz Grade = (Total Quiz Score) / (Perfect Quiz Score) * 50 + 50 Exam Grade = (Examination Score) / (Perfect Examination Score) * 50 + 50 Prelim Grade = (Quiz Grade + Exam Grade) / 2 Notes: If the computed Prelim Grade is more than 99, the Prelim Grade is set to 99. If the computed Prelim Grade is less than 65, the Prelim Grade is set to 65. Based on the algorithm and the sample runs/executions, create a java program that computes the Prelim Grade based on the above mentioned formulas. The program will allow the computer to accept a student's Total Quiz Score, a student's Examination Score, the Perfect Total Quiz Score and the Perfect Examination Score. The computer will then show the corresponding grade. In addition, the remark “PASSED" will be given if the grade is at least 75 and the remark "FAILED" will be given if the grade is less than 75. ALGORITHM 1. Declare a variable to hold the Total Quiz Score 2. Declare a variable to hold the Examination Score 3. Declare a variable to hold the Perfect Quiz Score 4. Declare a variable to hold the Perfect Exam Score 5. Declare a variable to hold the Quiz Grade.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education