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
Answer:
D. The oldest and perhaps best-known system building tool is "Ant", which was originally developed in the 1970s for Unix.
Explanation:
Ant often referred to Apache Ant is a computer software tool, though popularly considered oldest, was originally first built in the year 2000 by Unix, on Java platform, which is utilized as a component of plug-in development.
Hence, given the available options, the correct answer is Option D, because, Ant originally built in the year 2000 and not the year 1970, while the other statements are definitely correct.
Answer:
See explaination
Explanation:
An algorithm can be looked as a procedure or formula for solving a problem, based on conducting a sequence of specified actions.
In most cases we can say a computer program is an elaborate algorithm.
Please kindly check attachment for the step by step solution of the given problem.
Answer:
d. All of the above
Explanation:
ICMP which is fully known as INTERNET CONTROL MESSAGE PROTOCOL can be defined as a protocol which enables the internet to work smoothly and perfectly reason been that they help to create error messages in a situation where internet network problems does not allow Internet protocol packets to get through which is why INTERNET CONTROL MESSAGE PROTOCOL are often use to help solve a problem or to help determine a problem to an issue because they do gives a feedback in a situation where things go wrong on the Internet.