SlideShare a Scribd company logo
1 of 3
Download to read offline
#include<iostream>

using namespace std;

int main()
{
int suhu;
float C,R,F,K;
char ulang;
do
{

cout<<"==============================n";
cout<<"

KONVERSI SUHUn";

cout<<"==============================n";
cout<<"1. C-Celciusn";
cout<<"2. R-Reamurn";
cout<<"3. F-Fahrenheitn";
cout<<"4. K-Kelvinn";
cout<<"Silakan Pilih Suhu: ";cin>>suhu;
switch(suhu)
{
case 1:
cout<<"==============================n";
cout<<"

Celciusn";
cout<<"==============================n";
cout<<"Masukkan derajat suhu= ";cin>>C;
R=C*0.8;
cout<<"Besar suhu Celcius ke Reamur adalah= "<<R<<endl;
F=(C*1.8)+32;
cout<<"Besar suhu Celcius ke Fahrenheit adalah= "<<F<<endl;
K=C+273.15;
cout<<"Besar suhu Celcius ke Kelvin adalah= "<<K<<endl;
break;
case 2:
cout<<"==============================n";
cout<<"

Reamurn";

cout<<"==============================n";
cout<<"Masukkan derajat suhu= ";cin>>R;
C=R/0.8;
cout<<"Besar suhu Reamur ke Celcius adalah= "<<C<<endl;
F=R*2.25+32;
cout<<"Besar suhu Reamur ke Fahrenheit adalah= "<<F<<endl;
K=R/0.8+273.15;
cout<<"Besar suhu Reamur ke Kelvin adalah= "<<K<<endl;
break;
case 3:
cout<<"==============================n";
cout<<"

Fahrenheitn";

cout<<"==============================n";
cout<<"Masukkan derajat suhu= ";cin>>F;
C=(F-32)/1.8;
cout<<"Besar suhu Fahrenheit ke Celcius adalah= "<<C<<endl;
R=(F-32)/2.25;
cout<<"Besar suhu Fahrenheit ke Reamur adalah= "<<R<<endl;
K=(F-32)/1.8+273.15;
cout<<"Besar suhu Reamur ke Kelvin adalah= "<<K<<endl;
break;
case 4:
cout<<"==============================n";
cout<<"

Kelvinn";

cout<<"==============================n";
cout<<"Masukkan derajat suhu= ";cin>>K;
C=K-273.15;
cout<<"Besar suhu Kelvin ke Celcius adalah= "<<C<<endl;
R=(K-273.15)*0.8;
cout<<"Besar suhu Kelvin ke Reamur adalah= "<<R<<endl;
F=K*1.8-459.67;
cout<<"Besar suhu Kelvin ke Fahrenheit adalah= "<<F<<endl;
}
cout<<"==============================n";
cout<<"==============================n";
cout<<"Apakah anda ingin mengulang y/n?: ";cin>>ulang;
}while(ulang=='y');
}

More Related Content

What's hot

Me1201 engineering thermodynamics uq - nov dec 2007
Me1201 engineering thermodynamics   uq - nov dec 2007Me1201 engineering thermodynamics   uq - nov dec 2007
Me1201 engineering thermodynamics uq - nov dec 2007BIBIN CHIDAMBARANATHAN
 
Lecture 15a - Gas Vapor Mixtures
Lecture 15a - Gas Vapor MixturesLecture 15a - Gas Vapor Mixtures
Lecture 15a - Gas Vapor MixturesSijal Ahmed
 
Chapter 4 (propertiesof pure substance)
Chapter 4 (propertiesof pure substance)Chapter 4 (propertiesof pure substance)
Chapter 4 (propertiesof pure substance)Yuri Melliza
 
Thermo problem set no. 1
Thermo problem set no. 1Thermo problem set no. 1
Thermo problem set no. 1Yuri Melliza
 
Psychrometry (air conditioning processes)
Psychrometry (air conditioning processes)Psychrometry (air conditioning processes)
Psychrometry (air conditioning processes)Yuri Melliza
 
ME 12 Assignment No. 1
ME 12 Assignment No. 1ME 12 Assignment No. 1
ME 12 Assignment No. 1Yuri Melliza
 
Hukum hukum tentang gas
Hukum hukum tentang gas Hukum hukum tentang gas
Hukum hukum tentang gas Rfebiola
 
ME 12 F1 Assignment 2 & 3
ME 12 F1 Assignment 2 & 3ME 12 F1 Assignment 2 & 3
ME 12 F1 Assignment 2 & 3Yuri Melliza
 
