Question: Java Write a complete method to analyze scores on tests. Method Specifications: 1. Ask the user how many tests there are. Use a loop to
Write a complete method to analyze scores on tests. Method Specifications: 1. Ask the user how many tests there are. Use a loop to make sure this is a positive number. 2. Ask the user for the minimum passing percentage. Use a loop to make sure this number is between 0 and 1 (inclusive) 3. For each test: a. Ask the user for their score. b. Determine if the user passed that test (using the required minimum the user entered before). c. Tell the user whether they passed that test. (All tests are out of 100 points.) 4. At the end of collecting all of this information, tell the user how many tests they passed and also show that value as a percentage. Note: You can review the Hilo video and code for an example of how to display percentages nicely! You can also use System.out.printf or String.format. Here is a video of how the program should work: For full credit: Use good principles of design and follow conventions, including naming conventions. Reduce duplicated or repeated code. Use the looping structure that is the best logical match for the task
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
