SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 21 Dec 2017 My Price 8.00

software engineer to create a software package

Code needs to be in C++ with a .cpp attachment

 

--------------------------------------------------------------------------

 

 

 

You have been hired as a software engineer to create a software package for a retail store. Following is the requirement for this software package.

software engineer to create a software package

 

 

Part 1 PersonData and CustomerData classes Design a class named PersonData with the following member variables: ï‚· lastName ï‚· firstName ï‚· address ï‚· city ï‚· state ï‚· zip ï‚· phone

 

Write the appropriate accessor and mutator functions for these member variables.

 

Next, design a class named CustomerData, which is derived from the PersonData. The CustomerData class should have the following member variables: ï‚· customerNumber ï‚· mailingList The customerNumber variable will be used to hold a unique integer for each customer.

 

 

The mailingList variable should be a bool. It will be set to true if the customer wishes to be on a mailing list, or false if the customer does not wish to be on a mailing list. Write appropriate accessor and mutator functions for these member variables.

 

 

Demonstrate an object of the CustomerData class in a simple program. Part 2 PreferredCustomer Class A retail store has a preferred customer plan where customers may 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.  When a preferred customer spends $500, he or she gets a 5% discount on all future purchases.

 

ï‚· When a preferred customer spends $1000, he or she gets a 6% discount on all future purchases. ï‚· When a preferred customer spends $1500, he or she gets a 7% discount on all future purchases. ï‚· When a preferred customer spends $2000, he or she gets a 10% discount on all future purchases. Design a class named PreferredCustomer, which is derived from the CustomerData class you previously created. The PreferredCustomer class should have the following member variables: ï‚· purchasesAmount ( a double) ï‚· discountLevel (a double)

 

The purchasesAmount variable holds the total of a customer’s purchases to date. The discountLevel variable should be set to the correct discount percentage, according to the store’s preferred customer plan. Write appropriate member functions for this class and demonstrate it in a simple program. Input validation: Do not accept negative values for any sale figures.

Answers

(5)
Status NEW Posted 21 Dec 2017 07:12 AM My Price 8.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)