Answer:
2
Explanation:
if-else is the statement that is used for checking the condition and if the condition is True, then execute the statement otherwise not executed.
initially, the value of n1 = 3, n2 = 6, n3 = 2, sumtotal = 4.
after that, if statement checks for the condition.
3 != 4
condition is TRUE, then the statement sumtotal -= n3; will be executed.
write the statement in simple form:
sumtotal = sumtotal - n3;
so, sumtotal = 4-2 = 2.
after that, the program does not check the further and exit the if-else statement.
Therefore, the answer is 2.
Answer: Environment sensing Collector
Explanation:
An environmental monitoring system or collectors is the process which a device uses in monitoring the quality of the environment. These devices or software allows for a realtime monitoring and checking of any parameter required. They are used to monitor and collect data on environmental conditions such as relative humidity, temperature, dew and frost point, differential pressure, pressure, flow, and many more.
Answer:
see explaination
Explanation:
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double temp1,temp2,inc,cel;
int i=1;
while(i==1)
{
i=0;
cin>>temp1>>temp2>>inc;
if(temp2<temp1||inc<=0)
{
i=1;
cout<<"Starting temperature must be <= ending temperature and increment must be >0.0\n";
}
}
cout<<endl;
cout<<setw(15)<<"Fahrenheit"<<setw(15)<<"Celsius";
while(temp1<=temp2)
{
cel=(temp1-32)/1.8;
cout<<endl;
cout<<fixed<<setprecision(3)<<setw(15)<<temp1<<setw(15)<<cel;
temp1+=inc;
}
}
Please kindly check attachment for output.