SlideShare a Scribd company logo
1 of 1
Download to read offline
Question 2 Given the following series, write a complete program that prompts the user for the
maximum value of n and the prints the first n+l terms. Your program should also calculate and
output the sum of the series at 2n. 1+20,2+21,3+22,4+23,(n+1)+2n

More Related Content

More from ynitin691

QUESTION 2 25 Marks Undertake a literature review of quie.pdf
QUESTION 2 25 Marks Undertake a literature review of quie.pdfQUESTION 2 25 Marks Undertake a literature review of quie.pdf
QUESTION 2 25 Marks Undertake a literature review of quie.pdfynitin691
 
Question 2 21 During the process of gene expression two ma.pdf
Question 2 21 During the process of gene expression two ma.pdfQuestion 2 21 During the process of gene expression two ma.pdf
Question 2 21 During the process of gene expression two ma.pdfynitin691
 
Question 2 15 points Suppose the government decides to red.pdf
Question 2 15 points Suppose the government decides to red.pdfQuestion 2 15 points Suppose the government decides to red.pdf
Question 2 15 points Suppose the government decides to red.pdfynitin691
 
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdf
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdfQUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdf
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdfynitin691
 
QUESTION 2 28 marks You are an employee at a medium sized .pdf
QUESTION 2 28 marks You are an employee at a medium sized .pdfQUESTION 2 28 marks You are an employee at a medium sized .pdf
QUESTION 2 28 marks You are an employee at a medium sized .pdfynitin691
 
Question 2 10 point Consider a broadcast channel with N no.pdf
Question 2 10 point Consider a broadcast channel with N no.pdfQuestion 2 10 point Consider a broadcast channel with N no.pdf
Question 2 10 point Consider a broadcast channel with N no.pdfynitin691
 
Question 2 15 MARKS The following is Ubuntu statement of f.pdf
Question 2 15 MARKS The following is Ubuntu statement of f.pdfQuestion 2 15 MARKS The following is Ubuntu statement of f.pdf
Question 2 15 MARKS The following is Ubuntu statement of f.pdfynitin691
 
Question 2 14 points The simplest way to virtualize memor.pdf
Question 2 14 points The simplest way to virtualize memor.pdfQuestion 2 14 points The simplest way to virtualize memor.pdf
Question 2 14 points The simplest way to virtualize memor.pdfynitin691
 
Question 2 15 Marks The plans which are derived for the o.pdf
Question 2 15 Marks The plans which are derived for the o.pdfQuestion 2 15 Marks The plans which are derived for the o.pdf
Question 2 15 Marks The plans which are derived for the o.pdfynitin691
 
Question 2 The Emergence of Global Institutions Ch 1 Why.pdf
Question 2  The Emergence of Global Institutions Ch 1 Why.pdfQuestion 2  The Emergence of Global Institutions Ch 1 Why.pdf
Question 2 The Emergence of Global Institutions Ch 1 Why.pdfynitin691
 
Question 19 A malware that encrypts your computers data and.pdf
Question 19 A malware that encrypts your computers data and.pdfQuestion 19 A malware that encrypts your computers data and.pdf
Question 19 A malware that encrypts your computers data and.pdfynitin691
 
Question 19 10pts Find the present worth of the cash rece.pdf
Question 19 10pts Find the present worth of the cash rece.pdfQuestion 19 10pts Find the present worth of the cash rece.pdf
Question 19 10pts Find the present worth of the cash rece.pdfynitin691
 
Question 19 2 points The process scope diagram looks pri.pdf
Question 19 2 points   The process scope diagram looks pri.pdfQuestion 19 2 points   The process scope diagram looks pri.pdf
Question 19 2 points The process scope diagram looks pri.pdfynitin691
 
Question 19 5 Minutes and 5 Points Consider the followin.pdf
Question 19 5 Minutes and 5 Points Consider the followin.pdfQuestion 19 5 Minutes and 5 Points Consider the followin.pdf
Question 19 5 Minutes and 5 Points Consider the followin.pdfynitin691
 
QUESTION 18 Jer works in a Home and Community Care environme.pdf
QUESTION 18 Jer works in a Home and Community Care environme.pdfQUESTION 18 Jer works in a Home and Community Care environme.pdf
QUESTION 18 Jer works in a Home and Community Care environme.pdfynitin691
 
Question 16 1 point Table Fazio and Gabriellas opportun.pdf
Question 16 1 point Table Fazio and Gabriellas opportun.pdfQuestion 16 1 point Table Fazio and Gabriellas opportun.pdf
Question 16 1 point Table Fazio and Gabriellas opportun.pdfynitin691
 
Question 16 The three basic shapes of prokaryotes are and Q.pdf
Question 16 The three basic shapes of prokaryotes are and Q.pdfQuestion 16 The three basic shapes of prokaryotes are and Q.pdf
Question 16 The three basic shapes of prokaryotes are and Q.pdfynitin691
 
Question 18 4 points What is the output of the following c.pdf
Question 18 4 points What is the output of the following c.pdfQuestion 18 4 points What is the output of the following c.pdf
Question 18 4 points What is the output of the following c.pdfynitin691
 
Question 16 2 points BPMN provides businesses with the c.pdf
Question 16 2 points   BPMN provides businesses with the c.pdfQuestion 16 2 points   BPMN provides businesses with the c.pdf
Question 16 2 points BPMN provides businesses with the c.pdfynitin691
 
question 14 Earths water and atmosphere were most likely b.pdf
question 14  Earths water and atmosphere were most likely b.pdfquestion 14  Earths water and atmosphere were most likely b.pdf
question 14 Earths water and atmosphere were most likely b.pdfynitin691
 

