Design a grade average program that will produce the numerical grade average of
ID: 3629824 • Letter: D
Question
Design a grade average program that will produce the numerical grade average of test scores input by a user. Your program design should contain the following:you must use an Array as your data structure to store the input grades
you must use a looping structure to initialize the elements of your array to clear out system garbage.
the user may input up to 5 test scores. Hint: this does not mean each user will input 5 scores. 3 scores may be entered for calculation.
you must use a Looping structure to traverse the elements of your array to produce your calculation.
You are submit, as a Microsoft Word Document, the following for this assignment
Flowchart
Pseudocode
Explanation / Answer
import java.io.*; public class Grade { public static void main (String [] args) throws IOException { double testScore; // Numeric test score String input; // To hold user's input // Create objects for keyboard input. InputStreamReader reader = new InputStreamReader(System.in); BufferedReader keyboard = new BufferedReader(reader); // Get the numeric score. System.out.print("Enter your first test scores:"); input= keyboard.readLine(); testScore = Double.parseDouble(input); //Get the numeric score. System.out.print("Enter your second test scores:"); input= keyboard.readLine(); testScore = Double.parseDouble(input); //Get the numeric score. System.out.print("Enter your third test scores:"); input= keyboard.readLine(); testScore = Double.parseDouble(input); //Display grade. if (testScoreRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.