Task 4: Class and Object (50 marks) Create a class named Points with the following data members: custid, name, phonePoin

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Task 4: Class and Object (50 marks) Create a class named Points with the following data members: custid, name, phonePoin

Post by answerhappygod »

Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 1
Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 1 (52.23 KiB) Viewed 20 times
Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 2
Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 2 (44.12 KiB) Viewed 20 times
Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 3
Task 4 Class And Object 50 Marks Create A Class Named Points With The Following Data Members Custid Name Phonepoin 3 (40.51 KiB) Viewed 20 times
Task 4: Class and Object (50 marks) Create a class named Points with the following data members: custid, name, phonePoints and internetPoints. Implement the following member functions in class Points: I. Input() to input customer's data (custid and name). 11. 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. 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 internet points 33 customer Id customer Name 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 ALL Enter phone points 6 Enter internet points 10 customer Id customer Name 00123345 MOHAMMED ALI Total Points is 16 0.0 Total Bonus is Press any key to continue....
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply