Trouble Getting Raiseamount Newsalary Display Debugging Showed Issues Program Confused Get Q43779853
I am having some trouble with getting the RaiseAmount andNewSalary to display, debugging showed no issues with the programbut just confused on how to get the correct values to display tothe user.
#include <iostream>
using namespace std;
int main()
{
//Declare variables and constants
double CurrentSalary = 0;
double Raise = 0;
int RaiseAmount = 0;
int NewSalary = 0;
//Prompt the user for current salaryinput
cout << “Enter current salary: “;
cin >> CurrentSalary;
//Deciding what percentage raise for newsalary based on current salary
if (CurrentSalary <= 14999.99)
{
Raise = .05;
}
else
if (15000.00 <=CurrentSalary <= 49999.99)
{
Raise = .07;
}
else
if (50000.00 <= CurrentSalary <= 99999.99)
{
Raise = .10;
}
else
if (CurrentSalary >= 100000.00)
{
Raise = .15;
}
//Display the Raise amount and the newsalary
RaiseAmount = CurrentSalary * Raise;
cout << RaiseAmount;
NewSalary = CurrentSalary *RaiseAmount;
cout << NewSalary;
} //end of main
#include <iostream> using namespace std; Oint 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 << “Enter current salary: “; cin >> CurrentSalary; //Deciding what percentage raise for new salary based on current salary if (CurrentSalary <= 14999.99) Raise = .05; } else if (15000.00 <= CurrentSalary <= 49999.99), Raise = .07; Raise = .07; else if (50000.00 <= CurrentSalary <= 99999.99), { Raise = .10; else if (CurrentSalary >= 100000.00) i Raise = .15; //Display the Raise amount and the new salary RaiseAmount = CurrentSalary * Raise; cout << RaiseAmount; NewSalary = Current Salary * RaiseAmount ; cout << NewSalary; } //end of main Show transcribed image text #include using namespace std; Oint 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
Expert Answer
Answer to I am having some trouble with getting the RaiseAmount and NewSalary to display, debugging showed no issues with the prog…
OR