SlideShare uma empresa Scribd logo
1 de 1
Python question.
9.16 Implement a GUI application that allows users to compute their body mass index (BMI),
which we defined in Practice Problem 5.1. Your GUI should look as shown below. Enter your
height: Enter your weight: Compute BMI After entering the weight and height and then clicking
the button, a new window should pop up with the computed BMI.Make sure your GUI is user
friendly by deleting the entered weight and height so that the user can enter new inputs without
having to erase the old ones.
Solution
BMI Calculator 1. Obtain weight in pounds and height in inches 2. Convert weight to kilograms
and height to meters 3. Calculate BMI with the formula weight/height^2 """ #prompt user for
input from keyboard weight= input ("How much do you weigh (in pounds)?") #this get's the
person's weight in pounds weight_in_kg= weight/2.2 #this converts weight to kilograms height=
input ("What is your height (in inches)?") #this gets the person's height in inches
height_in_meter=height*2.54/100 #this converts height to centimeters
bmi=weight_in_kg/(height_in_meter**2) #this calculates BMI print (bmi)

Mais conteúdo relacionado

Semelhante a Python question- 9-16 Implement a GUI application that allows users to.docx

DOC333-2023-Sep-pythonprogramming-Lec04.pdf
DOC333-2023-Sep-pythonprogramming-Lec04.pdfDOC333-2023-Sep-pythonprogramming-Lec04.pdf
DOC333-2023-Sep-pythonprogramming-Lec04.pdfahamedmusharaf15
 
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptx
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptxPYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptx
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptxTrangNguyenThiHuyen6
 
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdf
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdfP1.javaimport java.util.Scanner;keyboard inputting package pub.pdf
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdfaquacareser
 
Google calendar integration in iOS app
Google calendar integration in iOS appGoogle calendar integration in iOS app
Google calendar integration in iOS appKetan Raval
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18HIMANSHU .
 

Semelhante a Python question- 9-16 Implement a GUI application that allows users to.docx (6)

DOC333-2023-Sep-pythonprogramming-Lec04.pdf
DOC333-2023-Sep-pythonprogramming-Lec04.pdfDOC333-2023-Sep-pythonprogramming-Lec04.pdf
DOC333-2023-Sep-pythonprogramming-Lec04.pdf
 
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptx
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptxPYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptx
PYTHONNANGCAO_1.GUI.Creating the GUI Form and Adding Widgets.pptx
 
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdf
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdfP1.javaimport java.util.Scanner;keyboard inputting package pub.pdf
P1.javaimport java.util.Scanner;keyboard inputting package pub.pdf
 
Google calendar integration in iOS app
Google calendar integration in iOS appGoogle calendar integration in iOS app
Google calendar integration in iOS app
 
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
COMPUTER SCIENCE INVESTIGATORY PROJECT 2017-18
 
Notification android
Notification androidNotification android
Notification android
 

Mais de gtameka

TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docx
TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docxTOPIC- Landslide early warning in Costa Rica- Students are required to (1).docx
TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docxgtameka
 
Topic option 2- What should the rules be for computer crime- Your pape.docx
Topic option 2- What should the rules be for computer crime- Your pape.docxTopic option 2- What should the rules be for computer crime- Your pape.docx
Topic option 2- What should the rules be for computer crime- Your pape.docxgtameka
 
Tones Company purchased a warehouse in a downtown district where land.docx
Tones Company purchased a warehouse in a downtown district where land.docxTones Company purchased a warehouse in a downtown district where land.docx
Tones Company purchased a warehouse in a downtown district where land.docxgtameka
 
Tones Industries has the following patents on its December 31- 2013- b.docx
Tones Industries has the following patents on its December 31- 2013- b.docxTones Industries has the following patents on its December 31- 2013- b.docx
Tones Industries has the following patents on its December 31- 2013- b.docxgtameka
 
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docx
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docxToni Tornan is a single parent- During 2014 she earned wages $26-550-.docx
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docxgtameka
 
Toms construction site has a pipe that discharges run off from the sit.docx
Toms construction site has a pipe that discharges run off from the sit.docxToms construction site has a pipe that discharges run off from the sit.docx
Toms construction site has a pipe that discharges run off from the sit.docxgtameka
 
To achieve long-term prosperity- strategic planners commonly establish.docx
To achieve long-term prosperity- strategic planners commonly establish.docxTo achieve long-term prosperity- strategic planners commonly establish.docx
To achieve long-term prosperity- strategic planners commonly establish.docxgtameka
 
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docx
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docxTiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docx
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docxgtameka
 
True or false- Social networking through such services as Facebook- Tw.docx
True or false- Social networking through such services as Facebook- Tw.docxTrue or false- Social networking through such services as Facebook- Tw.docx
True or false- Social networking through such services as Facebook- Tw.docxgtameka
 
True or False- In a proprietary system- a commercial vendor opens thei.docx
True or False- In a proprietary system- a commercial vendor opens thei.docxTrue or False- In a proprietary system- a commercial vendor opens thei.docx
True or False- In a proprietary system- a commercial vendor opens thei.docxgtameka
 
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docx
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docxTRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docx
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docxgtameka
 
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docx
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docxTrue or False Explain Why- 1- SIP and RTP are protocols used to allow.docx
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docxgtameka
 
True or False 1- The interstellar medium is composed mostly of gaseous.docx
True or False 1- The interstellar medium is composed mostly of gaseous.docxTrue or False 1- The interstellar medium is composed mostly of gaseous.docx
True or False 1- The interstellar medium is composed mostly of gaseous.docxgtameka
 
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docx
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docxTrue or False (1 point each) 1- TorF NOs is the only form of nitrogen.docx
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docxgtameka
 
Transform the E-R diagram into a set of relations- Parking Tickets Ta.docx
Transform the E-R diagram into a set of relations-  Parking Tickets Ta.docxTransform the E-R diagram into a set of relations-  Parking Tickets Ta.docx
Transform the E-R diagram into a set of relations- Parking Tickets Ta.docxgtameka
 
Trace the evolution of the US police system from the --political-- era.docx
Trace the evolution of the US police system from the --political-- era.docxTrace the evolution of the US police system from the --political-- era.docx
Trace the evolution of the US police system from the --political-- era.docxgtameka
 
Trace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxTrace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxgtameka
 
Training and DevelopmentSolutionThe various skills that are necessary.docx
Training and DevelopmentSolutionThe various skills that are necessary.docxTraining and DevelopmentSolutionThe various skills that are necessary.docx
Training and DevelopmentSolutionThe various skills that are necessary.docxgtameka
 
Question 1 This layer of the OSI model is responsible for dialog contr.docx
Question 1 This layer of the OSI model is responsible for dialog contr.docxQuestion 1 This layer of the OSI model is responsible for dialog contr.docx
Question 1 This layer of the OSI model is responsible for dialog contr.docxgtameka
 
QUESTION 1 The purpose of an audit is to express an opinion on whether.docx
QUESTION 1 The purpose of an audit is to express an opinion on whether.docxQUESTION 1 The purpose of an audit is to express an opinion on whether.docx
QUESTION 1 The purpose of an audit is to express an opinion on whether.docxgtameka
 

Mais de gtameka (20)

TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docx
TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docxTOPIC- Landslide early warning in Costa Rica- Students are required to (1).docx
TOPIC- Landslide early warning in Costa Rica- Students are required to (1).docx
 
Topic option 2- What should the rules be for computer crime- Your pape.docx
Topic option 2- What should the rules be for computer crime- Your pape.docxTopic option 2- What should the rules be for computer crime- Your pape.docx
Topic option 2- What should the rules be for computer crime- Your pape.docx
 
Tones Company purchased a warehouse in a downtown district where land.docx
Tones Company purchased a warehouse in a downtown district where land.docxTones Company purchased a warehouse in a downtown district where land.docx
Tones Company purchased a warehouse in a downtown district where land.docx
 
Tones Industries has the following patents on its December 31- 2013- b.docx
Tones Industries has the following patents on its December 31- 2013- b.docxTones Industries has the following patents on its December 31- 2013- b.docx
Tones Industries has the following patents on its December 31- 2013- b.docx
 
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docx
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docxToni Tornan is a single parent- During 2014 she earned wages $26-550-.docx
Toni Tornan is a single parent- During 2014 she earned wages $26-550-.docx
 
Toms construction site has a pipe that discharges run off from the sit.docx
Toms construction site has a pipe that discharges run off from the sit.docxToms construction site has a pipe that discharges run off from the sit.docx
Toms construction site has a pipe that discharges run off from the sit.docx
 
To achieve long-term prosperity- strategic planners commonly establish.docx
To achieve long-term prosperity- strategic planners commonly establish.docxTo achieve long-term prosperity- strategic planners commonly establish.docx
To achieve long-term prosperity- strategic planners commonly establish.docx
 
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docx
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docxTiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docx
Tiffany MacGraw- a Canadian citizen- left Canada in 2005 to settle in.docx
 
True or false- Social networking through such services as Facebook- Tw.docx
True or false- Social networking through such services as Facebook- Tw.docxTrue or false- Social networking through such services as Facebook- Tw.docx
True or false- Social networking through such services as Facebook- Tw.docx
 
True or False- In a proprietary system- a commercial vendor opens thei.docx
True or False- In a proprietary system- a commercial vendor opens thei.docxTrue or False- In a proprietary system- a commercial vendor opens thei.docx
True or False- In a proprietary system- a commercial vendor opens thei.docx
 
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docx
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docxTRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docx
TRUE OR FALSE- 1- N- a nonresident alien individual- was born in Count.docx
 
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docx
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docxTrue or False Explain Why- 1- SIP and RTP are protocols used to allow.docx
True or False Explain Why- 1- SIP and RTP are protocols used to allow.docx
 
True or False 1- The interstellar medium is composed mostly of gaseous.docx
True or False 1- The interstellar medium is composed mostly of gaseous.docxTrue or False 1- The interstellar medium is composed mostly of gaseous.docx
True or False 1- The interstellar medium is composed mostly of gaseous.docx
 
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docx
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docxTrue or False (1 point each) 1- TorF NOs is the only form of nitrogen.docx
True or False (1 point each) 1- TorF NOs is the only form of nitrogen.docx
 
Transform the E-R diagram into a set of relations- Parking Tickets Ta.docx
Transform the E-R diagram into a set of relations-  Parking Tickets Ta.docxTransform the E-R diagram into a set of relations-  Parking Tickets Ta.docx
Transform the E-R diagram into a set of relations- Parking Tickets Ta.docx
 
Trace the evolution of the US police system from the --political-- era.docx
Trace the evolution of the US police system from the --political-- era.docxTrace the evolution of the US police system from the --political-- era.docx
Trace the evolution of the US police system from the --political-- era.docx
 
Trace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxTrace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docx
 
Training and DevelopmentSolutionThe various skills that are necessary.docx
Training and DevelopmentSolutionThe various skills that are necessary.docxTraining and DevelopmentSolutionThe various skills that are necessary.docx
Training and DevelopmentSolutionThe various skills that are necessary.docx
 
Question 1 This layer of the OSI model is responsible for dialog contr.docx
Question 1 This layer of the OSI model is responsible for dialog contr.docxQuestion 1 This layer of the OSI model is responsible for dialog contr.docx
Question 1 This layer of the OSI model is responsible for dialog contr.docx
 
QUESTION 1 The purpose of an audit is to express an opinion on whether.docx
QUESTION 1 The purpose of an audit is to express an opinion on whether.docxQUESTION 1 The purpose of an audit is to express an opinion on whether.docx
QUESTION 1 The purpose of an audit is to express an opinion on whether.docx
 

Último

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

Python question- 9-16 Implement a GUI application that allows users to.docx

  • 1. Python question. 9.16 Implement a GUI application that allows users to compute their body mass index (BMI), which we defined in Practice Problem 5.1. Your GUI should look as shown below. Enter your height: Enter your weight: Compute BMI After entering the weight and height and then clicking the button, a new window should pop up with the computed BMI.Make sure your GUI is user friendly by deleting the entered weight and height so that the user can enter new inputs without having to erase the old ones. Solution BMI Calculator 1. Obtain weight in pounds and height in inches 2. Convert weight to kilograms and height to meters 3. Calculate BMI with the formula weight/height^2 """ #prompt user for input from keyboard weight= input ("How much do you weigh (in pounds)?") #this get's the person's weight in pounds weight_in_kg= weight/2.2 #this converts weight to kilograms height= input ("What is your height (in inches)?") #this gets the person's height in inches height_in_meter=height*2.54/100 #this converts height to centimeters bmi=weight_in_kg/(height_in_meter**2) #this calculates BMI print (bmi)