Answer to Question #261392 in C++ for maks

Question #261392

write a c++ program to "Find the 3% total salaries of John, Paul and Simon."


1
Expert's answer
2021-11-05T01:12:58-0400
#include<iostream>
using namespace std;
int main(){
	double j_salary = 30000;
	double p_salary = 4000;
	double s_salary = 7000;
	
	cout<<"3% of John salary is:  "<<j_salary * 0.03<<endl;
	cout<<"3% of Paul salary is:  "<<p_salary * 0.03<<endl;
	cout<<"3% of Simon salary is:  "<<s_salary * 0.03<<endl;
}

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