Module 7 (processes of fluids)
Module 7 (processes of fluids)Module 7 (processes of fluids)
Module 7 (processes of fluids)Yuri Melliza
 
ME 12 F1 MODULE (Thermodynamics 1)
ME 12 F1 MODULE (Thermodynamics 1)ME 12 F1 MODULE (Thermodynamics 1)
ME 12 F1 MODULE (Thermodynamics 1)Yuri Melliza
 
Procedures for Modeling Turbofan
Procedures for Modeling TurbofanProcedures for Modeling Turbofan
Procedures for Modeling TurbofanTanner Hilton
 
ME 12 F1 QUIZ NO. 1
ME 12 F1 QUIZ NO. 1ME 12 F1 QUIZ NO. 1
ME 12 F1 QUIZ NO. 1Yuri Melliza
 
Refrigeration system 2
Refrigeration system 2Refrigeration system 2
Refrigeration system 2Yuri Melliza
 

What's hot (20)

Me1201 engineering thermodynamics uq - nov dec 2007
Me1201 engineering thermodynamics   uq - nov dec 2007Me1201 engineering thermodynamics   uq - nov dec 2007
Me1201 engineering thermodynamics uq - nov dec 2007
 
Lecture 15a - Gas Vapor Mixtures
Lecture 15a - Gas Vapor MixturesLecture 15a - Gas Vapor Mixtures
Lecture 15a - Gas Vapor Mixtures
 
Chapter 4 (propertiesof pure substance)
Chapter 4 (propertiesof pure substance)Chapter 4 (propertiesof pure substance)
Chapter 4 (propertiesof pure substance)
 
Thermo problem set no. 1
Thermo problem set no. 1Thermo problem set no. 1
Thermo problem set no. 1
 
Psychrometry (air conditioning processes)
Psychrometry (air conditioning processes)Psychrometry (air conditioning processes)
Psychrometry (air conditioning processes)
 
ME 12 Assignment No. 1
ME 12 Assignment No. 1ME 12 Assignment No. 1
ME 12 Assignment No. 1
 
Hukum hukum tentang gas
Hukum hukum tentang gas Hukum hukum tentang gas
Hukum hukum tentang gas
 
ME 12 F1 Assignment 2 & 3
ME 12 F1 Assignment 2 & 3ME 12 F1 Assignment 2 & 3
ME 12 F1 Assignment 2 & 3
 
Steam Formation
Steam FormationSteam Formation
Steam Formation
 
properties of steam
properties of steam properties of steam
properties of steam
 
Module 7 (processes of fluids)
Module 7 (processes of fluids)Module 7 (processes of fluids)
Module 7 (processes of fluids)
 
ME 12 F1 MODULE (Thermodynamics 1)
ME 12 F1 MODULE (Thermodynamics 1)ME 12 F1 MODULE (Thermodynamics 1)
ME 12 F1 MODULE (Thermodynamics 1)
 
Procedures for Modeling Turbofan
Procedures for Modeling TurbofanProcedures for Modeling Turbofan
Procedures for Modeling Turbofan
 
ME 12 F1 QUIZ NO. 1
ME 12 F1 QUIZ NO. 1ME 12 F1 QUIZ NO. 1
ME 12 F1 QUIZ NO. 1
 
Specific volume of steam
Specific volume of steamSpecific volume of steam
Specific volume of steam
 
hvac
hvachvac
hvac
 
Chapter 14
Chapter 14Chapter 14
Chapter 14
 
Refrigeration system 2
Refrigeration system 2Refrigeration system 2
Refrigeration system 2
 
Me 12 quiz no. 3
Me 12 quiz no. 3Me 12 quiz no. 3
Me 12 quiz no. 3
 
Gas law
Gas law Gas law
Gas law
 

Viewers also liked

GEMs - Insights from Emerging Markets - Issue 3
GEMs - Insights from Emerging Markets - Issue 3GEMs - Insights from Emerging Markets - Issue 3
GEMs - Insights from Emerging Markets - Issue 3TNS
 
Collection of Interviews on US Muslims
Collection of Interviews on US MuslimsCollection of Interviews on US Muslims
Collection of Interviews on US MuslimsOnIslam
 
Bangun datar dan bangun ruang
Bangun datar dan bangun ruangBangun datar dan bangun ruang
Bangun datar dan bangun ruangSanSan Yagyoo
 
Professional Competency
Professional CompetencyProfessional Competency
Professional CompetencyRTaughrin
 
A Busca Da Fragilidade Das Redes Sem Fio
A Busca Da Fragilidade Das Redes Sem FioA Busca Da Fragilidade Das Redes Sem Fio
A Busca Da Fragilidade Das Redes Sem FioCelso Corazza
 
