Computer Science, asked by vidhisharma2163, 2 months ago

A Credit card company allows a limit to spend Rs. 15000 to its clients. It also offers cash back facility according the table shown below. Input the amount spent by the user and display the cash back amount that he is entitled to.
Amount (in Rs.) Cash Back (in Rs.)
First 1000 100
Next 2000 200 + 2% of amount exceeding 1000
Next 4000 400 + 4% of amount exceeding 3000
Next 8000 800 + 8% of amount exceeding 8000
Write a program to declare the class 'Credit' that takes in the name of the client and the amount spend by him. Calculate the cash back amount and print it along with all the other input details.
(Assume there are 20 clients. Take details and print the requisite output for each of them one by one.)

Answers

Answered by Anonymous
5

Answer:

I HOPE HELP YOU

Explanation:

• A Credit card company allows a limit to spend Rs. 15000 to its clients. It also offers cash back facility according the table shown below. Input the amount spent by the user and display the cash back amount that he is entitled to.

Amount (in Rs.) Cash Back (in Rs.)

First 1000 100

Next 2000 200 + 2% of amount exceeding 1000

Next 4000 400 + 4% of amount exceeding 3000

Next 8000 800 + 8% of amount exceeding 8000

Write a program to declare the class 'Credit' that takes in the name of the client and the amount spend by him. Calculate the cash back amount and print it along with all the other input details.

(Assume there are 20 clients. Take details and print the requisite output for each of them one by one.)

Similar questions