Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started