Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment # 7 This assignment is to demonstrate the use of FUNCTIONS and ARRAYS. Write a program that meets the following requirements: 1. Read in

Assignment # 7 This assignment is to demonstrate the use of FUNCTIONS and ARRAYS. Write a program that meets the following requirements: 1. Read in a maximum of 50 records, each record will be on a separate line using columns one and two. Use the data from file data7.txt. Example: 36 O1 5X 2. Determine if each record can be converted into an integer. Keep track of all records that are not integers and print a list of them. Use A7shell.cpp to start your program. For all the good integer data records: 1. Determine the average (mean) rounded to the nearest whole number, median, mode and standard deviation. 2. Compute the difference between each of the positive integers and the mean and store the difference in an array corresponding to the original integer number. 3. Determine which of the integers deviates the most from the mean, print the number and how much it deviates. 4. Print the original list of integers along side the list of integers sorted from the lowest to the highest. 5. Print a bar graph indicating how much each integer deviates from the mean. Use the sorted list of integers to develop the graph. 6. Label and print all of the above findings. Your program must have separate functions to determine each of the following: mean, median, mode, standard deviation, reading of the original data, printing of the invalid records, printing of the valid records, number 4 and 5 above. Your program will have its final test with the integers from the data file data7.txt. Submit your source code and algorithm or flowchart in Canvas. All values must be clearly labeled in the output. Submit a screen capture of your output in Canvas. Documentation will be 20% of your grade. Your source code must contain the following documentation. 1. Header information: (Source Code and Output) Your Name, course & section number, assignment number and due date.

2. A brief description of your assignment. 3. Variable dictionary: A brief description of every variable used in your program. 4. Comments related to input and output of data and all formulas used in your code.

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_2

Step: 3

blur-text-image_3

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago