SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Lab 4 Part 2
Using while and for loops to display temperature conversion tables
1. Using a while loop: use a while loop to ask the user for the starting Celsius temperature. a. The
lowest possible Celsius temperature is -273.15 degrees (absolute zero). b. If the user enters in a
value less than absolute zero, the code must display an error message and require the user to
reenter the temperature. The code must continue to loop until the user enters in a valid starting
temperature.
2. Using a while loop: use a while loop to display a table of the Celsius temperatures from the
input starting point through the starting point + 20 and their converted Fahrenheit and Kelvin
equivalents.
3. Using a for loop: use a for loop to display a table of the Celsius temperatures from the input
starting point through the starting point + 20 and their converted Fahrenheit and Kelvin
equivalents.
NOTE: a for loop can only use an integer value in the loop. The formula for converting a
temperature from Celsius to Fahrenheit and Celsius to Kelvin is below. Fahrenehit Temp = (9/5) *
Celsius Temp + 32 Kelvin Temp = Celsius Temp + 273.15 Notes:
Both loops should produce the same output with two identical tables displayed one after the other
(see the examples below).
All temperatures must be formatted to two decimal places using fstrings (see the example below).
Rubric: The rubric is located on the assignment page in Canvas. Please review the rubric to make
sure you meet all the requirements for this lab.
Enter in the starting temperature: -300 Error: Temperatures cannot be below absolute zero.
Please reenter! Enter in the starting temperature: -40.02 Temperature conversions using a while
loop

Mais conteúdo relacionado

Semelhante a Lab 4 Part 2 Using while and for loops to display temperat.pdf

CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)
CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)
CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)KRITIKAYADAV26M2R
 
LabQuest 7 Chemistry with Vernier 7 - 1 Pressure.docx
 LabQuest  7 Chemistry with Vernier 7 - 1 Pressure.docx LabQuest  7 Chemistry with Vernier 7 - 1 Pressure.docx
LabQuest 7 Chemistry with Vernier 7 - 1 Pressure.docxMARRY7
 
PVT behaviour of gases and relations.
PVT behaviour of gases and relations.PVT behaviour of gases and relations.
PVT behaviour of gases and relations.dhruvkd786
 
Write a Temperature class that represents temperatures in degrees in .docx
 Write a Temperature class that represents temperatures in degrees in .docx Write a Temperature class that represents temperatures in degrees in .docx
Write a Temperature class that represents temperatures in degrees in .docxajoy21
 
Pinch analysis technique to optimize heat exchanger
Pinch analysis technique to optimize heat exchangerPinch analysis technique to optimize heat exchanger
Pinch analysis technique to optimize heat exchangerK Vivek Varkey
 
To demonstrate the relationship between power input and surface temperature i...
To demonstrate the relationship between power input and surface temperature i...To demonstrate the relationship between power input and surface temperature i...
To demonstrate the relationship between power input and surface temperature i...Salman Jailani
 
Air-Cycle refrigeration.pdf
Air-Cycle refrigeration.pdfAir-Cycle refrigeration.pdf
Air-Cycle refrigeration.pdfEssaYimer
 
CHAPTER NO-4 Heat Engines.pptx
CHAPTER NO-4 Heat Engines.pptxCHAPTER NO-4 Heat Engines.pptx
CHAPTER NO-4 Heat Engines.pptxHeniPatel29
 
entropy and second law of thermodynamics
entropy and second law of thermodynamicsentropy and second law of thermodynamics
entropy and second law of thermodynamicsguridhindsa
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptxNelyJay
 
Introduction to Air Refrigeration for 3/4 B.Tech
Introduction to Air Refrigeration for 3/4 B.TechIntroduction to Air Refrigeration for 3/4 B.Tech
Introduction to Air Refrigeration for 3/4 B.Techmaheshchindanu5783
 
unit-2.ppt
unit-2.pptunit-2.ppt
unit-2.pptsamygs1
 

