Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ The purpose of this lab is to learn how to create and use arrays. Description Create a program that will prompt the user for

C++
image text in transcribed
The purpose of this lab is to learn how to create and use arrays. Description Create a program that will prompt the user for 10 numbers and then store them in an array. The program will display: The sum of the numbers in the array . The largest number in the array The smallest number in the array . The numbers in the opposite order from which they were entered Process In your main function declare and populate a 10 element integer array by reading the number from the keyboard. Read the entire array in before processing the numbers. Next, display the sum, largest and smallest elements of the array. The output should be similar to the following: Enter a number: 12 The sum of the elements in the array is 304. The largest number in the array is 45. The smallest number in the array is -3. Next, display the numbers in the array in the opposite order from which they were read in. Turn in your program as before

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions