Page 1 of 1

EXIT الانس 6 يونيو meclearn.mec.edu.om Note: student id should be appended to variables names compulsorily to avoid simi

Posted: Mon Jun 06, 2022 2:15 pm
by answerhappygod
 1
1 (48.42 KiB) Viewed 31 times
 2
2 (48.42 KiB) Viewed 31 times
 3
3 (33.46 KiB) Viewed 31 times
 4
4 (22.66 KiB) Viewed 31 times
EXIT الانس 6 يونيو meclearn.mec.edu.om Note: student id should be appended to variables names compulsorily to avoid similarity Task 4: Class and Object (50 marks) Create a class named Points with the following data members: custld, name, phonePoints and internetPoints. Implement the following member functions in class Points: 1. Input() to input customer's data (custld and name). II. getPoints() to input the phone points and internet points. III. calcPoints() to calculate the total points based on phone points and internet points using value-return method. IV. calcBonus() to calculate the bonus points using value-return method. If total points is greater than 35, then bonus will be 10%, else if total point is greater than 20, then bonus will be 5%, otherwise 0%. V. display() to display customer's custid, name, total Points and bonus. Create class that hosts the main method and create one object. The created object should be used to call the respective functions to test their functionalities and display appropriate messages. MEC_AMO TEM_035_02 Page 2 of 16 1:-0

EXIT 3 من 16 meclearn.mec.edu.com Note: student id should be appended to variables names compulsorily to avoid similarity Sample input/output: C:\Program Files (x86)\Xinox Software CreatorV3LE\GE2001.exe Enter customer Id 001234 Enter customer name MOHAMMED ALI Enter phone points 45 Enter 33 customer Name internet points customer Id 001234 MOHAMMED ALI Total Points is 78.0 Total Bonus is 7.8 Press any key to continue.... Sample input/output: C:\Program Files (x86)\Xinox Software\CreatorV3LE\GE2001.exe Enter customer Id 00123345 Enter customer name MOHAMMED ALI Enter phone points 6 Enter internet points 10 customer Id customer Name 00123345 MOHAMMED ALI الانس 1 يونيو 1:-0

۱/۱۳ - 3 من 16 meclearn.mec.edu.om Sample input/output: C:\Program Files (x86)\Xinox Software CreatorV3LE\GE2001.exe Enter customer Id 00123345 Enter customer name MOHAMMED ALI Enter phone points 6 Enter internet points 10 customer Id customer Name 00123345 MOHAMMED ALI Total Points is Total Bonus 16 0.0 is Press any key to continue... MEC_AMO TEM_035_02 الانس 1 يونيو Page 3 of 16 1:-0