Question: 1. Write a C++ code that will calculate the amount that a customer need to pay after the discount. The customer just need to key

 1. Write a C++ code that will calculate the amount that

1. Write a C++ code that will calculate the amount that a customer need to pay after the discount. The customer just need to key in the total amount and the program will calculate the discounted amount accordingly. For total amount more than RM500.00 the discount value is 10%. For total amount less than RM500.00 the discount value is 8%. 2. Write a C++ code that will call a function namely check() to check the condition of the number inserted by the user, i.e. odd or even. The input and output should be in the main() program. The function check() will only decide and return the condition of the number. (hint: x%2=0 is a method to check if the number is even or odd)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!