More from ynitin691 (20)

QUESTION 2 25 Marks Undertake a literature review of quie.pdf
QUESTION 2 25 Marks Undertake a literature review of quie.pdfQUESTION 2 25 Marks Undertake a literature review of quie.pdf
QUESTION 2 25 Marks Undertake a literature review of quie.pdf
 
Question 2 21 During the process of gene expression two ma.pdf
Question 2 21 During the process of gene expression two ma.pdfQuestion 2 21 During the process of gene expression two ma.pdf
Question 2 21 During the process of gene expression two ma.pdf
 
Question 2 15 points Suppose the government decides to red.pdf
Question 2 15 points Suppose the government decides to red.pdfQuestion 2 15 points Suppose the government decides to red.pdf
Question 2 15 points Suppose the government decides to red.pdf
 
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdf
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdfQUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdf
QUESTION 2 13 MARKS 21 Differentiate between fibrous prot.pdf
 
QUESTION 2 28 marks You are an employee at a medium sized .pdf
QUESTION 2 28 marks You are an employee at a medium sized .pdfQUESTION 2 28 marks You are an employee at a medium sized .pdf
QUESTION 2 28 marks You are an employee at a medium sized .pdf
 
Question 2 10 point Consider a broadcast channel with N no.pdf
Question 2 10 point Consider a broadcast channel with N no.pdfQuestion 2 10 point Consider a broadcast channel with N no.pdf
Question 2 10 point Consider a broadcast channel with N no.pdf
 
Question 2 15 MARKS The following is Ubuntu statement of f.pdf
Question 2 15 MARKS The following is Ubuntu statement of f.pdfQuestion 2 15 MARKS The following is Ubuntu statement of f.pdf
Question 2 15 MARKS The following is Ubuntu statement of f.pdf
 
Question 2 14 points The simplest way to virtualize memor.pdf
Question 2 14 points The simplest way to virtualize memor.pdfQuestion 2 14 points The simplest way to virtualize memor.pdf
Question 2 14 points The simplest way to virtualize memor.pdf
 
Question 2 15 Marks The plans which are derived for the o.pdf
Question 2 15 Marks The plans which are derived for the o.pdfQuestion 2 15 Marks The plans which are derived for the o.pdf
Question 2 15 Marks The plans which are derived for the o.pdf
 
Question 2 The Emergence of Global Institutions Ch 1 Why.pdf
Question 2  The Emergence of Global Institutions Ch 1 Why.pdfQuestion 2  The Emergence of Global Institutions Ch 1 Why.pdf
Question 2 The Emergence of Global Institutions Ch 1 Why.pdf
 
Question 19 A malware that encrypts your computers data and.pdf
Question 19 A malware that encrypts your computers data and.pdfQuestion 19 A malware that encrypts your computers data and.pdf
Question 19 A malware that encrypts your computers data and.pdf
 
Question 19 10pts Find the present worth of the cash rece.pdf
Question 19 10pts Find the present worth of the cash rece.pdfQuestion 19 10pts Find the present worth of the cash rece.pdf
Question 19 10pts Find the present worth of the cash rece.pdf
 
Question 19 2 points The process scope diagram looks pri.pdf
Question 19 2 points   The process scope diagram looks pri.pdfQuestion 19 2 points   The process scope diagram looks pri.pdf
Question 19 2 points The process scope diagram looks pri.pdf
 
Question 19 5 Minutes and 5 Points Consider the followin.pdf
Question 19 5 Minutes and 5 Points Consider the followin.pdfQuestion 19 5 Minutes and 5 Points Consider the followin.pdf
Question 19 5 Minutes and 5 Points Consider the followin.pdf
 
QUESTION 18 Jer works in a Home and Community Care environme.pdf
QUESTION 18 Jer works in a Home and Community Care environme.pdfQUESTION 18 Jer works in a Home and Community Care environme.pdf
QUESTION 18 Jer works in a Home and Community Care environme.pdf
 
Question 16 1 point Table Fazio and Gabriellas opportun.pdf
Question 16 1 point Table Fazio and Gabriellas opportun.pdfQuestion 16 1 point Table Fazio and Gabriellas opportun.pdf
Question 16 1 point Table Fazio and Gabriellas opportun.pdf
 
Question 16 The three basic shapes of prokaryotes are and Q.pdf
Question 16 The three basic shapes of prokaryotes are and Q.pdfQuestion 16 The three basic shapes of prokaryotes are and Q.pdf
Question 16 The three basic shapes of prokaryotes are and Q.pdf
 
Question 18 4 points What is the output of the following c.pdf
Question 18 4 points What is the output of the following c.pdfQuestion 18 4 points What is the output of the following c.pdf
Question 18 4 points What is the output of the following c.pdf
 
Question 16 2 points BPMN provides businesses with the c.pdf
Question 16 2 points   BPMN provides businesses with the c.pdfQuestion 16 2 points   BPMN provides businesses with the c.pdf
Question 16 2 points BPMN provides businesses with the c.pdf
 
question 14 Earths water and atmosphere were most likely b.pdf
question 14  Earths water and atmosphere were most likely b.pdfquestion 14  Earths water and atmosphere were most likely b.pdf
question 14 Earths water and atmosphere were most likely b.pdf
 

Recently uploaded

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 

Question 2 Given the following series write a complete prog.pdf

  • 1. Question 2 Given the following series, write a complete program that prompts the user for the maximum value of n and the prints the first n+l terms. Your program should also calculate and output the sum of the series at 2n. 1+20,2+21,3+22,4+23,(n+1)+2n