Answered step by step
Verified Expert Solution
Question
1 Approved Answer
draw a flowchart and write code in JAVA DRAW A FLOWCHART AND WRITE CODE IN JAVA Write a program that allows the user to enter
draw a flowchart and write code in JAVA
DRAW A FLOWCHART AND WRITE CODE IN JAVA
Write a program that allows the user to enter an integer n, and then generates n random numbers between 1 and 100. The program calculates and prints the sum, average, and all the number above the average. 1. Draw the flowchart for the program on the back of this paper. Open TextPad and save the source file on the desktop using the file name as lastname final 3. Write your name on the first line of the source file, and short comment for each task in the program. 4. Leave the TextPad open and this paper on the keyboard when you finish the exam. An output example: nter an integer > 20 te radom numbers are eenerated: 5 67 24 937 14 41 2 421 6 227 The sun of the random nunbers is: 961 The average of the randos nunbers is: 48.85 There are 9 randon nunters abeve the avera 67 93 676 826 Press ay key to cont inue Bonus: (4 points) Format the average (as the output example Find how many numbers are above the average (as the output example) Hint: The following code can be used to generate a random number num between I to 100: Random rad- new RandomO: num-rad.nextint(99)+1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started