Question: Use the C programming language and also put comments in the code. Take the pic to a new tab and zoom in. D Micrasoft Word-

Use the C programming language and also put comments in the code. Take the pic to a new tab and zoom in.

Use the C programming language and also put comments in the code.

Take the pic to a new tab and zoom in. D Micrasoft

D Micrasoft Word- SP 201 x Secure | http/p thyrul 1 yp id225412psuh4/SP 20 1 8 CSE2421-Lab2.pdf?AWSA cessKeyld = AKIAI EDNRIJ4AZKEw6HA&Expires#1 51 7789 18295 DATA SET CALCULATOR (100%) Mandatory filenanne labLe The user of your program will use it to do some elementary floating point calculations for an unknown number of simple data sets. Each data set consists of a list of floating point values, but the number of values to be entered will be specified by the user, so you do not know in advance how many values there will be in cach data set. Additionally. you do not know in advance how many data sets the user will enter. Therefore, you cannot use a static array to store any of these values. First, you should prompt the user to enter the number of data sets. The user will enter an integer greater than or equal to 1 to indicate the number of data sets. (NOTE: Make a point to test your program to ensure entengs data set works.) You should then prompt the user to enter the number of floating point values in ench data set which the user will enter as an integer greater than O), followed by the floating point values themselves on the same line (newline will follow the last floaling poimt value on the line). You can assume that the user will enter the input in this format, so you do not need to check to make sure that the format of the input meets this description, and you do not need to reject input which is not properly formatted. You can also assume that the user's input is correct. That is, that the number of data sets entered is actually the number of data sets in the input a cach data set is actually the number of floating point values that follows on the same input line. Your program needs to read the user input and store the floating point values in each data set in a dynamically allocated array of the appropriate size. If you do not completely understand this description jump to the bottom of this file and check out the example data. (NOTE: Make a point to test your program to ensure that entering just floating point value o aine works. e.g. there is anly one float value in the dataset and all of the functions described below calculate correctly-) and that the integer entered first to indicate the number of values for After getting the values in each data set, your program should repeatedly do the following two things 1. Print the following prompt: Enter the number of the data set on which you wish to do calculations: The user will enter an integer value, followed by newline, in response to this prompt (the user will enter 1 for the first data set, 2 for the second, etc.), then based on the value entered, your program must he able to access the values in the appropriate data set in te dynamically allocated storage which you have created. Then do what is described immediately below 2. Your program should then prompt the user to choose one of the following aptions for a calculation based on the data set chosen by the user (ask the user to enler one of the six I) 2) 3) Find the minimumvaluc. Find the maximumvalue. Calculate thesum of all the values. D Micrasoft Word- SP 201 x Secure | http/p thyrul 1 yp id225412psuh4/SP 20 1 8 CSE2421-Lab2.pdf?AWSA cessKeyld = AKIAI EDNRIJ4AZKEw6HA&Expires#1 51 7789 18295 DATA SET CALCULATOR (100%) Mandatory filenanne labLe The user of your program will use it to do some elementary floating point calculations for an unknown number of simple data sets. Each data set consists of a list of floating point values, but the number of values to be entered will be specified by the user, so you do not know in advance how many values there will be in cach data set. Additionally. you do not know in advance how many data sets the user will enter. Therefore, you cannot use a static array to store any of these values. First, you should prompt the user to enter the number of data sets. The user will enter an integer greater than or equal to 1 to indicate the number of data sets. (NOTE: Make a point to test your program to ensure entengs data set works.) You should then prompt the user to enter the number of floating point values in ench data set which the user will enter as an integer greater than O), followed by the floating point values themselves on the same line (newline will follow the last floaling poimt value on the line). You can assume that the user will enter the input in this format, so you do not need to check to make sure that the format of the input meets this description, and you do not need to reject input which is not properly formatted. You can also assume that the user's input is correct. That is, that the number of data sets entered is actually the number of data sets in the input a cach data set is actually the number of floating point values that follows on the same input line. Your program needs to read the user input and store the floating point values in each data set in a dynamically allocated array of the appropriate size. If you do not completely understand this description jump to the bottom of this file and check out the example data. (NOTE: Make a point to test your program to ensure that entering just floating point value o aine works. e.g. there is anly one float value in the dataset and all of the functions described below calculate correctly-) and that the integer entered first to indicate the number of values for After getting the values in each data set, your program should repeatedly do the following two things 1. Print the following prompt: Enter the number of the data set on which you wish to do calculations: The user will enter an integer value, followed by newline, in response to this prompt (the user will enter 1 for the first data set, 2 for the second, etc.), then based on the value entered, your program must he able to access the values in the appropriate data set in te dynamically allocated storage which you have created. Then do what is described immediately below 2. Your program should then prompt the user to choose one of the following aptions for a calculation based on the data set chosen by the user (ask the user to enler one of the six I) 2) 3) Find the minimumvaluc. Find the maximumvalue. Calculate thesum of all the values

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!