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
Llana [10]
3 years ago
12

Flesh out the body of the print_seconds function so that it prints the total amount of seconds given the hours, minutes, and sec

onds function parameters. Remember that there are 3600 seconds in an hour and 60 seconds in a minute.

Computers and Technology
1 answer:
goblinko [34]3 years ago
7 0

Answer:

Step by step explanation along with code and output is provided below

Explanation:

#include<iostream>

using namespace std;

// print_seconds function that takes three input arguments hours, mints, and seconds. There are 60*60=3600 seconds in one hour and 60 seconds in a minute. Total seconds will be addition of these three  

void print_seconds(int hours, int mints, int seconds)

{

   int total_seconds= hours*3600 + mints*60 + seconds;

   cout<<"Total seconds are: "<<total_seconds<<endl;

}

// test code

// user inputs hours, minutes and seconds and can also leave any of them by  entering 0 that will not effect the program. Then function print_seconds is called to calculate and print the total seconds.

int main()

{

   int h,m,s;

   cout<<"enter hours if any or enter 0"<<endl;

   cin>>h;

   cout<<"enter mints if any or enter 0"<<endl;

   cin>>m;

   cout<<"enter seconds if any or enter 0"<<endl;

   cin>>s;

   print_seconds(h,m,s);

  return 0;

}

Output:

enter hours if any or enter 0

2

enter mints if any or enter 0

25

enter seconds if any or enter 0

10

Total seconds are: 8710

You might be interested in
jeremy wants to buy a horse. he is looking for a brown tennessee walker that is at least five years old and at least 15 hands ta
timurjin [86]

The numbers of records that will be displayed in response to his query is known to be zero (0).

<h3>What is a query?</h3>

A query is known to be a kind of a question or any form of request that is known to be for information that is often expressed in a formal manner.

Note that a database query is one that can be seen as an action query or a a kind of select query.

A select query is one that can help to get back data from a database. based on the question, Jeremy  is looking for a brown Tennessee walker and this is not among the option presented. Therefore the query will come back as zero.

Hence, The numbers of records that will be displayed in response to his query is known to be zero (0).

Learn more about query from

brainly.com/question/25694408

#SPJ1

7 0
1 year ago
Streaming media known as _____ is stored on the provider's server, which allows you to play the media multiple times. Graphics t
Marysya12 [62]

Answer:

On - demand

Transition

Codecs

Media Player

Video compression

Explanation:

The image for the question is attached.

Another name for streaming of media is known as on - demand service. The resources are only available based on request.

Transition tells a viewer when a scene ends and another one begins.

Codecs has a lot of standard and MPEG is one of the popular standard. Some include Dolby Digital (AC3, ATSC A/52, ETSI TS 102 366).

Media Player is the type of software needed to watch a video on a computer.

Video Compression is the technology that is used to compress and depress video files.

7 0
3 years ago
What is the difference between a programming language and natural (every-day) language?
Harlamova29_29 [7]
Natural languages are used for communication between people
6 0
3 years ago
Allows a user to control the<br>volume of the computer​
Vikki [24]

Answer:

Volume Mixer window

allows a user to control the

volume of the computer.

5 0
3 years ago
If you do a Find and Replace for a term, where will Word begin looking for the term?
Norma-Jean [14]

Answer:

It automatically begins at the start of the document.

If you're using a search box, It will begin at the insertion point.

Explanation:

{}

6 0
3 years ago
Other questions:
  • ( answer goes here) are pictures that you can click on to tell your computer what to do.
    10·2 answers
  • Which of the following refers to rules written by an organization or entity to guide behavior in a particular setting or situati
    7·2 answers
  • How do productivity programs most benefit the way we work and live?
    15·1 answer
  • What does it mean for a school to be “accredited”?
    5·1 answer
  • Why does a HTML seen to work even when its broken? why does the code sometimes turn pink?
    9·1 answer
  • A troubleshooting strategy that removes components from a system in order to get back to a basic configuration is called module
    6·1 answer
  • How to connect xbox one controller
    5·1 answer
  • Which PlayStation was the first to allow connection between it and computer network
    12·1 answer
  • A computer network is best described as two or more computers that are
    7·1 answer
  • When you build a computer from parts, you usually start by deciding on which processor and motherboard you will use?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!