Question: Write a program that catculates the gainslosses gonetated by a stock itwostment aftor bieying and solling shares of the stock macket through the rirade online

 Write a program that catculates the gainslosses gonetated by a stock

Write a program that catculates the gainslosses gonetated by a stock itwostment aftor bieying and solling shares of the stock macket through the rirade online broker platiorm. The program should prompt the user for Company name and syminot. Number of shares transacted Cost per share at the time of buying Price smaiket values per titure as the tene of seling It wili then calcilato the gainslosses gonerafed, corsideting that i hade chacges a 2% cominission per trade. it shoukd disptay a report that summanmes the stock transactian showing Total cont Toear proceedir Cotratskion paid Gaiminges (arnount and percentago) Noter Output Sample

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!