Read the lab requests and fix my mistakes
Cmpsc121 Lab Assignment #3
Fall 2015
Assignments:
Problem 3-1:
Write a program to ask the user for the flowing:
Read the following from the txt file:
N_shares
P_shares
P_commission
A_return
Year
How many shares to be bought:
The price per share:
Percent commission for the broker for each transaction:
Average annual return as of percentage:
How many years you will hold the stock:
The program that calculates and displays the following:
The amount paid for the stock alone (without the commission)
The amount of the commission
The total amount of paid (the payment for stock plus the commission)
After X years, your shares will worth:
Would you like a receipt? Y/N
N
Print: Have a nice day.
Y
Print:
Your Name:
-------------------------------
Total Stock: $ 25000.00 (example)
Commission: $ 50.00
Total amount: $ 25050.50
Net worth in X years: $ 125000.75
Lab Deliverables:
1.upload your source code (.cpp file) onto Angel before the due date.
* 1. Name your project as Coursenumber_Lab#_LastName.cpp. Upload your .cpp file in the drop box.
Net worth formula incorrect -5
Receipt output alignment issue. -10
If statement not working -10
Not following submission format -5
User prompt statement missing -6