Write a program that accepts a series of numbers, stores the numbers into an array, writes the numbers, square root and the cube root of the numbers, the sum of the numbers, the sum of the square root of the numbers, and the sum of the cube root of the numbers. Round off floating point numbers up to the second decimal place. The following is a sample run of the program: How many numbers will you input? 5 Input 5 numbers: 3 12 15 Square Root 1.73 2.45 Numbers Cube Root 1.44 1.82 2.08 2.29 6. 9. 3.00 3.46 3.87 14.52 12 15 2.47 Total 45 10.09 Try again [Y/N]? N Thank you.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 21PE
icon
Related questions
Question

Problem 29 - Arrays

C++ program pls

Write a program that accepts a series of numbers, stores the numbers into an array, writes the numbers,
square root and the cube root of the numbers, the sum of the numbers, the sum of the square root of the
numbers, and the sum of the cube root of the numbers. Round off floating point numbers up to the
second decimal place. The following is a sample run of the program:
How many numbers will you input? 5
Input 5 numbers:
9
12
15
Square Root
1.73
2.45
3.00
3.46
3.87
Numbers
Cube Root
3
6.
1.44
1.82
2.08
2.29
12
15
45
2.47
10.09
Total
14.52
Try again [Y/N]? N
Thank you.
Transcribed Image Text:Write a program that accepts a series of numbers, stores the numbers into an array, writes the numbers, square root and the cube root of the numbers, the sum of the numbers, the sum of the square root of the numbers, and the sum of the cube root of the numbers. Round off floating point numbers up to the second decimal place. The following is a sample run of the program: How many numbers will you input? 5 Input 5 numbers: 9 12 15 Square Root 1.73 2.45 3.00 3.46 3.87 Numbers Cube Root 3 6. 1.44 1.82 2.08 2.29 12 15 45 2.47 10.09 Total 14.52 Try again [Y/N]? N Thank you.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning