Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A software company sells a package that retails for $99, and thefollowing quanti

ID: 3616239 • Letter: A

Question

A software company sells a package that retails for $99, and thefollowing quantity discounts are given:

                     Quantity                                     Discount

                       10-19                                                20%

                        20-49                                               30%

                        50-99                                               40%  

                        100ormore                                      50%

I need help designing a class that stores the number of unitssold and has a method that returns the total cost of thepurchase.

Explanation / Answer

Can't understand why I am getting "Invalid character constant"at the line that reads :     public static void main (String[]args}        //you have a } instead of a)     public static void main(String[]args)
Syntax error on token "isc", delete this token at line thatreads:       //check that double disc; iscorrect
        if(n>99)
              and TODO Auto-generated method stub at line that reads:         returnn*(1.disc)*99;        //you're missing the - sign between 1. and discand missing the . after 99
                                            return n*(1.-disc)*99.;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote