Question: Arithmetic Dxpression / cin / cont Practice Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1 .

Arithmetic Dxpression/ cin/cont Practice
Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total amount for each transaction bur or sell. Write a CH+ program that allows Cindy to input the stock name, the number of shares sold, the purchast 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
J|****************************************************************************
// Programmer's name: Jack Smith
// Course Number: CIS142
I/ Date: 2/5/2024
I/ 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.
Cis Microsoft Visual Studio Debug Console
Brokerage Service Application ***
Enter the stock name: Apple
Enter the buying price of each share: 120.96
Enter the selling price of each share: 122
Enter the number of shares sold: 25
Stock Name : Apple
Total amount invested in: $3069.36
Total amount recelved: $ 3004.25
Total service charges: $91.11
Amount gained or lost: $-65.11
 Arithmetic Dxpression/ cin/cont Practice Cindy uses the services of a brokerage

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!