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
Mekhanik [1.2K]
3 years ago
13

Write an application that reads values representing a time duration in hours, minutes, and seconds and then prints the equivalen

t total number of seconds. (For example, 1 hour, 28 minutes, and 42 seconds is equivalent to 5322 seconds.)

Computers and Technology
1 answer:
aniked [119]3 years ago
8 0

Answer:

Explanation:

def cvtToSeconds(hours,minutes,seconds):

   total_seconds=3600*hours+60*minutes+seconds;

   return total_seconds

def readData():

   hours = eval(input("Enter Hours: "))

   minutes = eval(input("Enter Minutes: "))

   seconds = eval(input("Enter Seconds: "))

   total_seconds=cvtToSeconds(hours,minutes,seconds)

   print("Total Seconds: "+str(total_seconds))

readData()

You might be interested in
Explain what LIFO and FIFO mean, and how they are used in Abstract data types?
Dimas [21]

Answer:

LIFO stands for Last In First Out. This procedure is used in the Stacks in data structures.Stacks are the data types in which the data is stored called Stack.

Explanation:

8 0
3 years ago
&gt;&gt;&gt; phrase = "abcdefgh" <br><br> &gt;&gt;&gt; phrase[3:6]
Scrat [10]

Answer:

Following are the correct code to this question:

phrase = "abcdefgh"#defining a variable phrase that holds a string value

print(phrase[3:6])#use print method for slicing and print its value

Output:

def

Explanation:

In the above code, a variable "phrase" is defined that holds a string value, and use a print method, inside the method, the variable is used as a list and use slicing.

It is a characteristic that enables you to access the series parts like strings, tuples, and lists. It also uses for modifying or removing objects in series, in the above slicing it starts from 3 and ends when it equal to the 6th letter, that's why it will print "def".

6 0
3 years ago
Editing data is making changes to the spreadsheet. true or false
baherus [9]
True because you are editing which in this situation means making changes to something. hope I helped.
6 0
4 years ago
Read 2 more answers
4. Which event is used to move from one textbox to another through enter
Sav [38]

Answer:

key enter

Explanation:

May this help you l think

3 0
3 years ago
Using the intermediate COCOMO technique effort iscalculated in___________
Mashcka [7]

Answer: Four step process

Explanation:  COCOMO is a model for the estimation of the procedural software introduced by Barry Boehm. It is named as Constructive Cost Model and is referred as the process for prediction of the size,cost, quality and other such parameters. These parameters helps in making of the software more accurate and reliable. There are total of four step process for the calculation of intermediate COCOMO.

7 0
3 years ago
Other questions:
  • A data structure used to bind an authenticated individual to a public key is the definition of ________.
    14·1 answer
  • Ingrid started speaking about her slide presentation. When she clicked to th
    11·2 answers
  • Explain why the control bus is not a bus.
    7·1 answer
  • Pinterest, a visual bookmarking Website, logs more than 14 terabytes of new data each day, which means its storage needs are con
    10·1 answer
  • Which of the following is an open-source web browser?
    8·2 answers
  • Compressing a file is also called
    9·2 answers
  • cellPhoneBill(m,tx)Write the function cellPhoneBill()that takes two int m and txas input and returns a float.The function takes
    11·1 answer
  • What does the Attack Time slider let you set?
    12·1 answer
  • In many cases, a ribbon organizes buttons and options in Select one: a. menus. b. sections. c. toolbars. d. groups.
    9·2 answers
  • Which IP QoS mechanism involves prioritizing traffic? Group of answer choices IntServ RSVP COPS DiffServ None of the above
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!