c) An electrical store will award their customers with reward point based on their spending as follows : • For each RM5 spending, one point is given. • If the customer spent more than RM1000, extra 50...



C++ Programming


c) An electrical store will award their customers with reward point based on their spending as<br>follows :<br>• For each RM5 spending, one point is given.<br>• If the customer spent more than RM1000, extra 50 points is awarded.<br>@ Write a C++ function named CountRewardPoint that accepts total spending as<br>parameter, then calculates and returns the total points given by the electrical store. For<br>example : if spending is RM84, then total reward point earned is 16. However, if spending<br>is RM1004, then total reward point earned is 250.<br>Write a fragment of code in C++ that asks user to enter the total spending and calls the<br>function CountRewardPoint, then display the total points earned.<br>w<br>

Extracted text: c) An electrical store will award their customers with reward point based on their spending as follows : • For each RM5 spending, one point is given. • If the customer spent more than RM1000, extra 50 points is awarded. @ Write a C++ function named CountRewardPoint that accepts total spending as parameter, then calculates and returns the total points given by the electrical store. For example : if spending is RM84, then total reward point earned is 16. However, if spending is RM1004, then total reward point earned is 250. Write a fragment of code in C++ that asks user to enter the total spending and calls the function CountRewardPoint, then display the total points earned. w

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here