Answer to Question #218212 in C++ for ivan

Question #218212
Aiden Nelinski is paid every Friday and will receive either a 2.0% or 2.5% raise next week • He wants a program that calculates and displays the amount of his new weekly pay
1
Expert's answer
2021-07-17T10:41:26-0400
#include <iostream>
using namespace std;


int main()
{
	double pay;//Paid
	double am_new;//the amount of his new weekly pay +2.0%
	double am_new2;//the amount of his new weekly pay +2.5%
	cout << "Enter paid: ";
	cin >> pay;
	am_new = pay + (pay * 2.0) / 100.0;
	am_new2 = pay + (pay * 2.5) / 100.0;
	cout << "+2.0%=" << am_new << endl;
	cout << "+2.5%=" << am_new2 << endl;
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS