Predict and write the algorithm for the given problem:
Ali goes to market for buying some fruits and vegetables. He is having
a currency of Rs 500 with him for Shopping. From a shop he
purchases 2.0 kg Apple priced Rs. 50.0 per kg, 1.5 kg Mango priced
Rs.35.0 per kg, 2.5 kg Potato priced Rs.10.0 per kg, and 1.0 kg Tomato
priced Rs.15 per kg. He gives the currency of Rs. 500 to the
shopkeeper. Find out the amount shopkeeper will return to Ali. Also
display the total items purchased.
Answers
Answered by
0
Answer:
In mathematics and computer science, an algorithm is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of problems or to perform a computation
Similar questions