1-/* N3456 2 7 8 9 10- import java.util.Scanner; 11 public class Quiz7_averageScores_00 12-{ 13 - 14 15 16 17 18 Java Provided * Quiz7_averageScores_00. Modify this program to 1. Request certain number of decimals in certain range a. the decimal is within certain range (0-100) b. user will decide how many scores to enter 19 20 21 22 23 24 25 26 27 28 29 2. Calculate the average 3. Display the result in certain format 30 31 32 33 34 35 36 37 } public static void main(String[] args) { System.out.println("This is a program for Quiz7 by Li Ma.\n"); //use your name instead } int cnt=0; double v, total=0; double avg; Scanner minput = new Scanner(System.in); //Request certain number of scores //repeat requesting 5 times to get 5 scores?! int i=0; while (i<5) { } System.out.print("Please enter a score (0-100): "); v = minput.nextDouble(); total += v; cnt++; i++; //Calculate the average avg total/cnt; //Display the result in certain format System.out.printf("The average of entered scores is %.1f", avg); This is a program for Quiz7 by Li Ma. Please enter a score (0-100): 45 Please enter a score (0-100): 6.4332 Please enter a score (0-100): 98.5 Please enter a score 65 Please enter a score (0-100): -32 72 The average of entered scores is 36.6 input
1-/* N3456 2 7 8 9 10- import java.util.Scanner; 11 public class Quiz7_averageScores_00 12-{ 13 - 14 15 16 17 18 Java Provided * Quiz7_averageScores_00. Modify this program to 1. Request certain number of decimals in certain range a. the decimal is within certain range (0-100) b. user will decide how many scores to enter 19 20 21 22 23 24 25 26 27 28 29 2. Calculate the average 3. Display the result in certain format 30 31 32 33 34 35 36 37 } public static void main(String[] args) { System.out.println("This is a program for Quiz7 by Li Ma.\n"); //use your name instead } int cnt=0; double v, total=0; double avg; Scanner minput = new Scanner(System.in); //Request certain number of scores //repeat requesting 5 times to get 5 scores?! int i=0; while (i<5) { } System.out.print("Please enter a score (0-100): "); v = minput.nextDouble(); total += v; cnt++; i++; //Calculate the average avg total/cnt; //Display the result in certain format System.out.printf("The average of entered scores is %.1f", avg); This is a program for Quiz7 by Li Ma. Please enter a score (0-100): 45 Please enter a score (0-100): 6.4332 Please enter a score (0-100): 98.5 Please enter a score 65 Please enter a score (0-100): -32 72 The average of entered scores is 36.6 input
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Can you please help me modify this
This is a java program. I need the output to be the same as in the example picture (same picture with the red circle)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education