A customer purchases one or more items and gives
the respective quantity for each item to be
purchased. Based on the quantity and price of the
items, display the final amount after discount.
A customer is eligible for 10% discount on total
purchase price above Rs.1000. For total purchase
price below Rs.1000, no discount is given.
Check if customer has a membership with the store.
If he is member, then he gets an extra 5% discount
on every purchase, but if purchase amount of
member is above Rs.1000 then he gets total discount
of 15% on purchase price. For example, if Rajesh does
purchase of Rs. 1800 which is above Rs.1000 and he is
not member of store he gets discount of 10%.
But If Rajesh is'member of store then he gets total
15% discount on Rs.1800 since its above Rs. 1000, but
if he does purchase of Rs.800 which is below Rs. 1000
then he gets only discount of 5%.
Given , Items and price.
Item No. Items Price
1. Yoghurt. 50
2. Cheese. 100
3. Milk. 40
4. Fruit. 200
5. Oil. 300
Calculate the actual price customer has to pay.
Example 1.
1 3 5
2 1 6
y
1649.0 INR
Java code
Answers
Answered by
0
Answer:
I want to help you but I do not have the right answer
Answered by
1
Answer:
There are many names used to describe marked prices like retail price, market price, etc. Marked price is the price, which is quoted or appears on the product in the form of a label. It is important to remember that the marked price may or may not be similar to the sales price. Because sales price is the price on which the product is sold whereas the product may not necessarily be sold at the given market price. When the product is sold at marked price than market price is equal to selling price.
Similar questions
Computer Science,
3 months ago
India Languages,
3 months ago
English,
6 months ago
English,
6 months ago
English,
11 months ago
Math,
11 months ago