Yes, and no, social network can distract a student like YouTube or face book, while it can be used as a tool for studying and to put your google documents in the cloud. plus if a teacher posts homework on his/her website, and you happen to forget the paper bringing it home, you can just simply print it instead of having to explain to the teacher
No it can not .............
Increase the font size and make the headline bold
Answer:
- def c_to_f(celsius):
- return celsius * 9/5 + 32
-
- temp_c = float(input('Enter temperature in Celsius: '))
- temp_f = None
-
- temp_f = c_to_f(temp_c)
- print('Fahrenheit:' , temp_f)
Explanation:
The first piece of code we can fill in is the formula to convert Celsius to Fahrenheit and return it as function output (Line 2).
The second fill-up code is to call the function c_to_f and pass temp_c as argument (Line 7). The temp_c will be processed in the function and an equivalent Fahrenheit value will be returned from the function and assigned it to temp_f.
Answer:
This code is written using C++
Comments are used for explanatory purpose
Program starts here
#include<iostream>
using namespace std;
int main()
{
int temp;
//Prompt user for input
cout<<"Enter temperature (in Celcius): ";
//Check if input is acceptable
while(!(cin>>temp))
{
cout << "That was invalid. Enter a valid digit: "<<endl;
cin.clear(); // reset the failed input
cin.ignore(123,'\n');//Discard previous input
}
//Check if temp is greater than 40
if(temp>40)
{
cout<<"It's extremely hot day today!";
}
else{//If otherwise
cout<<"It's not too hot!";
}
return 0;
}
//End of Program