Answer to Question #284963 in Algorithms for She

Question #284963

Design an algorithm to solve the problem using pseudocode:



(Average sales in grams) Assume a vendor sells 6 kilograms of grocery in 15 hours and 30 minutes and 30 seconds. Write a program that displays the average sale in grams per hour (Note that 1 kilogram is 1000 grams).

1
Expert's answer
2022-01-07T01:49:52-0500

1 Convert kilograms to grams by multiplying on 1000

2 Convert hours to minutes by multiplying on 60, save value as T

3 Add minutes to T

4 Convert T from minutes to seconds by multiplying on 60

5 Add seconds to T

6 Divide grams by T

7 Print the result


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS