SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
In python write a code that follows these parameters: Create a loop that will accept inputs from
the user. The loop will exit when the user enters the input quit. Choose 1 of your solutions from
part 1 and consider the required inputs. Inside the loop, ask the user to input the required values.
Check if the values entered meet the assumptions of the function. If they do, then call the
function with the given input. If they do not, state which input was violated and do not run the
function. For example: if I chose 1c and I entered 1 or more negative values we would not run
the function because the assumption states the numbers must be greater than 0. You may assume
that whatever the input values are, that they will be valid numbers, or the string quit.

Contenu connexe

Plus de sanjeevbansal1970

Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdfJim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
sanjeevbansal1970
 
Jean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdfJean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdf
sanjeevbansal1970
 
JavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdfJavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdf
sanjeevbansal1970
 
Java Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdfJava Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdf
sanjeevbansal1970
 
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdfJAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
sanjeevbansal1970
 
In this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdfIn this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdf
sanjeevbansal1970
 

Plus de sanjeevbansal1970 (20)

In the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdfIn the Government of Canada, individuals within departments to whom .pdf
In the Government of Canada, individuals within departments to whom .pdf
 
In Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdfIn Xcode, Using decomposition, type the code that will most efficien.pdf
In Xcode, Using decomposition, type the code that will most efficien.pdf
 
In the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdfIn the article liars dont qualify by Junius Edwards, What is the pu.pdf
In the article liars dont qualify by Junius Edwards, What is the pu.pdf
 
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdfJohn y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
John y Jim tienen aversi�n al riesgo y solo se preocupan por la medi.pdf
 
John is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdfJohn is a minor who lives with his mother and stepfather and not his.pdf
John is a minor who lives with his mother and stepfather and not his.pdf
 
John and Sara are married and live in AZ. They do not have a prenup.pdf
John and Sara are married and live in AZ.  They do not have a prenup.pdfJohn and Sara are married and live in AZ.  They do not have a prenup.pdf
John and Sara are married and live in AZ. They do not have a prenup.pdf
 
In Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdfIn Visual Studios C# console app using multiple class files create a.pdf
In Visual Studios C# console app using multiple class files create a.pdf
 
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdfJoel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
Joel y Maria tienen un hijo llamado David, un estudiante de 20 a�os .pdf
 
Jin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdfJin has configured File History on his Windows 10 computer using an .pdf
Jin has configured File History on his Windows 10 computer using an .pdf
 
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdfJJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
JJ firm has a return on equity of 15 percent, a return on assets of 10.pdf
 
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdfJim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
Jim Harrod, hizmetin her eyden �nce m�terileri i�in �nemli olduunu b.pdf
 
Jean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdfJean has her first child at age 14. By the time she is 30, she has f.pdf
Jean has her first child at age 14. By the time she is 30, she has f.pdf
 
JavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdfJavaScriptIn this project you will create an interactive map for a.pdf
JavaScriptIn this project you will create an interactive map for a.pdf
 
Java Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdfJava Programming In this programming assignment, you need to impl.pdf
Java Programming In this programming assignment, you need to impl.pdf
 
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdfJAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
JAVA Assistance please! I need help with a Java GUI. I have to put a.pdf
 
In this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdfIn this programming assignment, you will be creating a Health Inform.pdf
In this programming assignment, you will be creating a Health Inform.pdf
 
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdfJaponyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
Japonyann GSYHsnn 4 trilyon $ olduunu ve ulusal tasarruf orannn 1.pdf
 
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdfJanelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
Janelle is pretty lucky. She doesnt have a lot of out-of-pocket exp.pdf
 
Jane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdfJane is planning to go on a camping trip. She purchases a bottle of .pdf
Jane is planning to go on a camping trip. She purchases a bottle of .pdf
 
James Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdfJames Fishel is a 56-year-old maintenance worker who has worked for .pdf
James Fishel is a 56-year-old maintenance worker who has worked for .pdf
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
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
 

Dernier (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
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
 
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
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
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
 
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...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

In python write a code that follows these parameters Create a loop .pdf

  • 1. In python write a code that follows these parameters: Create a loop that will accept inputs from the user. The loop will exit when the user enters the input quit. Choose 1 of your solutions from part 1 and consider the required inputs. Inside the loop, ask the user to input the required values. Check if the values entered meet the assumptions of the function. If they do, then call the function with the given input. If they do not, state which input was violated and do not run the function. For example: if I chose 1c and I entered 1 or more negative values we would not run the function because the assumption states the numbers must be greater than 0. You may assume that whatever the input values are, that they will be valid numbers, or the string quit.