A technician's first step with an A/C system is to perform visual inspection
Answer:
How to convert the hours into minutes and seconds?
We know that there are 60 minutes in an hour, and there are 60 seconds in a minute. But here, we only have the value of hours as an input. We have to convert that input into minutes and seconds. So, the formula to convert the hours into minutes and seconds is -
Now, let's see the programs to convert the hours into minutes and seconds.
<em>a program to convert the hours into minutes and seconds in C language :</em>
#include <stdio.h> void conversion(float hours) { double minutes, seconds; minutes = hours * 60; seconds = hours * 3600; printf("There are %lf minutes in %f hours", minutes, hours); printf("\nThere are %lf seconds in %f hours", seconds, hours); } int main() { float hours; printf("Enter the value of hours: "); scanf("%f", &hours); conversion(hours); return 0; }
Answer:
18
Explanation:
In First iteration y = 3 and condition is y<=14 i.e. 3<=14 means true and continue the loop and increment the value of y by 5, means y will become 8
In Second iteration y = 8 and condition is y<=14 i.e. 8<=14 means true and continue the loop and increment the value of y by 5, means y will become 13
In Third iteration y = 13 and condition is y<=14 i.e. 13<=14 means true and continue the loop and increment the value of y by 5, means y will become 18
In Fourth iteration y = 18 and condition is y<=14 i.e. 18<=14 means false and exit from the loop
So the value of y will be 18 after the loop
Explanation:
The difference between a class and an object is very simple a class is a template for objects.A class contains objects,methods,constructors,destructors. While an object is a member of the class or an instance of the class. for ex:-
#include<iostream>
using namespace std;
class car
{
public:
string color;
int numgears;
int engine capacity_cc;
bool ispetrol;
car(string color,int numgears,int engine capacity_cc,bool ispetrol)
{
this->color=color;
this->numgears=numgears;
this->capacity_cc=capacity_cc;
this->ispetrol=ispetrol;
}
};
int main()
{
car volvo = new car("red",6,2500,false);
return 0;
}
In the example we have class car and it's object is volvo.