The Pennsylvania State University Problem Solving Skills C Program Paper Please follow the instruction bellow their is additional file (data) that I need to send by email to the tutor. Goals: Developing problem-solving skills, using functions and arrays
Problem: A concrete manufacturer is trying to create a new formulation that can be used for
highways. One of the properties they are studying is the compressive strength of the concrete
once it has cured. They also are concerned that the compressive strength may vary with the
location of the plant that makes the concrete. The company has decided to study a number of
different formulations at different plants. They have automated the data collection so that the
compressive strengths are stored in a file containing a table (2-D array). Each row of the table
represents a specific formulation and each column represents a specific plant. Your program
should have a main function and 4 other functions as described below. The manufacturer has
stated that there will not be more than 50 formulations and not more than 12 plants.
One function should open the file and read the first line that contains the number of formulations
(the first value) and number of plants (the second value). Using these values, your function
should then read the rest of the data and store the values in a 2-dimensional array. As the
compressive strengths are being stored, a message should be output if any compressive strength
is not in the range of 15 to 75 MPa. The message should output the formulation, plant and
compressive strength as the example below.
The value of 10.84 from plant 1 for formulation 8 is suspect.
The compressive strength should still be stored in the array. The number of formulations and
number plants should be sent back to the function call
One function should accept the 2-dimensional array, the number of formulations and number of
plants then create a 1-dimensional array containing the minimum compressive strengths for each
formulation and create a 1-dimensional array containing the maximum compressive strengths for
each formulation. This function should call the function to output a 1-dimensional array for the
minimum and maximum values before sending these arrays back to the function call.
One function should accept the 2-dimensional array and determine the average compressive
strength for each formulation. The average for compressive strength for each formulation should
be calculated without including the maximum and minimum compressive strength for that
formulation, therefore this function will need to call the function that calculates the minimum
and maximum compressive strengths for each formulation. The average compressive strengths
for the formulations should be stored in another 1-dimensional array which is sent back to the
function call
One function that will accept a 1-dimensional array, the number of values stored in the array and
a description of what is stored in the array, e.g “minimum compressive strength for
each formulation,” average compressive strength for each
formulation”, etc. The function will then output the description and the values. The values
should be output to 4 significant digits;
The main function should prompt the user to enter the filename for the data file and call the
function to import the data from the file into a 2-dimensional file. Next main should call the
function to calculate the averages of the formulations. The main function should then call the
function to output a l-dimensional array sending the array of averages to the function to
calculate the 1-dimensional array.
A data file, CompStrengths.dat”, has been posted on CANVAS. However, you should create
your own file with fewer formulations and plants to test your code.
Do not use pointers, dynamic arrays or vectors to complete this project. Remember that if
you get help from anyone other than the TAs or Dr. Quick you are required to give the
person’s name in the overall introductory comments for the program.
Make sure that you have comments immediately before each function that describe the
purpose of the function, the input needed by the function (what is passed to the function
and what the user is prompted to enter within the function), the output expected from the
function (what is sent back to the function call and what is output to the screen) by the
function, and processing needed by the function.
Remember to confirm all your submissions to CANVAS. You may make multiple
submissions to the assignment and the latest one will be graded.
Purchase answer to see full
attachment
Science is the pursuit and application of knowledge and understanding of the natural and social…
Clearly stating the definition, the values, the meaning of such values and the type of…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…
https://www.npr.org/sections/ed/2018/04/25/605092520/high-paying-trade-jobs-sit-empty-while-high-school-grads-line-up-for-university Click on the link above. Read the entire link and answer the questions below…
All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures…