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
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
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9354c5e6-03df-4f22-837b-6fa33edf7e90%2F96dff142-9613-437e-b096-97fe9f80841e%2F2pesqia_processed.png&w=3840&q=75)
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

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 4 steps with 2 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

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT