Design a class named preferred customer

Assignment Help Computer Engineering
Reference no: EM131877793

Problem

Preferred Customer Class

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, he or she gets a 5 percent discount on all future purchases. • When a preferred customer spends $1,000, he or she gets a 6 percent discount on all future purchases.

• When a preferred customer spends $1,500, he or she gets a 7 percent discount on all future purchases.

• When a preferred customer spends $2,000 or more, he or she gets a 10 percent discount on all future purchases.

Design a class named Preferred Customer, which is derived from the Customer class you created in Programming Exercise 4. The Preferred Customer class should have properties for the amount of the customer's purchases and the customer's discount level. Demonstrate the class in a simple application.

Exercise 4

Person and Customer Classes

Design a class named Person with properties for holding a person's name, address, and telephone number. Next, design a class named Customer, which is derived from the Person class. The Customer class should have a property for a customer number and a Boolean property indicating whether the customer wishes to be on a mailing list. Demonstrate an object of the Customer class in a simple application.

Reference no: EM131877793

Questions Cloud

What is the dollar amount of purchase of suits : A department store has budgeted sales of 11,000 men's suits in March. What is the dollar amount of purchase of suits? Each suit has a cost of $80
Formulate the shipment problem for madlantic devices : Formulate the shipment problem for Madlantic Devices. Solve the shipment problem for Madlantic Devices and explain the solution.
Discuss the terms training and development : Training and development may be part of your job description as a human resource professional. If you had to train on a business topic, what would it be.
Standard enthalpy change for reaction : SO2 reacts with Cl2 to form SO2Cl2. The equilibrium constant, Kp, for this reaction is 0.417 at 373 K.
Design a class named preferred customer : Design a class named Preferred Customer, which is derived from the Customer class you created in Programming Exercise 4.
How can human resources handle situation of a employees : How can human resources handle a situation of a employees who is manager for a branch in a conservative district who is transitioning to transgender.
State-average ph of precipitation : what would the 48- state-average pH of precipitation be under these new emission levels?
Stomach acid assuming stomach acid : How many grams of the antacid (CaCO3) used in your titration would be needed to neutralize 35.0 mL of stomach acid assuming stomach acid is 0.14 M HCl?
Design a class named person with properties for holding name : Design a class named Person with properties for holding a person's name, address, and telephone number.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a program that calculates fat grams and calories

john raymond was so pleased with the program you created for his clients that he regers you to his coworker,a nutrionist in the same facility.

  Define data protection controls would benefit their business

the CEO of a company to convince the audience that data protection controls would benefit their business

  Make application that will read and process customer history

making a file that Develop an application that would read and process customer history order information from a file.

  Download the case study titled using the lsquotechnology as

download the case study titled using the lsquotechnology as experience framework from id-bookthe user experience

  Create and test an html document that has half page of text

Create and test an HTML document that has at least a half page of text and a small box of text embedded on the left margin, with the main text flowing around.

  What hash function should be used if it is known in advance

What hash function should be used if it is known in advance that the key values fall into a relatively small range?

  How many frames per second do a T-one and SONET transmit

How many frames per second do a T-1 and SONET transmit? Why this number?

  Show a letter grade based upon the average

In this script, convert pseudocode that uses a decision structure into a shell script. The script then will accept three grades, calculate an average, and then display a letter grade based upon the average.You will need to use either the if statem..

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Create a comic strip by putting three to four pictures

Create a comic strip by putting three to four pictures next to each other horizontally and adding text.

  Explain substantial benefits to the company

A medium sized company requires to upgrade the computer facilities for administrative and design and development applications. At the moment all computer-based applications are processed on a very cold 'Batch' machine whose operating system does n..

  Explaining the role of cio

Assess the role of CIO within any health care organization and explain the key characteristics a CIO would require to possess to be effective in that position.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd