Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Write a C++ program that creates random one month of the temperature and find Average temperature, lowest and hottest temperature with the days
2. Write a C++ program that creates random one month of the temperature and find Average temperature, lowest and hottest temperature with the days of the month. Note: Create functions that takes the temperatures to find Average temperature, lowest and hottest temperature with the days of the month. Assume that month has 30 days or use keyboard to enter number of days. Temperature range 32~100 You can use static int in function to keep max and min and total Sample output Temperature of a month. Days: Temp: Days: Temp: 1 21 16 72 2 65 17 48 3 51 18 75 Average temp of month: 62 Hottest temp and day : 99 Lowest temp and day (Day 19) 32 (Day 25)
Step 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