Answer to Question #308440 in C++ for abdulahi

Question #308440

program that calculates and displays the income tax of a salary entered from the keyboard in c++


1
Expert's answer
2022-03-09T06:39:34-0500




#include <iostream>
#include <string>
using namespace std;




int main() {


	float salary;
	float incomeTax;
	


	cout<<"Enter salary: ";
	cin>>salary;
	incomeTax=salary*0.15;


	cout<<"The income tax (15%) is: " <<incomeTax<<"\n";




	system("pause");


	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