subject
Business, 24.02.2020 17:33 aurorasweetpea610

A retail store has a preferred customer plan where customers can earn discounts on all their purchases. The amount of a customer's discount is determined by the amount of the customer's cumulative purchases in the store, as follows: When a preferred customer spends $500, they get a 5% discount on all future purchases. When a preferred customer spends $1,000, they get a 6% discount on all future purchases. When a preferred customer spends $1,5000, they get a 7% discount on all future purchases. When a preferred customer spends $2,000, they get a 10% discount on all future purchases. Design a class named PreferredCustomer, which inherits from the Customer class you created in Exercise 7. The preferredCustomer class should have int fields for the amount of the customer's purchases and the customer's discount level. Write a constructor that initializes these fields as well as accessor and mutator methods. Desmonstrate the class in a program that prompts the user to input the customer's name, address, phone number, customer number, whether they want to recieve mail, and the amount they've spent, and then uses that information to create a PreferredCustomer object and print its information. (Use string formatting to print the amount spent.) Create all of the classes in the same file by not delcaring any of them public. SAMPLE RUN

ansver
Answers: 2

Another question on Business

question
Business, 22.06.2019 02:00
Keshawn used to work for an it company in baltimore, but lost his job when his company decided to use workers in new delhi instead. this is an example of:
Answers: 1
question
Business, 22.06.2019 11:20
Stock a has a beta of 1.2 and a standard deviation of 20%. stock b has a beta of 0.8 and a standard deviation of 25%. portfolio p has $200,000 consisting of $100,000 invested in stock a and $100,000 in stock b. which of the following statements is correct? (assume that the stocks are in equilibrium.) (a) stock b has a higher required rate of return than stock a. (b) portfolio p has a standard deviation of 22.5%. (c) portfolio p has a beta equal to 1.0. (d) more information is needed to determine the portfolio's beta. (e) stock a's returns are less highly correlated with the returns on most other stocks than are b's returns.
Answers: 3
question
Business, 22.06.2019 11:50
The basic difference between macroeconomics and microeconomics is that: a. microeconomics looks at the forest (aggregate markets) while macroeconomics looks at the trees (individual markets). b. macroeconomics is concerned with groups of individuals while microeconomics is concerned with single countries. c. microeconomics is concerned with the trees (individual markets) while macroeconomics is concerned with the forest (aggregate markets). d. macroeconomics is concerned with generalization while microeconomics is concerned with specialization.
Answers: 3
question
Business, 22.06.2019 16:00
In a perfectly competitive market, the long-run market supply curve tends to be horizontal or nearly so. what is another way to state this fact? (a) market supply is much more elastic in the long run than the short run. (b) in the long run, average total cost is minimized. (c) in the long run, price equals marginal cost. (d) market supply is much less elastic in the long run than the short run.
Answers: 1
You know the right answer?
A retail store has a preferred customer plan where customers can earn discounts on all their purchas...
Questions
question
Mathematics, 17.11.2020 06:00
question
Mathematics, 17.11.2020 06:00
question
Mathematics, 17.11.2020 06:00
question
Mathematics, 17.11.2020 06:00
question
Mathematics, 17.11.2020 06:00
Questions on the website: 13722363