//Question One. //Q1.

Farenheight to Temperatures (Degree) conversion program #include <iostream> using namespace std; void main() { //variable declaration double degree, faren; //printing the heading on screen cout<<"Farenheit To Degree Conversion"<<endl<<endl; //a prompt for a user to enter a farenheight value cout<<"Enter A Farenheight to convert: "; //value entered is stored in the variable faren cin>>faren; //a formula to change farenheight to degree value degree = (5.0/9.0)*(faren-32.0); //the result of convertion is displayed on the screen cout<<"In Degrees is: "<<degree<<endl;

}

//Question two. //Q2. Pounds to Kilograms (lb to kg) conversion program #include <iostream> using namespace std; void main() { //variable declaration double pound, kg; //printing the heading on screen cout<<"Pounds to Kilograms (lb to kg) conversion"<<endl<<endl; //a prompt for a user to enter a pound value cout<<"Enter A Pound value to convert: ";

//value entered is stored in the variable pound cin>>pound.204625. //the result of convertion is displayed on the screen cout<<"In Kilograms is: "<<kg<<endl. //a formula to convert to Kilogram (1kg = 2. } .204625pounds) kg=pound/2.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.