Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need just the code in c++ programming Description: For this assignment you are required to log onto the osprey.unf.edu server and use Pico or

image text in transcribed

i need just the code in c++ programming

Description: For this assignment you are required to log onto the osprey.unf.edu server and use Pico or Vi to construct asolution to the following problem. You can also copy and paste from your IDE into the file on Osprey. Objectives: To use iteration to solve math problems, To use the math library functions. To use the Linux command line tools and understand how to navigate the operating system shell. To use the Linux "turnin" program to submit program source code for grading, 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 adqed 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 least 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. Example: 37 + 39 + 41 +43 + 45 15 + 17 + 19 + 21 + 23 + 25 + 27 + 29 + 31 + 33 + 35 + The sum of all odd numbers from 15 to 45 is: 480.000 The average of 16 numbers is 30.000 The square root of 30.000 is 5.477

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Are t-tests or Z-tests used more often in business research? Why?

Answered: 1 week ago