(Solved) : Part Part Write Pseudocode Java Application Implements Pseudocode Program Get Series User Q32430387 . . .
Part A. For this part you will write both pseudocode and a Javaapplication that implements that
pseudocode. Your program will get a series of user-input gradesand then report back how many
are A’s, how many are passing grades (but not A’s), and how manyare failing grades. The basic
steps are given below.
Your pseudocode should consist of two parts. First, write analgorithm in pseudocode for
just step 3b below and give it a descriptive title. Then, writepseudocode for the entire main
program, using your abstract step 3b algorithm title at theappropriate point in your main
program pseudocode. Refer to the Lecture 19 Pseudocode Examplefor an example of what
your completed pseudocode should look like (though of course thedetails will be different
for this problem).
Your main program pseudocode (with abstract step 3b) must appearas comments in your
code, with each line of pseudocode as a comment immediatelypreceding the Java
statement(s) that implement that line.
Here are the basic program steps:
1. Create three variables to keep track of the number of each ofthe three types of grades:
A’s, non-A passing grades, and failing grades. Initialize thesevariables to zero.
2. Have the user input the number of grades they are going toenter. Validate that this
number is positive, giving the user as many chances as necessaryto input a positive number.
3. Use a counter-controlled loop to get and process each grade,by doing the following each
time the loop executes:
a. Have the user input a numeric grade. Validate that thisnumber is positive, giving
the user as many chances as necessary to input a positivenumber.
b. Use a nested if-else to determine whether the newly inputgrade is an A (greater
than or equal to 9.0), a non-A passing grade (not an A andgreater than or equal to 6.0)
or a failing grade (less than 6.0). Increment (i.e., add one to)the appropriate tracking
variable (declared in step 1).
4. After all the grades have been entered output the number ofA’s, the number of non-A
passing grades, and the number of failing grades.
Run your program with the following two sets of inputs:
Run 1:
# of grades: 3
grade #1: 6.0
grade #2: 5.9
grade #3: 9.4
Run 2:
# of grades: -2
corrected to: 4
grade #1: 9.0
grade #2: -5.0
corrected to: 7.2
grade #3: 4.3
grade #4: -7.0
corrected to: -8.5
corrected to: 8.5
Expert Answer
Answer to Part Part Write Pseudocode Java Application Implements Pseudocode Program Get Series User Q32430387 . . .
OR