Question #308440

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


Expert's answer





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

LATEST TUTORIALS
APPROVED BY CLIENTS