Exercises 8. Gabrielle receives 52 paychecks each year. She always deposits a sp
ID: 3597863 • Letter: E
Question
Exercises 8. Gabrielle receives 52 paychecks each year. She always deposits a specific percentage of her gross pay into her savings account. She also receives a bonus check, which is always more than $250, at the end of the year. She always deposits $150 of her bonus into her savings account. Gabrielle wants a program that calculates and displays the total amount she deposited during the year. Complete an IPO chart for this problem. Desk-check the algorithm twice, using your own sets of data. After desk-checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and then enter the appropriate C++ declaration statements 9. Cranston Berries sells three types of berries: strawberries, blueberries, and raspberries. Sales have been booming this year and are expected to increase next year. The sales manager wants a program that allows him to enter the projected increase (expressed as 8 then enter the appropriate C++ declaration statements. a decimal number) in berry sales for the folowing year. He will also enter the current year's sales for each type of berry. The in. i should display the projected sales for each berry type. Complete an IPO chars ket thus problem. Desk-check the algorithm twice, using your own sets of data. Aiter desk -checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and m that calculates and displays the number of miles per gallon heExplanation / Answer
Below is the program IPO chart that exaplain the behaviour of the program and after that the complete program.if any doubt please reply.
C++ Program
#include<iostream>
using namespace std;
int main()
{
int salary=52;
float savingfromsalary;
int bonus=250;
float savingfronbonus=150;
float totalsaving;
cout<<"Enter percentage saving from salary";
cin>>savingfromsalary;
totalsaving=(52-(52*savingfromsalary)/100)+savingfronbonus;
cout<<"Total Earning is:"<<"$"<<salary+bonus<<endl;
cout<<"Total saving is:"<<"$"<<totalsaving;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.