write a algorithm and draw a flowchart to enter the time in hours and display it in minutes.
Answers
Answered by
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
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) :
- Start
- Take the no.of hours as an input into an integer variable that denotes hours.
- Take the no.of minutes as an input into an integer variable that denotes minutes.
- Take the no.of seconds as an input into an integer variable that denotes seconds.
- 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)
- Print the variable that denotes the total in minutes.
- 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