Question: c++ language. Beginning class. So someone already asked the question and posted it up on Chegg. #include #include using namespace std; int main() { int
c++ language. Beginning class. So someone already asked the question and posted it up on Chegg.



#include
#include
using namespace std;
int main()
{
int days, high, low, HighT = 0, LowT = 0, count = 0;
//get number of days till valid days entered
while (true)
{
cout
cin >> days;
//if invalid days entered,iterate again
if (days10)
cout
//if valid,break the loop
else
break;
}
int max = -1;
int min = INT_MAX;
//get the data for days
for (int i = 1;i
{
cout
cin >> high >> low;
//summing high and low temp values
HighT = HighT + high;
LowT = LowT + low;
//finding max temp in high temp
if (high>max)
max = high;
//finding min temp in low temp
if (low min = low; //finding number of temps below 32 if (low count++; } //displaying resutls cout cout cout system("pause"); return 0; } I would like to have a code without using the #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
