Convert your Algorithm into a Java Program - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task :

Stock Commission.
An investor buys shares of stock at a particular price per share through their stockbroker.
The investor must pay their stockbroker a commission for the transaction. The commission paid to the stockbroker is a flat rate of 4.25% of the total cost of the shares. Write a program that when given the number of shares purchased and the share price will calculate and display the following:
• The amount paid for the stock alone (without the commission)
• The amount of the commission
• The total amount paid (for the stock plus the commission)
a) Plan a solution by producing an IPO chart for the problem and an initial algorithm.
b) Convert your algorithm into a Java program. The name of the class file should be StockCommission. Compile and test your code in Eclipse.
c) Modify your algorithm in part a to ensure that the user cannot enter an invalid number of shares, share price, or commission rate. Number of shares must be between 100 and 100000. Share price must be greater than $0 but less than or equal to $500.00.
d) Update your Java program to incorporate the validation from part

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.