Page 1 of 1
STEP1: Create a Superclass for the wholesale Store KessceMembership which can store the information about the members Me
Posted: Fri May 20, 2022 4:33 pm
by answerhappygod

- Step1 Create A Superclass For The Wholesale Store Kesscemembership Which Can Store The Information About The Members Me 1 (30.88 KiB) Viewed 21 times

- Step1 Create A Superclass For The Wholesale Store Kesscemembership Which Can Store The Information About The Members Me 2 (42.91 KiB) Viewed 21 times
STEP1: Create a Superclass for the wholesale Store KessceMembership which can store the information about the members Member name(String) and age(int) and any if needed It should have at least 2 constructors one with no arguments and one with some arguments. STEP2: Create two subclasses for Goldstar $50) and Executive($90) membership You need to have atleast one constructor for each subclass. Your subclasses should have methods to calculate the points balance for each member based on their purchases and returns. You need a method for redeem points and for output values STEP3: Create a main function which should ask the user about the name and type of membership. Based on the user's response it should create objects for the class. Age should be 21 or higher to get membership. (use exception) For starting Goldstar membership they get 500 points and for Executive they get 1000 points. Then your program should ask the user about the total amount of their purchase or returns. It should add or subtract points to the points balance. Every dollar they spent they get 1 point for Goldstar and 1.5 points for Executive. When they return anything the points get subtracted in the same scale. You have to go through the loop Your Program should have the following: 1. Separate header files 2. Separate cop files 3. Your own namespace (Atleast 1) 4. Atleast one Exception handling 5. Atleast one Template OR overload any one operator 6. One dynamic variable 7. Use map or set
Sample Run of the program 3. Redeem Please enter your name Williams.K 4.-Different New Member Please enter your age 34 Please enter your choice 4 Please enter the type of membership you want Executive Please enter your name Lilliana.M Congrats! You are Now an Executive member of KossCo! Please enter your age 28 Your Points balance is 1000 Please enter the type of membership you want Goldstar 1-Purchase Congrats! You are Now a Goldstar member of Koss Co! 2-return Your Points balance is 500 3. Redeem 1-Purchase 4.-Different New Member 2-return Please enter your choice 1 3. Redeem What is the purchase amount? $320 4.-Different Member Your New point balance is 1480 Please enter your choice 1-Purchase 2-return 3. Redeem 4.-Different New Member Please select one 3 Your redeem amount is $14.80 1-Purchase 2-return