Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a C program : please solve it as printf and scanf NOT count. Please solve it with an array. Break and continue are

image text in transcribed

This is a C program : please solve it as printf and scanf NOT count. Please solve it with an array.

Break and continue are not allowed global variable are not allowed

--) https://www.vlab.academy/learn/student/w KCourses Write a function called FindMean that takes no parameters and it |B retums back a float value The function keeps prompting the user to enter an infeger, one at a time. The functionshould keep doing so until the user enters 0 Then the program should calcaulte the sum of all numbers that the user has entered and their arithmetic mean (exclude the last number 0 that the user enters to stop the input prompt). By the end of the function. print the total value, then refurn back the mean of the numbers. Function calling Call the function Findmean and print the returned result which represents the mean viaue Sample Run: Input -3 Outputs Please enter an integer Please enter an integer Please enter an integer Please enter an integer Please enter an integer The sum is 6 0 The mean is 16 Note The mean is 1 5 because the sum is 6 and there are 4 numbers not including 0

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

l Discuss why job analysis is changing as organizations change.

Answered: 1 week ago