Semelhante a Lab 4 Part 2 Using while and for loops to display temperat.pdf (17)

sup im report.pptx
sup im report.pptxsup im report.pptx
sup im report.pptx
 
CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)
CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)
CARNOT CYCLE AND THEOREM(REVERSIBLE ENGINE)
 
LabQuest 7 Chemistry with Vernier 7 - 1 Pressure.docx
 LabQuest  7 Chemistry with Vernier 7 - 1 Pressure.docx LabQuest  7 Chemistry with Vernier 7 - 1 Pressure.docx
LabQuest 7 Chemistry with Vernier 7 - 1 Pressure.docx
 
PVT behaviour of gases and relations.
PVT behaviour of gases and relations.PVT behaviour of gases and relations.
PVT behaviour of gases and relations.
 
Write a Temperature class that represents temperatures in degrees in .docx
 Write a Temperature class that represents temperatures in degrees in .docx Write a Temperature class that represents temperatures in degrees in .docx
Write a Temperature class that represents temperatures in degrees in .docx
 
Quiz Questions Ver-1.pdf
Quiz Questions Ver-1.pdfQuiz Questions Ver-1.pdf
Quiz Questions Ver-1.pdf
 
Pinch analysis technique to optimize heat exchanger
Pinch analysis technique to optimize heat exchangerPinch analysis technique to optimize heat exchanger
Pinch analysis technique to optimize heat exchanger
 
I Work for free
I Work for freeI Work for free
I Work for free
 
To demonstrate the relationship between power input and surface temperature i...
To demonstrate the relationship between power input and surface temperature i...To demonstrate the relationship between power input and surface temperature i...
To demonstrate the relationship between power input and surface temperature i...
 
Air-Cycle refrigeration.pdf
Air-Cycle refrigeration.pdfAir-Cycle refrigeration.pdf
Air-Cycle refrigeration.pdf
 
CHAPTER NO-4 Heat Engines.pptx
CHAPTER NO-4 Heat Engines.pptxCHAPTER NO-4 Heat Engines.pptx
CHAPTER NO-4 Heat Engines.pptx
 
Unit iii thermodynamics
Unit iii thermodynamicsUnit iii thermodynamics
Unit iii thermodynamics
 
Chapter 4 second law
Chapter 4  second lawChapter 4  second law
Chapter 4 second law
 
entropy and second law of thermodynamics
entropy and second law of thermodynamicsentropy and second law of thermodynamics
entropy and second law of thermodynamics
 
Lecture 5.pptx
Lecture 5.pptxLecture 5.pptx
Lecture 5.pptx
 
Introduction to Air Refrigeration for 3/4 B.Tech
Introduction to Air Refrigeration for 3/4 B.TechIntroduction to Air Refrigeration for 3/4 B.Tech
Introduction to Air Refrigeration for 3/4 B.Tech
 
unit-2.ppt
unit-2.pptunit-2.ppt
unit-2.ppt
 

Mais de adityacommunication1

LanguageType Java inheritance polymorphism Assume that the.pdf
LanguageType Java inheritance polymorphism Assume that the.pdfLanguageType Java inheritance polymorphism Assume that the.pdf
LanguageType Java inheritance polymorphism Assume that the.pdfadityacommunication1
 
LanguageTypeAuthorJavabinarytreestreetraversals.pdf
LanguageTypeAuthorJavabinarytreestreetraversals.pdfLanguageTypeAuthorJavabinarytreestreetraversals.pdf
LanguageTypeAuthorJavabinarytreestreetraversals.pdfadityacommunication1
 
LanguageType What output is produced by the following prog.pdf
LanguageType What output is produced by the following prog.pdfLanguageType What output is produced by the following prog.pdf
LanguageType What output is produced by the following prog.pdfadityacommunication1
 
Landow Company uses variable costing for internal purposes a.pdf
Landow Company uses variable costing for internal purposes a.pdfLandow Company uses variable costing for internal purposes a.pdf
Landow Company uses variable costing for internal purposes a.pdfadityacommunication1
 
