Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The out put Submit the source code (your filename.c file) electronically and on paper as a hard copy. Include copy of the results as comment

image text in transcribed
The out put
image text in transcribed
Submit the source code (your filename.c file) electronically and on paper as a hard copy. Include copy of the results as comment lines in the completed program. All source code must be in a filename.c format. No other formats will be accepted Phase I-General Preprocessing items: Use mnemonic variables of 3 characters or more. Use void main (void) or void main () in your program and leave off the return 0. Use double as the choice for all floating point values. Add heading items using as printf statement. Watch for instructions that specify a symbolic constant and assign that symbolic constant in all capital letters and using the #define The xxxx" or the" (highlighted item) in a sample output will show examples of locations that the computer program will transfer values or that you will enter values. A line of information in the program should be no longer than 80 characters. All user-defined function problems should include the student's last name as part of their function name. All user defined function written for the class must have a prototype. The user-defined functions will be located in the program after the main program. Only use local variables in the programs, no global variables. "break" t Problem #1 Write a program that uses gnarrar that is able to read up to 0fOatng point values from the user and then calculates their average and the deviation. The program will use a simplified equation to compute the ahsolute deviation of each numerical quantity from the average using the formula deviationxvalueaverage |, where i- 1,2,., n or deviation absolute value xvalue- average); where i-1,2, ..., n The program should use loops for the repetitive items. The program will ask how many sets of numbers are going to be worked with for this execution of the program. The program will also ask how many numbers are in each set. Since we are using a loops to perform the input in to the array, calculations and then the array prints the values and calculations to the screen, it is known that the quantity is variable up to 50 pieces of data. We just happen to give a certain amount of values the first time and a different amount of values are used the second time. The output display of numbers should be with 2 decimal places compared to the input of numbers with 1 decimal place. Use of the Math header file built-in functions is mandatory where applicable in the program. Check your averages and deviations outside of the program to verify your output. The program uses upper and lower case letters to check if you want to run it again (Use the following filename system: student's last name deviation 11 firstinitial.c)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions

Question

5. Identify the logical fallacies, deceptive forms of reasoning

Answered: 1 week ago

Question

6. Choose an appropriate organizational strategy for your speech

Answered: 1 week ago