Question: How do I change my code so that the max and min values can read in -2.5 and 6 without actually changing them into floats

 How do I change my code so that the max andmin values can read in -2.5 and 6 without actually changing theminto floats or doubles? Is this possible? I'm just very confused on

How do I change my code so that the max and min values can read in -2.5 and 6 without actually changing them into floats or doubles? Is this possible? I'm just very confused on how to approach this issue. Thank you!

4.15 Lab: Min, Max, Mean: Simple Program Write a program that finds the smallest (min), largest (max), and average (mean) of 5 values entered by the user. Your program should begin by prompting the user to enter 5 values. Then the program should accept that number of values, determining the min, max, and mean. Then it should display those values. The values entered can be any value. Steps for the program: Prompt and Scan for 5 Values Simultaneously search for Max and Min values Add all values to generate a sum Calculate the average by dividing the sum by 5, MEAN=sum/5 Display min, max, and mean values An example run of the program is given below: MIN, MAX, and MEAN CALCULATOR Enter 5 values: Value 1: 4 Value 2: 2 Value 3: 17 Value 4: 3 Value 5: 5 The minimum value is 2, the maximum value is 17, and the average value is 6.2. Notes: Use only one variable for holding the values entered by the user. Do not create five variables. Do not use an array. . There is a related example of how to do this in section 4.5. ACTIVITY 4.15.1: Lab: Min, Max, Mean: Simple Program 10/250 main.c 1 #include 2 #include #include 5 int main() int i; int user Num; int min; int max: int sum=@: float average; printf("MIN, MAX, and MEAN CALCULATOR "); printf("Enter 5 values: "); for(i = 1; i

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!