Landscape Ecology 1 What are the 3 landscape elements and b.pdf
Landscape Ecology 1 What are the 3 landscape elements and b.pdfLandscape Ecology 1 What are the 3 landscape elements and b.pdf
Landscape Ecology 1 What are the 3 landscape elements and b.pdfadityacommunication1
 
Lance H and Wanda B Dean are married and live at 431 ProCo.pdf
Lance H and Wanda B Dean are married and live at 431 ProCo.pdfLance H and Wanda B Dean are married and live at 431 ProCo.pdf
Lance H and Wanda B Dean are married and live at 431 ProCo.pdfadityacommunication1
 
Lakevicw Propertess is eraluating a real extato inventment o.pdf
Lakevicw Propertess is eraluating a real extato inventment o.pdfLakevicw Propertess is eraluating a real extato inventment o.pdf
Lakevicw Propertess is eraluating a real extato inventment o.pdfadityacommunication1
 
Lake Shore Medical Center wants to keep track of all adminis.pdf
Lake Shore Medical Center wants to keep track of all adminis.pdfLake Shore Medical Center wants to keep track of all adminis.pdf
Lake Shore Medical Center wants to keep track of all adminis.pdfadityacommunication1
 
label the following structures if they are visible on the im.pdf
label the following structures if they are visible on the im.pdflabel the following structures if they are visible on the im.pdf
label the following structures if they are visible on the im.pdfadityacommunication1
 
Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
Lab8  Controlling traffic using Extended ACL Objectives Per.pdfLab8  Controlling traffic using Extended ACL Objectives Per.pdf
Lab8 Controlling traffic using Extended ACL Objectives Per.pdfadityacommunication1
 
Lab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdfLab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdfadityacommunication1
 
Lab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdfLab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdfadityacommunication1
 
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdfLa mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdfadityacommunication1
 
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdfLAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdfadityacommunication1
 
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdflab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdfadityacommunication1
 
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdfLa venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdfadityacommunication1
 
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdfLa Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdfadityacommunication1
 
La transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdfLa transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdfadityacommunication1
 
La ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdfLa ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdfadityacommunication1
 
La transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdfLa transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdfadityacommunication1
 

Mais de adityacommunication1 (20)

LanguageType Java inheritance polymorphism Assume that the.pdf
LanguageType Java inheritance polymorphism Assume that the.pdfLanguageType Java inheritance polymorphism Assume that the.pdf
LanguageType Java inheritance polymorphism Assume that the.pdf
 
LanguageTypeAuthorJavabinarytreestreetraversals.pdf
LanguageTypeAuthorJavabinarytreestreetraversals.pdfLanguageTypeAuthorJavabinarytreestreetraversals.pdf
LanguageTypeAuthorJavabinarytreestreetraversals.pdf
 
LanguageType What output is produced by the following prog.pdf
LanguageType What output is produced by the following prog.pdfLanguageType What output is produced by the following prog.pdf
LanguageType What output is produced by the following prog.pdf
 
Landow Company uses variable costing for internal purposes a.pdf
Landow Company uses variable costing for internal purposes a.pdfLandow Company uses variable costing for internal purposes a.pdf
Landow Company uses variable costing for internal purposes a.pdf
 
Landscape Ecology 1 What are the 3 landscape elements and b.pdf
Landscape Ecology 1 What are the 3 landscape elements and b.pdfLandscape Ecology 1 What are the 3 landscape elements and b.pdf
Landscape Ecology 1 What are the 3 landscape elements and b.pdf
 
Lance H and Wanda B Dean are married and live at 431 ProCo.pdf
Lance H and Wanda B Dean are married and live at 431 ProCo.pdfLance H and Wanda B Dean are married and live at 431 ProCo.pdf
Lance H and Wanda B Dean are married and live at 431 ProCo.pdf
 
