Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started