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
antoniya [11.8K]
3 years ago
9

Complete the function definition to output the hours given minutes. Output for sample program: 3.5

Computers and Technology
1 answer:
AlexFokin [52]3 years ago
4 0

#include <iostream>

using namespace std;


void OutputMinutesAsHours(double origMinutes) {

double hours = origMinutes / 60.0;

cout << hours;

}


int main() {

OutputMinutesAsHours(210.0); // Will be run with 210.0, 3600.0, and 0.0.

cout << endl;

return 0;

}


In bold style, you can see the lines of code added to get the hours given in minutes. As there are 60 minutes in an hour; therefore, to convert minutes to hours, you have to divide the given minutes to 60.0. I have used the datatype "double", as the parameter <em>origMinutes</em> of the given function <em>OutputMinutesAsHours</em> is in double. Just run the above code in any of the C++ Compiler, you have get the answer 3.5.

You might be interested in
On the pie chart below, which “slice” represents 30% of the budget?
yan [13]

A is the final answer! :)

4 0
3 years ago
Write a Racket two-way selection structure that will produce a list '(1 2 3) when the first element of a list named a_lst is ide
ANEK [815]

Answer:

A

Explanation:

3 0
3 years ago
What is the difference between amplifier and the repeater?
mixas84 [53]

Explanation:

Repeater:

  • It is used for the regeneration and transmission in case the previously transmitted signal is weak .
  • It takes higher input power , to provide lower output power .
  • It uses a static environment .
  • It is used for the reduction or elimination of noise .
  • It works on the the physical layer of OSI model.

Amplifier:

  • It is basically used to increase the amplitude or the strength of the signal .
  • It takes lower input power , to provide higher output power .
  • It uses in a mobile and remote network .
  • It  increases the amplitude of the signal of noise .
  • It works in wireless communication .

8 0
3 years ago
Every character, number, or symbol on the keyboard is represented as a _____ in computer memory.
Lorico [155]
Every character, number, or symbol on the keyboard is represented as a binary number in computer memory.
3 0
3 years ago
Read 2 more answers
A multi-national retail company has multiple business divisions with each division having its own AWS account. The engineering t
velikii [3]

Answer:

C. X-ray

Explanation:

AWS X-ray is a form of service that assists developers in carrying out analysis and debugging functions, and at the same time helps in the allotted applications, including those built using a microservices architecture.

In other words, an X-ray, in this case, will assist the developers in carrying out the following:

1. Establish a service map

2. Single out errors and bugs

3. Construct analysis and visualization apps

4. Enhancing the experience for end-users of the application under x-ray.

4 0
3 years ago
Other questions:
  • The rules that establish an orderly transfer of data between sender and receiver are called ____.
    5·2 answers
  • Attempts Remaining
    7·2 answers
  • Using C++, Write a full class definition for a class named Acc1, containing no constructors, functions, or data members (i.e., a
    12·2 answers
  • 1. Bones do not change position when the muscles contract and release.
    7·1 answer
  • Which of the following in not part of the CIA triad that is one of the cornerstones of information security? a. Confidentiality
    14·1 answer
  • The software maintains and manages information related to employees, rooms, committees, and committee meetings of a company. The
    9·1 answer
  • A video streaming website uses 32-bit integers to count the number of times each video is played. in anticipation of some videos
    14·1 answer
  • Just took a test and I got 5 wrong and I wanted to know the correct answers
    10·1 answer
  • Why is brainly so addictinggggggggg!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    14·1 answer
  • You have created a slide that is functional, but a bit on the boring side. In five to ten sentences, describe changes you would
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!