SlideShare a Scribd company logo
1 of 1
Download to read offline
Now we will modify the problem specification slightly. The program should now display the
depreciated values using three different rates: 15%,20%, and 25%. Figure 812 shows the
modified problem specification and C++ code, as well as a sample run of the program. The
modifications made to the original code are shaded in the figure. Notice that the modified code
contains two loops rather than one loop. Both loops are counter-controlled loops, and one is
nested within the other. The outer loop keeps track of the depreciation rates, and the nested loop
keeps track of the years. The flowchart for the modified program is shown in Figure 8-13.
Problem specification Create a program that displays the value of a new car at the end of each of
five years, using annual depreciation rates of 15%,20%, and 25%. int maino f double
originalvalue =0.0 double depreciation =0.0 double currentValue =0.0 cout "Original value: ";
cin originalValue; cout end fixed setprecision (0)
(continued)

More Related Content

Similar to Now we will modify the problem specification slightly. The program sh.pdf

PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docxamrit47
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxsmile790243
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automaMartineMccracken314
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automaAbbyWhyte974
 
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docx
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docxTop of Form1 For problem PE 20-6A, the cost of completed and tr.docx
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docxedwardmarivel
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docxjack60216
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 solIIUM
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manualtamil arasan
 
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...RSathyaPriyaCSEKIOT
 

Similar to Now we will modify the problem specification slightly. The program sh.pdf (11)

PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docx
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
 
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docx
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docxTop of Form1 For problem PE 20-6A, the cost of completed and tr.docx
Top of Form1 For problem PE 20-6A, the cost of completed and tr.docx
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
 
