Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA Write a program that asks the user to enter how many students there are in the classroom. For each student generate 3 random

IN JAVA

image text in transcribed
Write a program that asks the user to enter how many students there are in the classroom. For each student generate 3 random Lab Test scores between 50 -100. In the end you should have a 2D integer array that looks something like this: Index Lab Test 1 Lab Test 2 Lab Test 3 0 100 54 78 100 67 99 Provide a menu to the user to do the following with the array: Note: Users should be able to enter numbers for the options. 1. Display the average lab test score for a student. 2. Display the highest score. 3. Display the lowest score. 4. Display gradebook. 5. Export gradebook as a text file (Extra Credit). 6. Quit For each of the above options, make a method. The method descriptions are given to you. Note: The menu should continuously be posted until the user decides to quit Option Details: Option 1: Asks the user to input the index location of the student and then calculates the average of the 3 lab test scores for that student and displays the result. (Input Validation required). Hint: Make sure you're not including the Index column when calculating the average score! Option 2: Finds the highest Lab Test score in the gradebook and displays that score. Hint: Make sure you're not including the Index column when looking for the highest score! Option 3: Finds the lowest Lab Test score in the gradebook and displays that score. Hint: Make sure you're not including the Index column when looking for the lowest score! Option 4: Displays the gradebook in tabular format just like you did in Lab 9. Option 5 (Extra credit) : It creates a file called "gradebook.txt" and writes the gradebook content in a tabular format. Option 6: Exits the program. Note: Make sure to include input validation for the menu as well

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

What are three features or capabilities of a DSS?

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago