Answer:
#include<iostream>
using namespace std;
void OutputMinutesAsHours(double origMinutes) { //Same as question
double hours=origMinutes/60; //solution is here
cout<<hours;
}
//Below is same as mentioned in question
int main() {
OutputMinutesAsHours(210.0);
cout << endl;
return 0;
}
OUTPUT :
3.5
Explanation:
In the above code, only two lines are added. To convert minutes into hours we have to divide them 60, so we take minutes as input and define a new variable of double type which stores minutes converted to hours and then that variable is printed to console. For 210, it gives 3.5, similarly for 3600 it gives 60 and so on.
Answer:
This is an infinite loop.
Explanation:
The while loop while never end since the last statement inside the while loop will continue to decrement the value of num by 1 and the condition num < 9 will always be true.
So either change the condition of the while loop like: num > -9
or start incrementing the variable num in the last statement of the while loop like:
num = num + 1
Note: Don't make both changes at the same time.
Visit: gotit-pro.com for fastest, top-notch and impeccable homework and exams help in a range of subjects and ace your academics.
Thanks and Best Regards: Your Friendly Study Co-Pilot
Answer:
Yes it has brought change in every field
Explanation:
Explanation:
Formal; A formal information system is based on
the organization represented by the organization chart.
Informal; The informal information system is
employee based system designed
to meet personal and vocational needs
and to help in solution of work-related problems.