answersLogoWhite

0

#include<iostream>

#include<iomanip>

#include<limits.h>

int main()

{

using std::cout;

using std::fixed;

using std::setw;

using std::endl;

double salary=12345.67;

cout.precision(2);

cout<<"Old salary:\t$"<<fixed<<setw(8)<<salary<<endl;

// 2% 2.0)

double raise=salary*2.0;

// Round up or down as appropriate

raise=(raise-floor(raise))>=0.5?ceil(raise):floor(raise);

// Scale back by 100

raise/=100;

cout<<"2% raise:\t$"<<fixed<<setw(8)<<raise<<endl;

salary+=raise;

cout<<"New salary:\t$"<<fixed<<setw(8)<<salary<<endl;

}

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is the salary of normal show hosts in Pakistan like entertainment shows?

Salary of anchorpersons is very high. Normally they are paid on monthly basis plus per program.


What is the answer to this cent plus cent plus scent equals 35128?

18376


How to write a program that converts inches into centimeters feet yards and meters in C plus plus?

#include &lt;iostream&gt; using namespace std; int main() { double meter, cent; cout&lt;&lt;"Enter value in meters"; cin&gt;&gt;meter; cent=meter*100; cout&lt;&lt;meter&lt;&lt;" meters"&lt;&lt;" = "&lt;&lt;cent&lt;&lt;" centimeters; system("pause"); return 0; } to convert more than one number put the whole program in a for loop


How do you use salary in a sentence?

The new job offered a huge increase in basic salary plus productivity bonuses but I refused it on ethical principles.The wall street CEO collected a large salary this year, despite the company filing for bankruptcy.


A weekly salary of 475 plus a 5.5 commission on sales at a gift shop how much would he earn in a week if he sold 700 in goods round to the nearest cent?

If that's 5.5%, the total is $513.50


What is a dime plus a nickel?

15 cent


In these addends each letter represents a single digit Find the numbers CENT plus Cent plus Scent equals 35128?

SCENT = 18376


How to restart c plus plus program?

Exit the program and relaunch it.


What was the president's salary in 2001?

Salary was set at $400,000 base plus expenses in 2001.


Can you program games with c plus plus?

Yes, you can program games with C++.


Is there an answer book for the A plus program?

The A Plus Program is an initiative, not a test. So no, there is no answer book.


What does cent plus vingt in french equal?

120!!!