Write your C++ program in main.cpp. Write a program that generates n random numbers each in the interval [11, 213] inclusive. The user will provide the value for n. The program prints the numbers, the minimum, the maximum, and the numbers average. Note: Your output will be different as the numbers are generated randomly. When you are done: Download your code. It will save the file main.cpp and rename the file to Lab8_Ex1.cpp. This is very important so that you can always access the code later. How to Submit: Select all the code using Ctrl + A/Cmd + A. Copy the code using Ctrl + C/ Cmd + C. Paste the code in the answer box using Ctrl +V/ Cmd +V on the blackboard. Ignore if the formatting of the code is different. Move to the next question or press the Save and Submit button. Sample Input/Output: Enter how many numbers: 5 The 5 random numbers are: 188 31 183 72 The minimum is 31 The maximum is 188 The average is 118.6 119

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Topic Video
Question
Write your C++ program in main.cpp.
Write a program that generates n random numbers each in the interval [11, 213] inclusive. The user will provide the
value for n. The program prints the numbers, the minimum, the maximum, and the numbers average.
Note: Your output will be different as the numbers are generated randomly.
When you are done:
Download your code. It will save the file main.cpp and rename the file to Lab8_Ex1.cpp.
This is very important so that you can always access the code later.
How to Submit:
Select all the code using Ctrl + A / Cmd + A.
Copy the code using Ctrl + C / Cmd + C.
Paste the code in the answer box using Ctrl +V/ Cmd +V on the blackboard.
Ignore if the formatting of the code is different.
Move to the next question or press the Save and Submit button.
Sample Input/Output:
Enter how many numbers: 5
The 5 random numbers are:
188
31
183
72
The minimum is 31
The maximum is 188
The average is 118.6
119
Transcribed Image Text:Write your C++ program in main.cpp. Write a program that generates n random numbers each in the interval [11, 213] inclusive. The user will provide the value for n. The program prints the numbers, the minimum, the maximum, and the numbers average. Note: Your output will be different as the numbers are generated randomly. When you are done: Download your code. It will save the file main.cpp and rename the file to Lab8_Ex1.cpp. This is very important so that you can always access the code later. How to Submit: Select all the code using Ctrl + A / Cmd + A. Copy the code using Ctrl + C / Cmd + C. Paste the code in the answer box using Ctrl +V/ Cmd +V on the blackboard. Ignore if the formatting of the code is different. Move to the next question or press the Save and Submit button. Sample Input/Output: Enter how many numbers: 5 The 5 random numbers are: 188 31 183 72 The minimum is 31 The maximum is 188 The average is 118.6 119
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT