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
Spreadsheet software creates a ____, composed of a grid of columns and rows
andriy [413]
Spreadsheet software creates a worksheet, composed of a grid of columns and rows.
3 0
3 years ago
In your opinion, who is the best Mine.Craft player overall?
marta [7]
Fru, thats the only guy I watch, so ya.
7 0
2 years ago
Read 2 more answers
Look at the following function prototype. double mynewFunction(int); What is the data type of the function’s return variable?
nadezda [96]
The answer is A) Double.

The return type is specified before the method's signature, and the signature is composed of the the method's name and parameters.

In this case, the method is named mynewFunction, takes in an integer as a parameter, and returns a double.

Also, fun fact which is kind of unrelated: if two or more methods have the same name, they can have different functionality as long as their signature is different (different parameter types).
3 0
3 years ago
52.
OLEGan [10]
For the first one its NOW, I'm not sure about the 2nd, the 3rd I think is penal code cases but i could be wrong, and the 4th one sounds like voting is the most logical answer. 
7 0
3 years ago
Tinh T = a1*a2*a3*...an<br><br> Giúp em với
Studentka2010 [4]

Answer:

??????

Explanation:

??????? okay okay

3 0
3 years ago
Other questions:
  • A ____ appears at the bottom of your e-mail messages and contains standard information about yourself that the recipient can use
    5·1 answer
  • On a Windows network share, if the user can add, edit, and delete files and folders within the LabFiles folder, what type of acc
    14·1 answer
  • How many bits would be needed to count all of the students in class today there is 20 students
    6·1 answer
  • In one to two sentences, explain why citizens pay taxes
    8·1 answer
  • Your it department enforces the use of 128-bit encryption on all company transmissions. your department also protects the compan
    13·1 answer
  • Why 3 phase motors so effective?
    5·1 answer
  • The force required to slide an object is equal to _____.
    13·1 answer
  • What is the right age to start coding in high school?
    11·1 answer
  • LaShawn would like to post photos in a social media app, but the program needs to be modified in order to display a greater vari
    12·2 answers
  • Classroom content transaction <br> examples use of IT
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!