Q1 - write down an algorithm for each of the following problems:- 1) Find the average of four numbers. 2) Change the time in seconds to minutes. 3) Find the product of two numbers (this means to multiply the two numbers), 4) Find the difference between two numbers 5) Change a volume in pints to litres (there are 2.2 pints in every litre). 6) Find the average speed of a car given the journey time and the distance travelled. 7) Find the volume of a cube given the length of a side. 8) Find the volume of a pyramid, given the length and width of its base and its height

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 32PE
icon
Related questions
Question

Q1 - write down an algorithm for each of the following problems:-
1) Find the average of four numbers.
2) Change the time in seconds to minutes.
3) Find the product of two numbers (this means to multiply the two numbers),
4) Find the difference between two numbers
5) Change a volume in pints to litres (there are 2.2 pints in every litre).
6) Find the average speed of a car given the journey time and the distance
travelled.
7) Find the volume of a cube given the length of a side.
8) Find the volume of a pyramid, given the length and width of its base and its
height

Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr