Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Hello Guys! this is complete and tested solution....but u must change variables names and as per assignment requirement it should be well commented here is ur job to do comment where u think it is necessary


if u need assistance u can contact me:

Contact me here :P







#include <cstdlib>

using namespace std;


int main()




double far_temp, kel_temp, cal_temp;


char opt, select;




     cout " ************* Temprature Conversion Calculator *************";


     cout "\n\n Please enter the temprature unit for which you want the conversion ";


     cout "\n 1. F for Fahrenheit to Celsius and Kelvin";


     cout "\n 2. C for Celsius to Fahrenheit and Kelvin";


     cout "\n 3. K for Kelvin to Fahrenheit and Celsius";


do // for do, while loop



     cout "\n\n Please enter you Option: ";


     cin >> opt;




     switch(opt) // switch statements




     case 'f':


     case 'F': 



            cout " Enter temprature in Farhenheit: ";


            cin >> far_temp;


            cal_temp = (far_temp  -  32)  *  5/9;  


            kel_temp = (far_temp + 459.67) * 5/9; 


            cout " Celcius =" cal_temp;


            cout "\n Kelvin =" kel_temp;







     case 'c':


     case 'C':            


            cout " Please enter temprature in Celcius: ";


            cin >> cal_temp;


            kel_temp = cal_temp + 273.15 ;


            far_temp = cal_temp  *  9/5 + 32; 


            cout " Farhenheit =" far_temp;


            cout "\n Kelvin =" kel_temp;








     case 'k':


     case 'K':



            cout " Please enter temprature in Kelvin: ";


            cin >> kel_temp;


            cal_temp = kel_temp - 273.15 ;


            far_temp = (kel_temp - 273.14)  * 9/5 + 32;


            cout " Celcius =" cal_temp;


            cout "\n Farhenheit =" far_temp;







            cout "\n Please enter valid option (C, F, K)";




            cout"\n Do you want to continue (y/n):";



if(select=='n') //for exit







while(select=='y'); //for loop



Views: 1134


Replies to This Discussion

dears all

         Any body have solution.

kisi k pas asal & darust solution ha to bata do yaar.    ye sab to wrong hai.

plzzzzzzzzzzzzzz send me c++ soft ware i have to submit my asignment bt i have not the software. plzzzzzzzzzzzzzzzzz any body send it now

Download it from ur lms.. download section under course website in cs 201...

Or download it from here...

Dev C++

plzz koi cs201 k instructor ka e mail day sakta hai

asif sahib ap k pas cs201 instructor ka e mail address ho ga


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service