Lakevicw Propertess is eraluating a real extato inventment o.pdf
Lakevicw Propertess is eraluating a real extato inventment o.pdfLakevicw Propertess is eraluating a real extato inventment o.pdf
Lakevicw Propertess is eraluating a real extato inventment o.pdf
 
Lake Shore Medical Center wants to keep track of all adminis.pdf
Lake Shore Medical Center wants to keep track of all adminis.pdfLake Shore Medical Center wants to keep track of all adminis.pdf
Lake Shore Medical Center wants to keep track of all adminis.pdf
 
label the following structures if they are visible on the im.pdf
label the following structures if they are visible on the im.pdflabel the following structures if they are visible on the im.pdf
label the following structures if they are visible on the im.pdf
 
Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
Lab8  Controlling traffic using Extended ACL Objectives Per.pdfLab8  Controlling traffic using Extended ACL Objectives Per.pdf
Lab8 Controlling traffic using Extended ACL Objectives Per.pdf
 
Lab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdfLab Task 2 Use the below code and fill it in where appropri.pdf
Lab Task 2 Use the below code and fill it in where appropri.pdf
 
Lab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdfLab Task 5 Points As a programmer in a company you were .pdf
Lab Task 5 Points As a programmer in a company you were .pdf
 
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdfLa mutacin del ojo sepia se es una mutacin recesiva no l.pdf
La mutacin del ojo sepia se es una mutacin recesiva no l.pdf
 
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdfLAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
LAB EXERCISES 1 Create a table employee with emp_noemp_n.pdf
 
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdflab 7 volcanos  Emaglai St Maina kea and whata Use these map.pdf
lab 7 volcanos Emaglai St Maina kea and whata Use these map.pdf
 
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdfLa venta al por menor de prendas de vestir ha cambiado Ya n.pdf
La venta al por menor de prendas de vestir ha cambiado Ya n.pdf
 
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdfLa Universidad Johns Hopkins cometi recientemente un gran e.pdf
La Universidad Johns Hopkins cometi recientemente un gran e.pdf
 
La transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdfLa transcripcin es el proceso mediante el cual la enzima _.pdf
La transcripcin es el proceso mediante el cual la enzima _.pdf
 
La ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdfLa ventaja potencial de la dilucin de acciones es que R E.pdf
La ventaja potencial de la dilucin de acciones es que R E.pdf
 
La transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdfLa transcriptasa inversa es conocida por tener poca activida.pdf
La transcriptasa inversa es conocida por tener poca activida.pdf
 

Último

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Último (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

Lab 4 Part 2 Using while and for loops to display temperat.pdf

  • 1. Lab 4 Part 2 Using while and for loops to display temperature conversion tables 1. Using a while loop: use a while loop to ask the user for the starting Celsius temperature. a. The lowest possible Celsius temperature is -273.15 degrees (absolute zero). b. If the user enters in a value less than absolute zero, the code must display an error message and require the user to reenter the temperature. The code must continue to loop until the user enters in a valid starting temperature. 2. Using a while loop: use a while loop to display a table of the Celsius temperatures from the input starting point through the starting point + 20 and their converted Fahrenheit and Kelvin equivalents. 3. Using a for loop: use a for loop to display a table of the Celsius temperatures from the input starting point through the starting point + 20 and their converted Fahrenheit and Kelvin equivalents. NOTE: a for loop can only use an integer value in the loop. The formula for converting a temperature from Celsius to Fahrenheit and Celsius to Kelvin is below. Fahrenehit Temp = (9/5) * Celsius Temp + 32 Kelvin Temp = Celsius Temp + 273.15 Notes: Both loops should produce the same output with two identical tables displayed one after the other (see the examples below). All temperatures must be formatted to two decimal places using fstrings (see the example below). Rubric: The rubric is located on the assignment page in Canvas. Please review the rubric to make sure you meet all the requirements for this lab. Enter in the starting temperature: -300 Error: Temperatures cannot be below absolute zero. Please reenter! Enter in the starting temperature: -40.02 Temperature conversions using a while loop