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.

Do not copy this, try yourself. this is only for idea purpose. i added this in pdf and word format both.

Views: 3407


Replies to This Discussion

salam bro 

main ne uper wali assignment chek ki hy mujhy 13 errors show ho rahy hain unko dur krny main meri rahnumai kren plz

thanxzzzz M.TARIQ MALIK share urz ideaz. very hipful

AP ka milaya howa number is waqt band ha ap se darkhwast ha k thori dair bad koshish kare shukriya..

shakeel me .cpp file upload kerta hun us me error ni hun ge, lekin us se idea le k apni banane ki koshish kerna

word ya pdf k file me error ho skta he, usne fonts ki wja se, try .cpp file. uper discussion me add kerdi he mene wo b.

hi every one. koi combine study krna chaye cs201 ki to plz tell me 

ap kahan rhti ha i want to study plz 


yes, due to missing less than signs shows error.

Coz, here do not show less than signs which have after cout.

bhai mane is ma se 7 mistake thk kar li ha baki mje samjh nae a rae

waqas asghar .cpp ki file use karo us me error ni hen, es meri post me rakhi he mene  wo file

Lets Try this one

using namespace std;
cout"**************Temperature Conversion Calculator*****************";
cout"\nby Sohail SNS ";
cout"\nPlease enter the tempearature unit which you want the conversion\n";
cout"1. F for fahrnheit to celsius and Kelvin\n";
cout"2. C for celsius to fahrenheit and kelvin\n";
cout"3. K for kelvin to celsius and kelvin\n";
char type,rp;
do //for loop we use do while
cout" please enter the option:";
cin>>type; //input the temp scale
switch(type) //for different selectionn
{ case'f': //for fahrenheit
cout" Enter the temperature in Fahreheit:";
float a1,c1,b1;
cin>>a1; //input the temp in f
c1=(a1-32)*0.55;//formula f to c
cout"\n The temperature in celsius is="c1; //temp conversion to c
b1=(a1+459.67)*0.55;//formula f to k
cout"\nThe temperature in kelvin is="b1; // temp conversion to k
case'C': //for centigrade
cout" Enter the temperature in celsius:";
float c2,a2,b2;
cin>>c2; //input the temp in c
a2=c2*1.8+32;// formula c to f
cout"\n The temperature in fahreheit is="a2; //temp conversion to f
b2=c2+273.15;//formula c to k
cout"\n The temperature in kelvin is="b2; //temp conversion to k
case'K': //for kelvin
float b3,c3,a3;
cout" Enter the temperature in kelvin:";
cin>>b3; //input the temp in k
c3=b3-273.15;//formula k to c
cout"\n The temperature in celsius is="c3; //temp conversion to c
a3=(1.8*b3)-459.67;//formula k to f
cout"\n The temperature in fahrenheit is ="a3; //temp conversion to f
cout" please enter the right option:"; //for wrong output

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

cin>>rp; //for continue
if(rp=='n') //for exit

{ return 0;
while(rp=='y'); //for loop
system ("pause");


Looking For Something? Search Below

Latest Activity

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

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