Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a program meeting all requirements in Java. A software company sells a software package for $99. Discount is available according to how many packages
write a program meeting all requirements in Java.
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 ) then 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 pointsStep 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