Question
I am having some trouble with getting the RaiseAmount and NewSalary to display, debugging showed no issues with the program but just confused on how
I am having some trouble with getting the RaiseAmount and NewSalary to display, debugging showed no issues with the program but just confused on how to get the correct values to display to the user.
#include
int main() { //Declare variables and constants double CurrentSalary = 0; double Raise = 0; int RaiseAmount = 0; int NewSalary = 0;
//Prompt the user for current salary input cout > CurrentSalary;
//Deciding what percentage raise for new salary based on current salary if (CurrentSalary = 100000.00) { Raise = .15; }
//Display the Raise amount and the new salary RaiseAmount = CurrentSalary * Raise; cout
NewSalary = CurrentSalary * RaiseAmount; cout
} //end of main
#includeStep 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