Lab assignment 1

This is an individual Lab assignment to be done by each student.

Here is the problem specification:

Write the program so that it asks the user for a dollar amount by which each price should be increased. The program then should increase each price in the array's first column by that amount. For example, when the user enters the number 10, the program should increase each element's value by $10. Store the updated prices in the second column of the array. After increasing each price, the program should display the contents of the array, row by row.

Assume the the array has 5 rows and 2 columns. The first column has the following values: 10, 20, 30, 40, 50

Sample run

Increase amount: 10
10   20
20   30
30   40
40   50
50   60
  • Enter your C++ instructions into a source file named LastFirst_a1.cpp (e.g. DoeJohn_a1.cpp). Include your name and comments in the program.
  • Compile and run the program.
  • Take a screen shot of the output. Save it in LastFirst_a1.doc (e.g. DoeJohn_a1.doc).
  • Submit the 2 files (do not zip them. It becomes a problem because some of you don't know how to zip the files). Do not include any folders.