SlideShare a Scribd company logo
1 of 1
Problem 1
print("Problem 1")
Using a sentinel controlled while loop
Ask the user for a positive number.
End the loop when the user enters -1.
Print the total of the numbers the user entered.
Source Code
(Copy/Paste)
Terminal Output
(Screenshot)
Source Code
(Copy/Paste)
Terminal Output
(Screenshot)

More Related Content

More from AndrewZJ9Mitchellm

Porter's Model identifies four factors that- working together- can res.docx
Porter's Model identifies four factors that- working together- can res.docxPorter's Model identifies four factors that- working together- can res.docx
Porter's Model identifies four factors that- working together- can res.docx
AndrewZJ9Mitchellm
 

More from AndrewZJ9Mitchellm (20)

Poverty and Inequality 1- Know some basic trends in GDP and poverty ov.docx
Poverty and Inequality 1- Know some basic trends in GDP and poverty ov.docxPoverty and Inequality 1- Know some basic trends in GDP and poverty ov.docx
Poverty and Inequality 1- Know some basic trends in GDP and poverty ov.docx
 
Prepare Multiple-Step and Single-Step Income Statements FACTS The foll.docx
Prepare Multiple-Step and Single-Step Income Statements FACTS The foll.docxPrepare Multiple-Step and Single-Step Income Statements FACTS The foll.docx
Prepare Multiple-Step and Single-Step Income Statements FACTS The foll.docx
 
Porter's Model identifies four factors that- working together- can res.docx
Porter's Model identifies four factors that- working together- can res.docxPorter's Model identifies four factors that- working together- can res.docx
Porter's Model identifies four factors that- working together- can res.docx
 
Plot the following two functions on separate figures- Use plenty of va.docx
Plot the following two functions on separate figures- Use plenty of va.docxPlot the following two functions on separate figures- Use plenty of va.docx
Plot the following two functions on separate figures- Use plenty of va.docx
 
Q1- Hemochromatosis is a rare autosomal recessive Mendelian disease- Y.docx
Q1- Hemochromatosis is a rare autosomal recessive Mendelian disease- Y.docxQ1- Hemochromatosis is a rare autosomal recessive Mendelian disease- Y.docx
Q1- Hemochromatosis is a rare autosomal recessive Mendelian disease- Y.docx
 
Q(3) The probability that a married man watches a certain television s.docx
Q(3) The probability that a married man watches a certain television s.docxQ(3) The probability that a married man watches a certain television s.docx
Q(3) The probability that a married man watches a certain television s.docx
 
Put steps of the Westem blot in order Drag and drop options into corre.docx
Put steps of the Westem blot in order Drag and drop options into corre.docxPut steps of the Westem blot in order Drag and drop options into corre.docx
Put steps of the Westem blot in order Drag and drop options into corre.docx
 
Python Which regular expression matches any positive decimal integer n.docx
Python Which regular expression matches any positive decimal integer n.docxPython Which regular expression matches any positive decimal integer n.docx
Python Which regular expression matches any positive decimal integer n.docx
 
Python Create an app that contains the following- - Input a name- majo.docx
Python Create an app that contains the following- - Input a name- majo.docxPython Create an app that contains the following- - Input a name- majo.docx
Python Create an app that contains the following- - Input a name- majo.docx
 
Purpose The purpose of this Activity is to demonstrate your understand.docx
Purpose The purpose of this Activity is to demonstrate your understand.docxPurpose The purpose of this Activity is to demonstrate your understand.docx
Purpose The purpose of this Activity is to demonstrate your understand.docx
 
Put the stages of bacteriophage replication in order- Lysis of host.docx
Put the stages of bacteriophage replication in order-   Lysis of host.docxPut the stages of bacteriophage replication in order-   Lysis of host.docx
Put the stages of bacteriophage replication in order- Lysis of host.docx
 
Public education is priced below market price largely as a result ofA).docx
Public education is priced below market price largely as a result ofA).docxPublic education is priced below market price largely as a result ofA).docx
Public education is priced below market price largely as a result ofA).docx
 
Provide an appropriate response- Express your answer as a simplified f.docx
Provide an appropriate response- Express your answer as a simplified f.docxProvide an appropriate response- Express your answer as a simplified f.docx
Provide an appropriate response- Express your answer as a simplified f.docx
 
Protobionts required certain characteristics to eventually become cell.docx
Protobionts required certain characteristics to eventually become cell.docxProtobionts required certain characteristics to eventually become cell.docx
Protobionts required certain characteristics to eventually become cell.docx
 
Project Title -Creating a website for Library Management Kindly develo.docx
Project Title -Creating a website for Library Management Kindly develo.docxProject Title -Creating a website for Library Management Kindly develo.docx
Project Title -Creating a website for Library Management Kindly develo.docx
 
Project that responsible for managing employees record- job details- s.docx
Project that responsible for managing employees record- job details- s.docxProject that responsible for managing employees record- job details- s.docx
Project that responsible for managing employees record- job details- s.docx
 
PRODUCTION FUNCTION Y-y(K-L) There sould be a nopemeit along the curve.docx
PRODUCTION FUNCTION Y-y(K-L) There sould be a nopemeit along the curve.docxPRODUCTION FUNCTION Y-y(K-L) There sould be a nopemeit along the curve.docx
PRODUCTION FUNCTION Y-y(K-L) There sould be a nopemeit along the curve.docx
 
Problem 4- Consider the system x1-x13x2x2-x1x2 Is the origin asymptoti.docx
Problem 4- Consider the system x1-x13x2x2-x1x2 Is the origin asymptoti.docxProblem 4- Consider the system x1-x13x2x2-x1x2 Is the origin asymptoti.docx
Problem 4- Consider the system x1-x13x2x2-x1x2 Is the origin asymptoti.docx
 
Problem 4- A random variable X assumes values 2-1-0-3-5 with probabili.docx
Problem 4- A random variable X assumes values 2-1-0-3-5 with probabili.docxProblem 4- A random variable X assumes values 2-1-0-3-5 with probabili.docx
Problem 4- A random variable X assumes values 2-1-0-3-5 with probabili.docx
 
Problem 4 -11 points-- There are 135 students in Grade 1 - Suppose the.docx
Problem 4 -11 points-- There are 135 students in Grade 1 - Suppose the.docxProblem 4 -11 points-- There are 135 students in Grade 1 - Suppose the.docx
Problem 4 -11 points-- There are 135 students in Grade 1 - Suppose the.docx
 

Recently uploaded

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
QucHHunhnh
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

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
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.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...
 
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
 
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
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
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
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 

Problem 1 print(-Problem 1-) Using a sentinel controlled while loop.docx

  • 1. Problem 1 print("Problem 1") Using a sentinel controlled while loop Ask the user for a positive number. End the loop when the user enters -1. Print the total of the numbers the user entered. Source Code (Copy/Paste) Terminal Output (Screenshot) Source Code (Copy/Paste) Terminal Output (Screenshot)