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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!