Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago