Question
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
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