Question
At the beginning of every year, Khalid receives a raise on his previous year's salary. He wants a program that calculates and displays the amount
At the beginning of every year, Khalid receives a raise on his previous year's salary. He
wants a program that calculates and displays the amount of his annual raises for the
next three years, using rates of 3%, 4%, 5%, and 6%. The program should end when
Khalid enters a sentinel value as the salary.
a.
Create an IPO chart for the problem, and then desk-check the algorithm using
annual salaries of 30000 and 50000, followed by your sentinel value.
b.
List the input, processing, and output items, as well as the algorithm, in a chart
similar to the one shown earlier in Figure 8-16. Then code the algorithm into a
program.
c.
Desk-check the program using the same data used to desk-check the algorithm.
d.
If necessary, create a new project named Intermediate18 Project, and save it in
the Cpp8\Chap08 folder. Enter your C++ instructions into a source file named
Intermediate18.cpp. Also enter appropriate comments and any additional
instructions required by the compiler.
e.
Save and then run the program. Test the program using the same data used to
desk-check the program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started