Computer Science, asked by samriddhi804, 4 months ago

write a algorithm and draw a flowchart to enter the time in hours and display it in minutes.​

Answers

Answered by lg5115145
1

Answer:

Following are the Flowchart and the algorithm to enter the time in hours. Display in minutes.

Read the value of hour in "hr" variable by the user also declared the variable tm that is convert the hour in the minutes .

tm=hr*60 ;

Display tm (it will display them into the minutes )

Answered by poojan
9

Flowchart for converting the time into minutes (for 24-hour format) :

Have a look at the attachment given below to see the flowchart.

Algorithm for converting the time into minutes (for 24 hour format) :

  1. Start
  2. Take the no.of hours as an input into an integer variable that denotes hours.
  3. Take the no.of minutes as an input into an integer variable that denotes minutes.
  4. Take the no.of seconds as an input into an integer variable that denotes seconds.
  5. As 1 hr=60 min, and 1 second = 1/60 minutes, convert all of them into minutes and store the result into a floating variable that denotes the total in minutes.                                                                           total_in_minutes = (hours*60) + minutes + (seconds/60)
  6. Print the variable that denotes the total in minutes.  
  7. End.

Learn more :

Python program for conversion of height from cm to inches

brainly.in/question/12368676

Rules for writing an algorithm.

brainly.in/question/5243751

Attachments:
Similar questions