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