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
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
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT