30. “ALRAJHI” bank is offering discounts for their customers who purchase items in LuLu supermarker using visa credit ca

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

30. “ALRAJHI” bank is offering discounts for their customers who purchase items in LuLu supermarker using visa credit ca

Post by answerhappygod »

30. “ALRAJHI” bank is offering discounts for their customers who purchase items in LuLu supermarker using visa credit cards. Customers can purchase any number of items. But for each card there is a maximum number of items that can apply the discount. The discount percentage also differs for different card types. For each card type, maximum number of discounted items and a discount percentage are as given below:
Card Type
Maximum number of items for discount Discount %
Visa 3 5
Visa Platinum 5 7.5
Visa Signature 5 8
Write a C program to input card type( Visa – V or v, Platinum – P or p, Signature – S or s) and the item description and item prices from the key board. The program should allow the user to input any number of items but discount should apply to the individual items( subjected to the maximum number of items for discount). But overall discounted price benefit should not exceed 500 SR.
Calculate the total bill value and the benefit gained by customer.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply