Question: Write a C++ Program that will generate 5 random numbers which simulate the age of college students (from 17 to 26). The program will generate

Write a C++ Program that will generate 5 random numbers which simulate the age of college students (from 17 to 26). The program will generate another 3 random numbers which simulate the cold weather (ranging from -15 to positive 50 fahrenheit degree). Your program should

  • Have a nicely commented header section, including your name, class number, date and detail comments to expain how to use random function and how to determine your ranging formula.
  • Perfectly indented (all lines within a block should be indented 3 spaces)
  • The output must be nicely labeled for easy understanding. You name should be displayed at the first line of output as the author.
  • At least 2 test runs output attached at the end of source code (ref to "HowTo" for copy/paste output to the program)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include include include using namespace std int main Header section cout Author Your Name cout Class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!