Reference no: EM13768592
Your project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements and the use of at least one array. The specific problem you need to solve for the final project is:
Harmonium nitride is a chemical manufactured by several companies for industrial applications. You work in a testing lab and are testing samples of harmonium nitride from several manufacturers for contamination. Each manufacturer has submitted one (1) sample. The test determines the level of contamination in parts per million (PPM). You need to report some statistics based on the results of the tests: (a) the average level of contamination for the set of samples tested, and (b) the names of the manufacturers of the samples that have above-average contamination levels.
Here are some aspects of this project that you need to take into consideration:
The number of samples in a batch being tested varies, however you must be able to accommodate at least 50 samples.
You should separate some functionality into modules.
You will need a strategy for determining when entry of sample data is complete, as well as preventing the user from entering more sample data than the maximum allowed.
For this phase of your project, there are 2 components::
Program Description - A concise, clear description of the program you are building.
Analysis - Address each of the following items:
What are the inputs? What is the data type of each input?
What are the outputs? What is the data type of each output?
Describe in detail how the program will get from the inputs to the outputs. Specifically, describe your strategies for (a) acquiring the data and storing it, (b) computing and printing the average level of contamination, and (c) identifying those manufacturers whose samples have above-average levels of contamination. For each of these strategy areas, explain what roll (if any) will be played by conditional statements, loops, and arrays.
Provide a variables table, showing the name (to be used in the program), the data type, and the usage of each variable used in the program. (Note: In phase 2, you may find it necessary to revise the preliminary table. This is normal.)