You will create the pseudo-code and Java Script program which will prompt the us
ID: 3767253 • Letter: Y
Question
You will create the pseudo-code and Java Script program which will prompt the user for four (4) numeric grades.
Requirements:
Use an array to store the grades.
Use a looping structure to populate the array.
Calculate the numeric average based upon the 4 equally-weighted numeric grades.
Display each of the 4 numeric grades from the array on the screen using a looping structure.
Display the numeric average.
Create a function that will convert the numeric average to a letter grade average using the grading scale:
A = 90 to100
B = 80 to 89
C = 70 to 79
D = 60 to 69
F = Below 59
The function must return the value of the letter grade average.
Display the letter grade average.
Explanation / Answer
class Grades
{
public static void main(String args[])
{
int[] a =new int[9]
a[0]=100;
a[1]=90;
a[2]=80;
a[3]=70;
a[4]=60;
a[5]=50;
{
test()
{
test tt=new test();
tt.grade();
}
if(score>=90)&&(score<100)
{
System.out.println(“A”);
}
else if(score>=80)&&(score<89)
{
System.out.println(“B”);
}
else if(score>=70)&&(score<79)
{
System.out.println(“C”);
}
else if(score>=60)&&(score<69)
{
System.out.println(“D”);
}
else if(score<59)
{
System.out.println(“F”);
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.