programming
__________________________________________________________________
Description of the problem
Write a Java program that determines a student’s grade.
The program will read four types of scores (quiz, mid-term, projects and final scores) and determine the grade based on the following rules:
· if the average score >=90%, it will display grade=A
· if the average score >= 70% and <90%, it will display grade=B
· if the average score>=60% and <70%, it will display grade=C
· if the average score<60%, it will display grade=F
- The user should enter the following input data:
· The grade of three quizzes, the weight of each quiz is 5% of the total grade
· The midterm (weight: 20% of the total grade)
· The Participation (weight: 5% of the total grade)
· The Lab (weight: 20% of the total grade)
· The first projects’ grade (weight: 5% of the total grade)
· The second projects’ grade (weight: 10% of the total grade)
· The final exam (weight: 25% of the total grade)
Display the grade as shown below.
Sample input:
Enter quiz 1 grade: 3
Enter quiz 2 grade: 4
Enter quiz 3 grade: 5
Enter Participation grade: 4
Enter Project 1 grade: 4
Enter Project 2 grade: 9
Enter Lab grade: 18
Enter Midterm grade: 16
Enter Final grade: 21
Output for sample input:
Final Grade is: B