lab15hw-arraybasics - 3. Ask the user to input an array...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework Program: Basics of Arrays Let's work with this array of numbers: index value 0 5.1 1 3.2 2 9.4 3 10.7 4 -0.3 5 1.75 6 2.1 7 -5 8 -22 9 17.1 Create a C++ program with an array to hold this data. Then: 1. Print out the 1st element. 2. Print out the 3rd element.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3. Ask the user to input an array index and display the value stored at that location, e.g. user inputs 5 and 1.75 is displayed to the screen. Keep your solution to this problem in your notebook with your other programs....
View Full Document

This document was uploaded on 02/10/2011.

Ask a homework question - tutors are online