Compare the buying price and the current price of stock


Discuss the below:

Q: Six stock prices (buying price) are stored into a 2 x 6 two-dimensional array. The user inputs the current price of each stock. This program will compare the buying price and the current price of each stock. It will print a table like following:

Stock Buying Price Current Price Profit If Sold
1 12.25 15.00 2.75

After the table is displayed, print out the stock with the highest profit if sold and its position in the array[row][column].

 

Solution Preview :

Prepared by a verified Expert
Database Management System: Compare the buying price and the current price of stock
Reference No:- TGS01931767

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)