Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use c programming NOT C++ Write a program as follows: Create a function (other than main function) that captures 10 numbers from user. Use an

image text in transcribedUse c programming NOT C++

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

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions