write an algorithm to find this problem : Ramsewak goes to market for buying some fruits and vegetables he is having a currency of 500 with him for marketing .From a shop 2 kg apple priced 50 rupees per kg and 1.5 kg mango prized 35 rupees per kg,2.5 kg potato priced 10 per kg and 1 kg tomato priced 15 per kg he gives the currency of 500 to the shopkeeper find out the amount shopkeeper will return to Ramsewak and also tell the total item purchased.
Answers
Explanation:
Apple – 50 rs. per kg = 50 × 2 = 100
Mango – 35 rs. per kg = 35 × 1.5 = 52.5
Potato – 10 rs. per kg = 10 × 2.5 = 25
Tomato – 15 rs. per kg = 15 × 1 = 15
Total – 100 + 52.5 + 25 + 15 = 192.5
Therefore,
Total currency – Currency spent
500 – 192.5 = 307.5
Hope it helps
Answer:
Natural languages, programming languages, pseudocode, flowcharts, and control tables can all be used to express algorithms.
Explanation:
An algorithm is a process used to carry out a computation or solve a problem. An algorithm is typically a brief process that resolves a recurring issue. Additionally, algorithms are employed as guidelines for carrying out data processing.
Krishna visits the market to buy milk and produce. He has 500 rupees in his possession.
He buys 1.5 kg of carrots and 2.0 liters of milk at a cost of Rs. 50.0 per liter from a store. 2.5 kg of tomatoes are priced at Rs. 10.0 per kg and cost Rs. 35.0 per kg.
He gives the currency of Rs.500 to the shopkeeper
Algorithm:
Step 1: Start.
Step 2: Total ← 0, i ← 1
Step 3: Read amount purchased and unit price of item
Step 4: Total ← Total + amount of item, i * price per unit of item
Step 5: I ← i+1
Step 6: Repeat Step 3 to 5 for each purchased item
Step 7: Read Total Amount given to the shopkeeper as Given Amount.
Learn more to know about it:
https://brainly.in/question/15830900
https://brainly.in/question/13528079
#SPJ2