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.

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

int days, high, low, HighT = 0, LowT = 0, count =

#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

CS 215 Fall 2018 Lab 3 Learning Objectives: Use of while loops to Validate user input. Determine the sum, count, min, highest and lowest of data values entered Entering multiple values on one line with cout/cin General Description Write a program for processing temperature readings for a period of days. The program first asks the user to enter the number of days, validating the answer between 1 and 10 It then asks the user to enter the Hi and Low Temperatures for each day. Finally, it finds and prints the highest high, lowest low, average high and average low. It should also print the number of days the low temperature was below freezing (less than 32 degrees). As usual, the program should pause at the end Note: all numbers, including averages, may be integers. You may assume that, for each day, the high temperature entered actually is greater than or equal to the low entered, and that both are numbers without decimal points Entering multiple data values on a line int den, num; float dec; cout >num >> den; dec num / (1.0 * den); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!