Question: Instructions D.S. Malik C++ Programming: From Problem Analysis to Program Design 8th Edition Summary Cindy uses the services of a brokerage firm to buy and

Instructions

D.S. Malik

C++ Programming: From Problem Analysis to Program Design

8th Edition

Summary

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, buy or sell. When Cindy sells stocks, she would like to know if she gained or lost on a particular investment.

Instructions

Write a program that allows Cindy to input:

The purchase price of each share

The selling price of each share

The number of shares sold

The program outputs:

The amount invested

The total service charges

Amount gained or lost

The amount received after selling the stock.

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!