Sejarah Perkembangan Komputer
Sejarah Perkembangan KomputerSejarah Perkembangan Komputer
Sejarah Perkembangan KomputerSanSan Yagyoo
 
Publicidad tema 5 posicionamiento
Publicidad tema 5 posicionamientoPublicidad tema 5 posicionamiento
Publicidad tema 5 posicionamientoJerry Arketype
 

Viewers also liked (8)

GEMs - Insights from Emerging Markets - Issue 3
GEMs - Insights from Emerging Markets - Issue 3GEMs - Insights from Emerging Markets - Issue 3
GEMs - Insights from Emerging Markets - Issue 3
 
Collection of Interviews on US Muslims
Collection of Interviews on US MuslimsCollection of Interviews on US Muslims
Collection of Interviews on US Muslims
 
Bangun datar dan bangun ruang
Bangun datar dan bangun ruangBangun datar dan bangun ruang
Bangun datar dan bangun ruang
 
Professional Competency
Professional CompetencyProfessional Competency
Professional Competency
 
Bash Programming
Bash ProgrammingBash Programming
Bash Programming
 
A Busca Da Fragilidade Das Redes Sem Fio
A Busca Da Fragilidade Das Redes Sem FioA Busca Da Fragilidade Das Redes Sem Fio
A Busca Da Fragilidade Das Redes Sem Fio
 
Sejarah Perkembangan Komputer
Sejarah Perkembangan KomputerSejarah Perkembangan Komputer
Sejarah Perkembangan Komputer
 
Publicidad tema 5 posicionamiento
Publicidad tema 5 posicionamientoPublicidad tema 5 posicionamiento
Publicidad tema 5 posicionamiento
 

Recently uploaded

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Konversi suhu

  • 1. #include<iostream> using namespace std; int main() { int suhu; float C,R,F,K; char ulang; do { cout<<"==============================n"; cout<<" KONVERSI SUHUn"; cout<<"==============================n"; cout<<"1. C-Celciusn"; cout<<"2. R-Reamurn"; cout<<"3. F-Fahrenheitn"; cout<<"4. K-Kelvinn"; cout<<"Silakan Pilih Suhu: ";cin>>suhu; switch(suhu) { case 1: cout<<"==============================n"; cout<<" Celciusn";
  • 2. cout<<"==============================n"; cout<<"Masukkan derajat suhu= ";cin>>C; R=C*0.8; cout<<"Besar suhu Celcius ke Reamur adalah= "<<R<<endl; F=(C*1.8)+32; cout<<"Besar suhu Celcius ke Fahrenheit adalah= "<<F<<endl; K=C+273.15; cout<<"Besar suhu Celcius ke Kelvin adalah= "<<K<<endl; break; case 2: cout<<"==============================n"; cout<<" Reamurn"; cout<<"==============================n"; cout<<"Masukkan derajat suhu= ";cin>>R; C=R/0.8; cout<<"Besar suhu Reamur ke Celcius adalah= "<<C<<endl; F=R*2.25+32; cout<<"Besar suhu Reamur ke Fahrenheit adalah= "<<F<<endl; K=R/0.8+273.15; cout<<"Besar suhu Reamur ke Kelvin adalah= "<<K<<endl; break; case 3: cout<<"==============================n"; cout<<" Fahrenheitn"; cout<<"==============================n";
  • 3. cout<<"Masukkan derajat suhu= ";cin>>F; C=(F-32)/1.8; cout<<"Besar suhu Fahrenheit ke Celcius adalah= "<<C<<endl; R=(F-32)/2.25; cout<<"Besar suhu Fahrenheit ke Reamur adalah= "<<R<<endl; K=(F-32)/1.8+273.15; cout<<"Besar suhu Reamur ke Kelvin adalah= "<<K<<endl; break; case 4: cout<<"==============================n"; cout<<" Kelvinn"; cout<<"==============================n"; cout<<"Masukkan derajat suhu= ";cin>>K; C=K-273.15; cout<<"Besar suhu Kelvin ke Celcius adalah= "<<C<<endl; R=(K-273.15)*0.8; cout<<"Besar suhu Kelvin ke Reamur adalah= "<<R<<endl; F=K*1.8-459.67; cout<<"Besar suhu Kelvin ke Fahrenheit adalah= "<<F<<endl; } cout<<"==============================n"; cout<<"==============================n"; cout<<"Apakah anda ingin mengulang y/n?: ";cin>>ulang; }while(ulang=='y'); }