Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++ ONLY Instructions Create a program that prompts the users for fifteen whole numbers, stores them in an array, and then prints out the

IN C++ ONLY

Instructions

Create a program that prompts the users for fifteen whole numbers, stores them in an array, and then prints out the contents of the array.

An example interaction follows:

Hey! Witness my first array mojo! Enter 15 numbers and I will tell you what they are. Number 1: 8 Number 2: 6 Number 3: 7 Number 4: 5 Number 5: 3 Number 6: 2 Number 7: 4 Number 8: 1 Number 9: 3 Number 10: 13 Number 11: 32 Number 12: 14 Number 13: 25 Number 14: 51 Number 15: 9 So awesome! The numbers are: 8 6 7 5 3 2 4 1 3 13 32 14 25 51 9 Have a nice day!

If you are unsure how to get started, here are the suggested steps:

Step 1: declare an array of fifteen integers (which you access with 0 to 14).

Step 2: using a for loop, prompt the user for each number and then assign the entered number to the ith value in the array.

Step 3: using a 2nd for loop, output the ith value in the array.

Step 4: Profit.

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

describe fit sigma demand

Answered: 1 week ago

Question

4. What actions should Bouleau & Huntley take now?

Answered: 1 week ago