Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedimage text in transcribed

#include 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 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

#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 = 100000.00) i Raise = .15; //Display the Raise amount and the new salary RaiseAmount = CurrentSalary * Raise; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago