Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program as follows: Create a function (other than main function) that captures 10 numbers from user. Use an array structure. Display all even
Write a program as follows: Create a function (other than main function) that captures 10 numbers from user. Use an array structure. Display all even numbers in a row, followed by odd numbers in another row. This function will then calculate the average of all 10 numbers and return back to main From main() Send the average to another function and double up the average value before sending back to main() for printing From main() Send the average to another function and triple up the average value before sending back to main() for printing Example output is shown below, user inputs are highlighted and BOLD This program is created to capture numbers in functions: Insert num: 2 Insert num: 4 Insert num: Insert num: 7 Insert num: 9 Insert num: Insert num: Insert num: 9 Insert num: 0 Insert num: 2 4 6 4 0 2 7.919 The average is 4.40 The double of 4.40 is 8.8 The triple of 4.40 is 13.2 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started