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
The term ____ means that a public information network such as an Internet service provider (ISP) should treat all users, all pla
Softa [21]

Answer:

Domain Name System

Explanation:

The Domain Name System is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities

5 0
4 years ago
You told your sister about creating bullet points with Word 2013. She calls you and says that she created a list of six bullet p
lapo4ka [179]

Answer:

Tell her to hold the Shift key as she hits Enter.

8 0
4 years ago
Need help with java project please!!
Irina18 [472]
 can do c++ and javascript but I might be able to help
send me a message
7 0
4 years ago
Read 2 more answers
Which form of media allows the audience to share in and comment on the content immediatly
Luba_88 [7]

twitter

they will allow you to share comments about any topic you want

4 0
3 years ago
Open and close ____ immediately following the name of a procedure identify a Visual Basic statement as a procedure call statemen
Bezzdna [24]

Answer:  Parentheses

Explanation:

 The open and close parentheses basically identify the visual basic statement   in the procedure call statement.

The close procedure basically in the visual basic statement basically terminate the call of a program that performed the real processing. Open and close is also known as right and left parentheses.

The close statement is basically control the pre-defined programming statement in the particular close procedure.

 

4 0
4 years ago
Other questions:
  • In mathematics, the factorial of a positive integer n, denoted as n! , is the product of all positive integers less than or equa
    10·2 answers
  • Which type of network cover a large geographical area and usually consists of several smaller networks, which might use differen
    5·1 answer
  • Why is a DNS cache poisoning attack dangerous? Check all that apply. A. Errrr...it's not actually dangerous. B. It allows an att
    12·1 answer
  • Matching: match each step with its correct sequence number. This question tests whether you know the order in which a CPU perfor
    14·1 answer
  • Exploring Arraylists. Remember that arraylists are good for adding and removing things, and that they are clock-cycle friendlier
    13·1 answer
  • Which type of computing device is best suited to having a digital pen as an input device?
    9·1 answer
  • Assume you have an Access database with five different tables, including various pieces of information about your client base. Y
    9·1 answer
  • True or false when a host gets an IP address from a DHCP server it is said to be configured manually
    15·1 answer
  • How is the architecture converted into software code? Elaborate the steps its passes through with help of examples / Diagram.
    15·1 answer
  • HELPPPPP 20 POINTS CORRECT ANSWER GETS BRAINLIEST<br>sorry wrong amount of points ;-;
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!