1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kramer
4 years ago
8

The program below reads in the number of minutes entered by a user. The program that converts the number of minutes to hours and

minutes. Run the program, then modify the code to work in reverse: The user enters two numbers for hours and minutes and the program outputs total minutes.
Computers and Technology
1 answer:
Pavlova-9 [17]4 years ago
4 0

Answer:

Written in Python:

hours = int(input("Hours: "))

mins = int(input("Minutes: "))

result = hours * 60 + mins

print("Result: "+str(result)+" minutes")

Explanation:

This line prompts user for hours

hours = int(input("Hours: "))

This line prompts user for minutes

mins = int(input("Minutes: "))

This line calculates the required output

result = hours * 60 + mins

This line prints the required output in minutes

print("Result: "+str(result)+" minutes")

You might be interested in
Which type of element is , and what is the meaning of that element ?
tester [92]

Can you show a picture other than asking a question without context

6 0
3 years ago
Which view in file explorer can use to sort files by column heading
marusya05 [52]

It's details view. I hope this help.    

4 0
3 years ago
Team members support one another when they view differences as being? A) annoyances they can live with B) signs of poor training
cricket20 [7]
C (dont mind this sentence it is so that i can reach 20 characteristics)




























                                          
6 0
3 years ago
Read 2 more answers
Determine whether the compound condition is True or False. 2<3 and 5<1.3<3 and 1≤1. not (2==3). true false cannot be de
seraphim [82]

Answer:

False

Explanation:

The second bool operation results to false since 5 is not less than 1.3

5 0
3 years ago
Read 2 more answers
Which would you trade on a stock exchange? A: Shares B: Bonds C: Annuities
Ivan
Most likely you would trade shares
7 0
3 years ago
Read 2 more answers
Other questions:
  • A program is run line by line to determine the source of a logic error. Which best describes the specific tool being used? (A.)c
    5·1 answer
  • What is the unit of electric power?
    15·1 answer
  • How to put vibratuon when tapping on keyboard galaxy s3?
    5·1 answer
  • Since cam systems regulate and self-mange the manufacturing process, you classify them as
    9·1 answer
  • In the context of a global information system (GIS), _____ networks offer electronic data interchange standards, encryption, sec
    10·1 answer
  • Dani wants to create a web page to document her travel adventures. Which coding language should she use?
    11·2 answers
  • Choose the algorithms below that are also programs.
    7·1 answer
  • Which protocol is responsible for transporting files between a client and a server?
    14·2 answers
  • How can you create a messages to look like an IMessage?
    8·1 answer
  • The Windows Net use command is a quick way to discover any shared resources on a computer or server. True or False
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!