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