# Data Structures Assignment

CLOSED
Bids
39
Avg Bid (USD)
\$26
Project Budget (USD)
\$10 - \$30

Project Description:
Write a program that computes an invoice for purchasing shares of stock.

A brokerage company has implemented policy to encourage investors to buy shares in even lots of
100. Therefore, the minimum order is 100 shares of stock. The commission charge for the first 100
shares is \$2.55. An additional commission of 2 cents per share is charged for all shares over 100
shares.

Requirements:

The program must:

• Define an integer constant that holds the minimum number of shares that can be ordered.
• Define two floating point constants that will hold:
o The minimum order commission
o The commission for each share over the minimum order
• Define a string constant for the investor’s name – use YOUR name
(e.g., "Samantha Washington")
• Define two character constants for the investor’s initials – use YOUR initials
(e.g., 'S' and 'W')
• Define an integer variable to store the total number of shares purchased (read from the
user)
• Define an floating point variable to store the cost of one share of stock (read from the user)
• Define two floating point variables to store parts of the total cost.
o The cost of all shares ordered
o The commission charged for additional shares over the minimum order
• Display a program description, followed by several prompts and input statements to read
the total number of shares purchased from the user, and the price per share.
o You may assume that the number of shares entered by the user will always be at least
as many as the minimum order requirement

Sample Input

Stock Purchase Invoice Program

Enter number of shares purchased: 176
Enter the price per share: [url removed, login to view]

• Calculate the three parts of the total cost.
• Add all of the above costs together to determine the total bill.
• Add any other variable definitions or calculation statements you think are needed to perform
• Output statements to display the results to the console, in the following format:

Investor: Samantha Washington (SW)
Shares purchased: 176
Price per share: [url removed, login to view]

Cost for all shares [url removed, login to view]
Commission for minimum order [url removed, login to view]
--------
Total Billed to Investor Account: [url removed, login to view]

NOTES:
o Display a few blank lines to separate the input from the output.
o The dollar figures in the totals column should all line up on the decimal point.
o If only the minimum number of shares is purchased,
the commission for additional shares will be 0.00.

Thank you for your help and I hope to hear from you soon.

Skills required:
C Programming, C++ Programming, Engineering, Software Architecture, Software Testing
Project ID: 5062862
Report Project
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

\$ 23
in 1 days
\$ 35
in 1 days
\$ 105
in 3 days
\$ 23
in 1 days
\$ 30
in 3 days
\$ 30
in 0 days
\$ 100
in 3 days
\$ 35
in 2 days
\$ 14
in 0 days
\$ 20
in 0 days