1034113 e 20180411
1034113 e 201804111034113 e 20180411
1034113 e 20180411
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
UNIT-1 notes(Data Types – Variables – Operations – Expressions and Statements...
 

More from americancolorschenna

12.New members want to join the EU Please name economic argumen.pdf
12.New members want to join the EU Please name economic argumen.pdf12.New members want to join the EU Please name economic argumen.pdf
12.New members want to join the EU Please name economic argumen.pdfamericancolorschenna
 
12.6 What are the three different F statistics in a two-way ANOVA.pdf
12.6 What are the three different F statistics in a two-way  ANOVA.pdf12.6 What are the three different F statistics in a two-way  ANOVA.pdf
12.6 What are the three different F statistics in a two-way ANOVA.pdfamericancolorschenna
 
12.A coin with a probability p of heads is tossed independently n t.pdf
12.A coin with a probability p of heads is tossed independently n t.pdf12.A coin with a probability p of heads is tossed independently n t.pdf
12.A coin with a probability p of heads is tossed independently n t.pdfamericancolorschenna
 
12.7=7 b What property does this equation illustrate What is the pr.pdf
12.7=7 b What property does this equation illustrate What is the pr.pdf12.7=7 b What property does this equation illustrate What is the pr.pdf
12.7=7 b What property does this equation illustrate What is the pr.pdfamericancolorschenna
 
12 identical blackboards are distributed among 5 schools. Find the p.pdf
12 identical blackboards are distributed among 5 schools. Find the p.pdf12 identical blackboards are distributed among 5 schools. Find the p.pdf
12 identical blackboards are distributed among 5 schools. Find the p.pdfamericancolorschenna
 
11.Which of the following is Falsea.Bonds backed by an insurance .pdf
11.Which of the following is Falsea.Bonds backed by an insurance .pdf11.Which of the following is Falsea.Bonds backed by an insurance .pdf
11.Which of the following is Falsea.Bonds backed by an insurance .pdfamericancolorschenna
 
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdfamericancolorschenna
 
12-5How can a PERT network be used to increase functional ability to.pdf
12-5How can a PERT network be used to increase functional ability to.pdf12-5How can a PERT network be used to increase functional ability to.pdf
12-5How can a PERT network be used to increase functional ability to.pdfamericancolorschenna
 
11.6 The null hypothesis for ANOVA posits no difference among popul.pdf
11.6 The null hypothesis for ANOVA posits no difference  among popul.pdf11.6 The null hypothesis for ANOVA posits no difference  among popul.pdf
11.6 The null hypothesis for ANOVA posits no difference among popul.pdfamericancolorschenna
 
11.50 Does the black grease beneath football playersSolution .pdf
11.50 Does the black grease beneath football playersSolution    .pdf11.50 Does the black grease beneath football playersSolution    .pdf
11.50 Does the black grease beneath football playersSolution .pdfamericancolorschenna
 
11.5. What is meant by a reduced form of (regression) equation What.pdf
11.5. What is meant by a reduced form of (regression) equation What.pdf11.5. What is meant by a reduced form of (regression) equation What.pdf
11.5. What is meant by a reduced form of (regression) equation What.pdfamericancolorschenna
 
11.44 Focusing on coverage of the 2004 U.S. presidential election, .pdf
11.44 Focusing on coverage of the 2004 U.S. presidential election,  .pdf11.44 Focusing on coverage of the 2004 U.S. presidential election,  .pdf
11.44 Focusing on coverage of the 2004 U.S. presidential election, .pdfamericancolorschenna
 
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdfamericancolorschenna
 
Of all the murder victims in 2010 whose relation to the oftender was .pdf
 Of all the murder victims in 2010 whose relation to the oftender was .pdf Of all the murder victims in 2010 whose relation to the oftender was .pdf
Of all the murder victims in 2010 whose relation to the oftender was .pdfamericancolorschenna
 
Observations and Questions [7] What happens to the pH of the water as.pdf
 Observations and Questions [7] What happens to the pH of the water as.pdf Observations and Questions [7] What happens to the pH of the water as.pdf
Observations and Questions [7] What happens to the pH of the water as.pdfamericancolorschenna
 
Oakwood Properties bought three lots in a subdivision for a hump-.pdf
 Oakwood Properties bought three lots in a subdivision for a hump-.pdf Oakwood Properties bought three lots in a subdivision for a hump-.pdf
Oakwood Properties bought three lots in a subdivision for a hump-.pdfamericancolorschenna
 
Nursing management and leadership Create a three-fold brochure that.pdf
 Nursing management and leadership Create a three-fold brochure that.pdf Nursing management and leadership Create a three-fold brochure that.pdf
Nursing management and leadership Create a three-fold brochure that.pdfamericancolorschenna
 
Number of social media users before and during the COVID-19 crisis. D.pdf
 Number of social media users before and during the COVID-19 crisis. D.pdf Number of social media users before and during the COVID-19 crisis. D.pdf
Number of social media users before and during the COVID-19 crisis. D.pdfamericancolorschenna
 
Nuclear power The following table presents the number of nuclear rea.pdf
 Nuclear power The following table presents the number of nuclear rea.pdf Nuclear power The following table presents the number of nuclear rea.pdf
Nuclear power The following table presents the number of nuclear rea.pdfamericancolorschenna
 
Note the stages of development below. Which of the following represen.pdf
 Note the stages of development below. Which of the following represen.pdf Note the stages of development below. Which of the following represen.pdf
Note the stages of development below. Which of the following represen.pdfamericancolorschenna
 

More from americancolorschenna (20)

12.New members want to join the EU Please name economic argumen.pdf
12.New members want to join the EU Please name economic argumen.pdf12.New members want to join the EU Please name economic argumen.pdf
12.New members want to join the EU Please name economic argumen.pdf
 
12.6 What are the three different F statistics in a two-way ANOVA.pdf
12.6 What are the three different F statistics in a two-way  ANOVA.pdf12.6 What are the three different F statistics in a two-way  ANOVA.pdf
12.6 What are the three different F statistics in a two-way ANOVA.pdf
 
12.A coin with a probability p of heads is tossed independently n t.pdf
12.A coin with a probability p of heads is tossed independently n t.pdf12.A coin with a probability p of heads is tossed independently n t.pdf
12.A coin with a probability p of heads is tossed independently n t.pdf
 
12.7=7 b What property does this equation illustrate What is the pr.pdf
12.7=7 b What property does this equation illustrate What is the pr.pdf12.7=7 b What property does this equation illustrate What is the pr.pdf
12.7=7 b What property does this equation illustrate What is the pr.pdf
 
12 identical blackboards are distributed among 5 schools. Find the p.pdf
12 identical blackboards are distributed among 5 schools. Find the p.pdf12 identical blackboards are distributed among 5 schools. Find the p.pdf
12 identical blackboards are distributed among 5 schools. Find the p.pdf
 
11.Which of the following is Falsea.Bonds backed by an insurance .pdf
11.Which of the following is Falsea.Bonds backed by an insurance .pdf11.Which of the following is Falsea.Bonds backed by an insurance .pdf
11.Which of the following is Falsea.Bonds backed by an insurance .pdf
 
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf
12 marbles are in a bag, 8 are red and 4 are green. 1. If you re.pdf
 
12-5How can a PERT network be used to increase functional ability to.pdf
12-5How can a PERT network be used to increase functional ability to.pdf12-5How can a PERT network be used to increase functional ability to.pdf
12-5How can a PERT network be used to increase functional ability to.pdf
 
11.6 The null hypothesis for ANOVA posits no difference among popul.pdf
11.6 The null hypothesis for ANOVA posits no difference  among popul.pdf11.6 The null hypothesis for ANOVA posits no difference  among popul.pdf
11.6 The null hypothesis for ANOVA posits no difference among popul.pdf
 
11.50 Does the black grease beneath football playersSolution .pdf
11.50 Does the black grease beneath football playersSolution    .pdf11.50 Does the black grease beneath football playersSolution    .pdf
11.50 Does the black grease beneath football playersSolution .pdf
 
11.5. What is meant by a reduced form of (regression) equation What.pdf
11.5. What is meant by a reduced form of (regression) equation What.pdf11.5. What is meant by a reduced form of (regression) equation What.pdf
11.5. What is meant by a reduced form of (regression) equation What.pdf
 
11.44 Focusing on coverage of the 2004 U.S. presidential election, .pdf
11.44 Focusing on coverage of the 2004 U.S. presidential election,  .pdf11.44 Focusing on coverage of the 2004 U.S. presidential election,  .pdf
11.44 Focusing on coverage of the 2004 U.S. presidential election, .pdf
 
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf
11.3Han Lee Furniture, Inc, spends 50 of its sales dollars in the.pdf
 
Of all the murder victims in 2010 whose relation to the oftender was .pdf
 Of all the murder victims in 2010 whose relation to the oftender was .pdf Of all the murder victims in 2010 whose relation to the oftender was .pdf
Of all the murder victims in 2010 whose relation to the oftender was .pdf
 
Observations and Questions [7] What happens to the pH of the water as.pdf
 Observations and Questions [7] What happens to the pH of the water as.pdf Observations and Questions [7] What happens to the pH of the water as.pdf
Observations and Questions [7] What happens to the pH of the water as.pdf
 
Oakwood Properties bought three lots in a subdivision for a hump-.pdf
 Oakwood Properties bought three lots in a subdivision for a hump-.pdf Oakwood Properties bought three lots in a subdivision for a hump-.pdf
Oakwood Properties bought three lots in a subdivision for a hump-.pdf
 
Nursing management and leadership Create a three-fold brochure that.pdf
 Nursing management and leadership Create a three-fold brochure that.pdf Nursing management and leadership Create a three-fold brochure that.pdf
Nursing management and leadership Create a three-fold brochure that.pdf
 
Number of social media users before and during the COVID-19 crisis. D.pdf
 Number of social media users before and during the COVID-19 crisis. D.pdf Number of social media users before and during the COVID-19 crisis. D.pdf
Number of social media users before and during the COVID-19 crisis. D.pdf
 
Nuclear power The following table presents the number of nuclear rea.pdf
 Nuclear power The following table presents the number of nuclear rea.pdf Nuclear power The following table presents the number of nuclear rea.pdf
Nuclear power The following table presents the number of nuclear rea.pdf
 
Note the stages of development below. Which of the following represen.pdf
 Note the stages of development below. Which of the following represen.pdf Note the stages of development below. Which of the following represen.pdf
Note the stages of development below. Which of the following represen.pdf
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

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🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
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 🔝✔️✔️
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
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🔝
 
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...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

Now we will modify the problem specification slightly. The program sh.pdf

  • 1. Now we will modify the problem specification slightly. The program should now display the depreciated values using three different rates: 15%,20%, and 25%. Figure 812 shows the modified problem specification and C++ code, as well as a sample run of the program. The modifications made to the original code are shaded in the figure. Notice that the modified code contains two loops rather than one loop. Both loops are counter-controlled loops, and one is nested within the other. The outer loop keeps track of the depreciation rates, and the nested loop keeps track of the years. The flowchart for the modified program is shown in Figure 8-13. Problem specification Create a program that displays the value of a new car at the end of each of five years, using annual depreciation rates of 15%,20%, and 25%. int maino f double originalvalue =0.0 double depreciation =0.0 double currentValue =0.0 cout "Original value: "; cin originalValue; cout end fixed setprecision (0) (continued)