Question: Please write me this code C++ Program3 MathLoops This program will use your knowledge of all three types of loops, if-else statements, relational and logical

Please write me this code
C++  Please write me this code C++ Program3 MathLoops This program will
use your knowledge of all three types of loops, if-else statements, relational
and logical operators, and mathematical calculations. You will also use some functions
of C++'s built-in C-Standard Library Math class. The program: You are to
write a program that does a number of mathematical calculations based on

Program3 MathLoops This program will use your knowledge of all three types of loops, if-else statements, relational and logical operators, and mathematical calculations. You will also use some functions of C++'s built-in C-Standard Library Math class. The program: You are to write a program that does a number of mathematical calculations based on a (non-negative) integer that the user inputs. Your program logic (controlled by loops) will do the following Ask the user for a non-negative integer. As long as the user enters a negative integer, print a message and then get another input. For example: Please enter a non-negative integer -3 Number cannot be negative! Please enter a non- negative integer .5 Number cannot be negative! Please enter a non- negative integer aWhen it is correct, print a menu to let the user decide what to do with the number. The menu should look like this: Please choose an option 0 Print the number 1 Determine if the number is odd or even 2 Find half of the number 3 Find the reciprocal of the number 4 Raise the number to the power of 5 (using a C++ function) 5 Raise the number to the power of 5 (using a loop) 6 Generate 20 random numbers between 0 and the number (inclusive) 7 Find the sum of 0 up to your number (using a loop) 8 Find the factorial of the number (using a loop) 9 Find the square root of the number (using a C++ function) Extra Credit) loop, Extra Credit) 10 Find the square root of the number (using a loop, 11 Determine whether the number is prime (using a 12 Exit the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!