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,
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
Get step-by-step solutions from verified subject matter experts
