Question: Arithmetic Expression / cin / cout Practice Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1 .
Arithmetic Expressioncincout Practice
Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges service charges on the total amount for each transaction buy or sell. Write a Ct program that allows Cindy to input the stock name, the number of shares sold, the purchase price of each share, and the selling price of each share. The program outputs the stock name, the amount invested, the total service charge, the amount gained or lost, and the amount received after selling the stock.
Comments
II
Programmer's name: Jack Smith
Course Number: CIS
l Date:
Description: Read the stock name, the number of shares sold, the purchase price of
II each share, and the selling price of each share. The program
II outputs the stock name, the amount invested, the total service charge,
II amount gained or lost, and the amount received after selling the stock.
Es Microsoft Visual Studio Debug Console
Brokerage Service Application
Enter the stock name: Apple
Enter the buying price of each share:
Enter the selling price of each share:
Enter the number of shares sold:
Stock Name : Apple
Total amount Invested in: $
Total amount received: $
Total service charges: $
Amount gained or t: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
