Question: A software company sells a software package for $99. Discount is available according to how many packages were bought. They are as follows: Write a


A software company sells a software package for $99. Discount is available according to how many packages were bought. They are as follows: Write a program in Java to read a value from the keyboard for the number of packages sold and then display the following with appropriate descriptions: - The numer of packages sold - The cost before discount - The \% discount and the discount amount (if there is any) - The net price to pay Remember to validate the input value. If it is an invalid value ( less than or equal to 0 ) ther display an error message else display information described above. You should use functional decomposition in your program. Hence, you should have functions/methods to do a particular task. First show your high-level algorithm. Which will consitute your functions/methods and then refine the algorim to be more specific. A Word file with a label heading for Question 2 at top followed by: a) Your high-level algorithm (2 points) b) Refinement of your algorithm. (3 points) c) Implementation in Java (22 points) d) Output showing 7 different inputs/outputs (screenshots) 3 points Make sure to follow appropriate Java coding style when writing your code. LASTLY, convert file to pdf and submit it in Canvas
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
