Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: You are tasked to use repetition to create a loop that will produce a sequence that will calculate the sum of the odd numbers

Problem: You are tasked to use repetition to create a loop that will produce a sequence that will calculate the sum of the odd numbers between 15 and 45 inclusive of those numbers. Your program should then also calculate the average of that sum, which is the sum divided by the number of values that were added to it. Your program will finally use the math library to determine what the square root of that value is by using the math library function sqrt(). Your program should print out all values to the precision of at l east the thousandths position. You may make use of any number of variables that you need to keep track of the count, the sums, and iterators. I suggest iterating your loop by 2 starting at 15 until the condition of reaching 45. You can use your own solution.

Rubric: Program must compile and run without crashing using any variations of the shown example input. -100 Program must provide a correct output at least to the thousandths place. -60 Program must have a program description as shown in Canvas. -20 Program must use a loop to compute the sum. -40 Program must use the standards for naming and proper placement for local declarations and statements. -5 each.

Can anyone please help me with this? It has to be in C language though..

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago