Question: C Programming Write an interactive C computer program that asks the user to enter the number of stocks purchased, the price of stock per share,

C Programming
C Programming Write an interactive C computer program that asks the user

Write an interactive C computer program that asks the user to enter the number of stocks purchased, the price of stock per share, and calculates the following 1. The amount paid for the stock alone (without the commission). 2. The amount of the commission. 3. The total amount paid (for both the stock plus the commission). The code should generate an output which comply with the following specs: Transaction Summary Report: Number of Purchased Stocks: XXXX stocks Commission Paid Amount: $.XX where X represents the amount of the commission. Total Stock Purchase Amount: $XX.XX where XXXXXXXXX represents the total amount paid (for both the stock plus the commission). In addition, your code should meet the following specifications: 1. The code should include appropriate documentation. 2. You should declare the stock broker commission as a macro constant (Symbolic constant)

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!