Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) Prompt the user to enter five integer sets of four numbers and store the numbers in a 5 x 4 array called Data[51[4] b)

image text in transcribed

a) Prompt the user to enter five integer sets of four numbers and store the numbers in a 5 x 4 array called Data[51[4] b) If the user selects "A or a" then your program should pass the array Data[ 1] from main () to a function double Mean (const int Data [ ][l, int, int) that receives the array Data [ ]I ] and its dimensions as arguments to find the average for each row and column of array Data and prints the results in function main (). Ifthe user selects "F or f" then your program should pass the array Data[ 1I] from main () to a function void frequency (int const Data [ lII, int, int) that receives the array Data 111 and its dimensions as arguments and counts the number of responses (frequency) of each number, then pints the frequency along with its histogram as follows c) 4 d) If the user selects "N or n" for median, then you program should determine the median by calling function void Median (const int Data [][ l, int, int) a user defined function to sort array of responses into a single-dimensional array in ascending order, and picking the middle element of the sorted array. In this function you should call a user-defined function called PrintArray () to print the sorted array along with the median

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions