SlideShare a Scribd company logo
1 of 1
Download to read offline
Feet and Meters Converter (in Python)
Create a program that uses a separate module to convert feet to meters and vice versa.
Example runtime. User input is italicized for the example. Allow the user to enter their own input:
The formula for converting feet to meters is: feet = meters / 0.3048
The formula for converting meters to feet is: meters = feet * 0.3048
Store the code that performs the feet to meters and meters to feet conversions in functions within
a module.
Store the code that displays the title in its own function, and store the code that displays the menu
in its own function, but store the rest of the code that gets input and displays output in the main()
function.
Allow the user to repeat this process as many times as they like
The program should round results to a maximum of two decimal places.

More Related Content

Similar to Feet and Meters Converter in Python Create a program that .pdf

Chapter 11 Function
Chapter 11 FunctionChapter 11 Function
Chapter 11 Function
Deepak Singh
 

Similar to Feet and Meters Converter in Python Create a program that .pdf (20)

Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++Generalized Functors - Realizing Command Design Pattern in C++
Generalized Functors - Realizing Command Design Pattern in C++
 
Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions
 
CHAPTER THREE FUNCTION.pptx
CHAPTER THREE FUNCTION.pptxCHAPTER THREE FUNCTION.pptx
CHAPTER THREE FUNCTION.pptx
 
Chapter 1.ppt
Chapter 1.pptChapter 1.ppt
Chapter 1.ppt
 
Maintaining Code
Maintaining CodeMaintaining Code
Maintaining Code
 
59_OOP_Function Template and multiple parameters.pptx
59_OOP_Function Template and multiple parameters.pptx59_OOP_Function Template and multiple parameters.pptx
59_OOP_Function Template and multiple parameters.pptx
 
C programming language
C programming languageC programming language
C programming language
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
User Defined Functions
User Defined FunctionsUser Defined Functions
User Defined Functions
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 11 Function
Chapter 11 FunctionChapter 11 Function
Chapter 11 Function
 
Unit-III.pptx
Unit-III.pptxUnit-III.pptx
Unit-III.pptx
 
Mastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_argumentsMastering Python lesson 4_functions_parameters_arguments
Mastering Python lesson 4_functions_parameters_arguments
 
Python
PythonPython
Python
 
Functions in c++, presentation, short and sweet presentation, and details of ...
Functions in c++, presentation, short and sweet presentation, and details of ...Functions in c++, presentation, short and sweet presentation, and details of ...
Functions in c++, presentation, short and sweet presentation, and details of ...
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
 
I x scripting
I x scriptingI x scripting
I x scripting
 
PSPC-UNIT-4.pdf
PSPC-UNIT-4.pdfPSPC-UNIT-4.pdf
PSPC-UNIT-4.pdf
 
Notes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculationsNotes how to work with variables, constants and do calculations
Notes how to work with variables, constants and do calculations
 
Functions and modular programming.pptx
Functions and modular programming.pptxFunctions and modular programming.pptx
Functions and modular programming.pptx
 

More from info334223

Ethical hacking is the use of hacking tools and techniques t.pdf
Ethical hacking is the use of hacking tools and techniques t.pdfEthical hacking is the use of hacking tools and techniques t.pdf
Ethical hacking is the use of hacking tools and techniques t.pdf
info334223
 
51 Case Study 21 Whom Would You Hire More texttospeech.pdf
51 Case Study 21  Whom Would You Hire More texttospeech.pdf51 Case Study 21  Whom Would You Hire More texttospeech.pdf
51 Case Study 21 Whom Would You Hire More texttospeech.pdf
info334223
 
1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf
info334223
 
Aeropuerto Internacional de Denver FONDO Cmo se conviert.pdf
Aeropuerto Internacional de Denver  FONDO  Cmo se conviert.pdfAeropuerto Internacional de Denver  FONDO  Cmo se conviert.pdf
Aeropuerto Internacional de Denver FONDO Cmo se conviert.pdf
info334223
 
This is the main file include itemh include itemList.pdf
This is the main file include itemh include itemList.pdfThis is the main file include itemh include itemList.pdf
This is the main file include itemh include itemList.pdf
info334223
 

More from info334223 (20)

Ethical hacking is the use of hacking tools and techniques t.pdf
Ethical hacking is the use of hacking tools and techniques t.pdfEthical hacking is the use of hacking tools and techniques t.pdf
Ethical hacking is the use of hacking tools and techniques t.pdf
 
Assume Victoria Inc VI has some outstanding bonds that ma.pdf
Assume Victoria Inc VI has some outstanding bonds that ma.pdfAssume Victoria Inc VI has some outstanding bonds that ma.pdf
Assume Victoria Inc VI has some outstanding bonds that ma.pdf
 
At December 312020 Marin Corporation had a deferred tax l.pdf
At December 312020  Marin Corporation had a deferred tax l.pdfAt December 312020  Marin Corporation had a deferred tax l.pdf
At December 312020 Marin Corporation had a deferred tax l.pdf
 
Aratrmaclar E coli tarafndan tipik olarak tketilmeyen bir.pdf
Aratrmaclar E coli tarafndan tipik olarak tketilmeyen bir.pdfAratrmaclar E coli tarafndan tipik olarak tketilmeyen bir.pdf
Aratrmaclar E coli tarafndan tipik olarak tketilmeyen bir.pdf
 
51 Case Study 21 Whom Would You Hire More texttospeech.pdf
51 Case Study 21  Whom Would You Hire More texttospeech.pdf51 Case Study 21  Whom Would You Hire More texttospeech.pdf
51 Case Study 21 Whom Would You Hire More texttospeech.pdf
 
6 A medical practice group consists of nine doctors four w.pdf
6 A medical practice group consists of nine doctors four w.pdf6 A medical practice group consists of nine doctors four w.pdf
6 A medical practice group consists of nine doctors four w.pdf
 
2 Adding Command Now we implement the filecopy command cp .pdf
2 Adding Command Now we implement the filecopy command cp .pdf2 Adding Command Now we implement the filecopy command cp .pdf
2 Adding Command Now we implement the filecopy command cp .pdf
 
1How will you manage building this infrastructure and appli.pdf
1How will you manage building this infrastructure and appli.pdf1How will you manage building this infrastructure and appli.pdf
1How will you manage building this infrastructure and appli.pdf
 
1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf1818 LAB Grocery shopping list linked list inserting at .pdf
1818 LAB Grocery shopping list linked list inserting at .pdf
 
Dr Foleys new type of agriculture that he described as fa.pdf
Dr Foleys new type of agriculture that he described as fa.pdfDr Foleys new type of agriculture that he described as fa.pdf
Dr Foleys new type of agriculture that he described as fa.pdf
 
Aeropuerto Internacional de Denver FONDO Cmo se conviert.pdf
Aeropuerto Internacional de Denver  FONDO  Cmo se conviert.pdfAeropuerto Internacional de Denver  FONDO  Cmo se conviert.pdf
Aeropuerto Internacional de Denver FONDO Cmo se conviert.pdf
 
A sample of size 39 was gathered from high school seniors to.pdf
A sample of size 39 was gathered from high school seniors to.pdfA sample of size 39 was gathered from high school seniors to.pdf
A sample of size 39 was gathered from high school seniors to.pdf
 
While Mary Corens was a student at the University of Tenness.pdf
While Mary Corens was a student at the University of Tenness.pdfWhile Mary Corens was a student at the University of Tenness.pdf
While Mary Corens was a student at the University of Tenness.pdf
 
what is the significance related to reproduction and the sig.pdf
what is the significance related to reproduction and the sig.pdfwhat is the significance related to reproduction and the sig.pdf
what is the significance related to reproduction and the sig.pdf
 
When oxygen is present which pair of processes allow conver.pdf
When oxygen is present which pair of processes allow conver.pdfWhen oxygen is present which pair of processes allow conver.pdf
When oxygen is present which pair of processes allow conver.pdf
 
v f alculete the leogti mad varance of the Criting Phis d.pdf
v f alculete the leogti mad varance of the Criting Phis d.pdfv f alculete the leogti mad varance of the Criting Phis d.pdf
v f alculete the leogti mad varance of the Criting Phis d.pdf
 
This is the main file include itemh include itemList.pdf
This is the main file include itemh include itemList.pdfThis is the main file include itemh include itemList.pdf
This is the main file include itemh include itemList.pdf
 
423 A survey of 1000 US government employees who have an.pdf
423 A survey of 1000 US government employees who have an.pdf423 A survey of 1000 US government employees who have an.pdf
423 A survey of 1000 US government employees who have an.pdf
 
The following partial information is taken from the comparat.pdf
The following partial information is taken from the comparat.pdfThe following partial information is taken from the comparat.pdf
The following partial information is taken from the comparat.pdf
 
3 Lets suppose the A600 of your 1100 diluted culture is 0.pdf
3 Lets suppose the A600 of your 1100 diluted culture is 0.pdf3 Lets suppose the A600 of your 1100 diluted culture is 0.pdf
3 Lets suppose the A600 of your 1100 diluted culture is 0.pdf
 

Recently uploaded

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
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
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
heathfieldcps1
 

Recently uploaded (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
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
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...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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
 
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
 
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
 

Feet and Meters Converter in Python Create a program that .pdf

  • 1. Feet and Meters Converter (in Python) Create a program that uses a separate module to convert feet to meters and vice versa. Example runtime. User input is italicized for the example. Allow the user to enter their own input: The formula for converting feet to meters is: feet = meters / 0.3048 The formula for converting meters to feet is: meters = feet * 0.3048 Store the code that performs the feet to meters and meters to feet conversions in functions within a module. Store the code that displays the title in its own function, and store the code that displays the menu in its own function, but store the rest of the code that gets input and displays output in the main() function. Allow the user to repeat this process as many times as they like The program should round results to a maximum of two decimal places.