SlideShare a Scribd company logo
(This task uses Strings:) A program that prompts the user for their party affiliation (Democrat,
Republican, or Independent) and responds accordingly with a Donkey, Elephant, Person, or
Other. (i.e. "You get a Democratic Donkey.") Notes: create a menu so the user chooses D, R, or I
and assume that any other choice will be Other. Tests: just the four options D, R, I, Other. Use as
cascaded if structure not separate if statements! Test runs: (insert the output widow copies here
for the 4 test runs)

More Related Content

More from NeiltrjGreenez

(rather than herbaceous) in that the sylem often displays secondary gr.pdf
(rather than herbaceous) in that the sylem often displays secondary gr.pdf(rather than herbaceous) in that the sylem often displays secondary gr.pdf
(rather than herbaceous) in that the sylem often displays secondary gr.pdfNeiltrjGreenez
 
(Python) A variable defined inside a function is a local variable- oth.pdf
(Python) A variable defined inside a function is a local variable- oth.pdf(Python) A variable defined inside a function is a local variable- oth.pdf
(Python) A variable defined inside a function is a local variable- oth.pdfNeiltrjGreenez
 
(Python) Create a function that can take in either a list or a diction.pdf
(Python) Create a function that can take in either a list or a diction.pdf(Python) Create a function that can take in either a list or a diction.pdf
(Python) Create a function that can take in either a list or a diction.pdfNeiltrjGreenez
 
(Python) Create a function that prints the number of Keys and Values.pdf
(Python)  Create a function that prints the number of Keys and Values.pdf(Python)  Create a function that prints the number of Keys and Values.pdf
(Python) Create a function that prints the number of Keys and Values.pdfNeiltrjGreenez
 
(In C++) In a linked list containing student names (string) and their.pdf
(In C++) In a linked list containing student names (string) and their.pdf(In C++) In a linked list containing student names (string) and their.pdf
(In C++) In a linked list containing student names (string) and their.pdfNeiltrjGreenez
 
(Multiple answers) Choose all of the following that are considered ris.pdf
(Multiple answers) Choose all of the following that are considered ris.pdf(Multiple answers) Choose all of the following that are considered ris.pdf
(Multiple answers) Choose all of the following that are considered ris.pdfNeiltrjGreenez
 
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdfNeiltrjGreenez
 
(ii) There were 500 insects in the total population- In this populatio.pdf
(ii) There were 500 insects in the total population- In this populatio.pdf(ii) There were 500 insects in the total population- In this populatio.pdf
(ii) There were 500 insects in the total population- In this populatio.pdfNeiltrjGreenez
 
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdfNeiltrjGreenez
 
(In java) Create a method to delete a node at a particular position i.pdf
(In java)  Create a method to delete a node at a particular position i.pdf(In java)  Create a method to delete a node at a particular position i.pdf
(In java) Create a method to delete a node at a particular position i.pdfNeiltrjGreenez
 
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdfNeiltrjGreenez
 
(D) It identifies if the company will be able to pay its current debts.pdf
(D) It identifies if the company will be able to pay its current debts.pdf(D) It identifies if the company will be able to pay its current debts.pdf
(D) It identifies if the company will be able to pay its current debts.pdfNeiltrjGreenez
 
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdfNeiltrjGreenez
 
(c) Draw a state machine specifying the operations for a Queue using t (1).pdf
(c) Draw a state machine specifying the operations for a Queue using t (1).pdf(c) Draw a state machine specifying the operations for a Queue using t (1).pdf
(c) Draw a state machine specifying the operations for a Queue using t (1).pdfNeiltrjGreenez
 
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdfNeiltrjGreenez
 
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdfNeiltrjGreenez
 
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdfNeiltrjGreenez
 
(25 points) Provide an example of a specific piece of spyware- Explain.pdf
(25 points) Provide an example of a specific piece of spyware- Explain.pdf(25 points) Provide an example of a specific piece of spyware- Explain.pdf
(25 points) Provide an example of a specific piece of spyware- Explain.pdfNeiltrjGreenez
 

More from NeiltrjGreenez (19)

(rather than herbaceous) in that the sylem often displays secondary gr.pdf
(rather than herbaceous) in that the sylem often displays secondary gr.pdf(rather than herbaceous) in that the sylem often displays secondary gr.pdf
(rather than herbaceous) in that the sylem often displays secondary gr.pdf
 
(Python) A variable defined inside a function is a local variable- oth.pdf
(Python) A variable defined inside a function is a local variable- oth.pdf(Python) A variable defined inside a function is a local variable- oth.pdf
(Python) A variable defined inside a function is a local variable- oth.pdf
 
(Python) Create a function that can take in either a list or a diction.pdf
(Python) Create a function that can take in either a list or a diction.pdf(Python) Create a function that can take in either a list or a diction.pdf
(Python) Create a function that can take in either a list or a diction.pdf
 
(Python) Create a function that prints the number of Keys and Values.pdf
(Python)  Create a function that prints the number of Keys and Values.pdf(Python)  Create a function that prints the number of Keys and Values.pdf
(Python) Create a function that prints the number of Keys and Values.pdf
 
(Pskip)-skip.pdf
(Pskip)-skip.pdf(Pskip)-skip.pdf
(Pskip)-skip.pdf
 
(In C++) In a linked list containing student names (string) and their.pdf
(In C++) In a linked list containing student names (string) and their.pdf(In C++) In a linked list containing student names (string) and their.pdf
(In C++) In a linked list containing student names (string) and their.pdf
 
(Multiple answers) Choose all of the following that are considered ris.pdf
(Multiple answers) Choose all of the following that are considered ris.pdf(Multiple answers) Choose all of the following that are considered ris.pdf
(Multiple answers) Choose all of the following that are considered ris.pdf
 
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf
(Multiple answers) Choose all that are risk factors for CVD- HTN famil.pdf
 
(ii) There were 500 insects in the total population- In this populatio.pdf
(ii) There were 500 insects in the total population- In this populatio.pdf(ii) There were 500 insects in the total population- In this populatio.pdf
(ii) There were 500 insects in the total population- In this populatio.pdf
 
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf
(i) When the savings rate is 1-3- what is the fiscal multiplier (you c.pdf
 
(In java) Create a method to delete a node at a particular position i.pdf
(In java)  Create a method to delete a node at a particular position i.pdf(In java)  Create a method to delete a node at a particular position i.pdf
(In java) Create a method to delete a node at a particular position i.pdf
 
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf
(Exercise 3-- See pages 24+40 of Interpreting earth History (A manual.pdf
 
(D) It identifies if the company will be able to pay its current debts.pdf
(D) It identifies if the company will be able to pay its current debts.pdf(D) It identifies if the company will be able to pay its current debts.pdf
(D) It identifies if the company will be able to pay its current debts.pdf
 
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf
(E) cumulative effect of a change in accounting principle- 1 OF 15 QUE.pdf
 
(c) Draw a state machine specifying the operations for a Queue using t (1).pdf
(c) Draw a state machine specifying the operations for a Queue using t (1).pdf(c) Draw a state machine specifying the operations for a Queue using t (1).pdf
(c) Draw a state machine specifying the operations for a Queue using t (1).pdf
 
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf
(d) (2 points) Let X1-X2-X3 be independent identicaly distributed N(0-.pdf
 
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf
(CC) SLO2 - Business Opportunity Identification Describe how to -ident.pdf
 
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf
(a) -10 marks- When the Central Bank purchases Government bonds held b.pdf
 
(25 points) Provide an example of a specific piece of spyware- Explain.pdf
(25 points) Provide an example of a specific piece of spyware- Explain.pdf(25 points) Provide an example of a specific piece of spyware- Explain.pdf
(25 points) Provide an example of a specific piece of spyware- Explain.pdf
 

Recently uploaded

The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringDenish Jangid
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesTechSoup
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXMIRIAMSALINAS13
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 

Recently uploaded (20)

The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security Services
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 

(This task uses Strings-) A program that prompts the user for their pa.pdf

  • 1. (This task uses Strings:) A program that prompts the user for their party affiliation (Democrat, Republican, or Independent) and responds accordingly with a Donkey, Elephant, Person, or Other. (i.e. "You get a Democratic Donkey.") Notes: create a menu so the user chooses D, R, or I and assume that any other choice will be Other. Tests: just the four options D, R, I, Other. Use as cascaded if structure not separate if statements! Test runs: (insert the output widow copies here for the 4 test runs)