SlideShare a Scribd company logo
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.pdf
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 
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
ynitin691
 

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

Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 

Recently uploaded (20)

Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 

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