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
never [62]
3 years ago
15

#include using namespace std; void outputminutesashours(double origminutes) { double origminutes; outputminutesashours=origminut

es/60; } int main() { double minutes; cin >> minutes; outputminutesashours(minutes); // will be run with 210.0, 3600.0, and 0.0. cout << endl; return 0; }
Computers and Technology
1 answer:
vladimir2022 [97]3 years ago
4 0

Complete Question:

Using C++

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

3.5

Given Code

#include <iostream>

using namespace std;

void OutputMinutesAsHours(double origMinutes) {

/* Your solution goes here */

}

int main() {

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

cout << endl;

return 0;

}

Answer:

#include <iostream>

using namespace std;

void outputminutesashours(double origminutes) {

      double outputminutesashours=origminutes/60;

    cout<<"The converted to hours is "<<outputminutesashours<<" hours"<<endl;

    }

int main() {

   double minutes;

   cout<<"Enter The Minutes"<<endl;

   cin >> minutes;

   outputminutesashours(minutes); // will be run with 210.0, 3600.0, and 0.0.

   cout << endl;

   return 0;

}

Explanation:

The addiditional line of code to make this program work is written in bold

Sample run with 210 gives 3.5 hours

Sample run with 3600 gives 60 hours, and 0.0 gives  0

You might be interested in
What is the operation of mouse in which it is moved while holding left button.​
Hoochie [10]

Answer: Drag – Also called click-and-drag. Holding in the mouse button and then moving the mouse. Dragging is often done so that an object will move along with the mouse.

3 0
4 years ago
Read 2 more answers
What is one expectation of open-source software?
Mars2501 [29]

Answer:

my Answer is: free license

Explanation:

5 0
3 years ago
How does a pond form?
ehidna [41]

Answer:

B

Explanation:

because the other answers dont make sense

6 0
3 years ago
Twitter, Foursquare, and other real-time media add to or leverage capabilities of smartphones--improving your ability to be well
Sati [7]

Answer: True

Explanation: Twitter is the application that functions online for providing news and communication for connecting people on social network.Foursquare is also an online app that works on the social platform in the smartphones and provide the knowledge about activity of people moving through the real-time world.

Other real world apps that operate in the real time helps in providing information about the activities and incidents happening through the smartphones.This also increases the knowledge of the individual by discovering, reading,sharing of the information.Thus the statement given is true.

7 0
4 years ago
A relative path name defines a path from_________________________ Select one: a. from the UFD (user file directory) b. the curre
lorasvet [3.4K]

Answer:

(b)  the current directory

Explanation:

A path is the location or route to a particular file or folder in an operating system. This path is always unique and can either be relative or absolute.

A relative path name of a file defines the path to the file from the current or present working directory.

An absolute path name of a file defines the path to the file from the root directory. This path gives a complete descriptive path to a file from the start of the actual file system of the operating system.

4 0
3 years ago
Other questions:
  • Why is the show "Insatiable so awesome?
    12·2 answers
  • There is no need to schedule video calls ahead of time; they can be used the same way as
    6·1 answer
  • Fundamental types of data, such as strings, integers, and real numbers, are known as
    5·1 answer
  • what is the goal of technology A. to understand how the natural world functions B. to study the natural world C. to improve the
    9·1 answer
  • When at the rightmost cell in a row, press the ENTER key to move to the first cell in the next row; do not press the TAB key
    6·1 answer
  • Which kind of file would be hurt most by lossy compression algorithm
    8·2 answers
  • When an attacker presents a program or himself as someone else to obtain private information and pretends to be a legitimate web
    11·1 answer
  • Name the factors which of the following resources relate to :
    7·1 answer
  • Lab: even/odd values in an array
    5·1 answer
  • See attached. I have code typed out but still having problems.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!