Answer:
All of the files are stored on a hard-drive. Except for the files you just viewed before turning off the computer, which is stored in the RAM (Random Access Memory). If your computer is a desktop, and the power goes out while looking at a photo/pdf, you may corrupt/lose the image if the computer didn't have enough time to store it in the hard drive. Everything in the hard drive is 'scratched' into it like a record. If you delete a file, that part of the disk is 'smoothed' as best as it can. If you upload another file, you might corrupt/ruin the image/pdf. Think of the smoothing like recording a football game over an old VHS of Winne the Pooh. If you have any other questions, please ask by commenting on this answer!
Answer:
float diameter=2*r; //hold the diameter of a circle
float PI; // float variable named PI.
Explanation:
Here we have declared two variable i.e diameter and PI of type float. The variable diameter will hold the diameter of a circle i.e 2*r where r is the radius of a circle.
Following are the program in c++
#include <iostream> // header file
using namespace std; // namespace
int main() // main function
{
float r=9.2; // variable declaration
float diameter=2*r; //hold the diameter of a circle
float PI=3.14; // float variable named PI hold 3.14
cout<<"diameter IS :"<<diameter<<endl<<"PI IS :"<<PI; // display value
return 0;
}
Output:
diameter IS :18.4
PI IS :3.14
La gente de que no me han dicho que me ha dado un teléfono y me han
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