Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

2. Confront self-defeating, failure-avoiding strategies directly.

Answered: 1 week ago