salary - cin>> tax cout<< endl...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 SALARY #include <iostream> #include <string> using namespace std int main() { string name, rank float days float rate float tax float otherdeduc float totaldeduc float gross float net cout << "Name:" cin >> name cout << endl cout << "Rank:" cin >> rank cout << endl cout << "Days Worked:" cin >> days cout << endl cout << "Rate Per Day:" cin >> rate cout << endl
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sheet1 Page 2 cout << "Tax:"
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> tax cout << endl cout << "Other Deduction:" cin >> otherdeduc cout << endl gross =days*rate tax=(tax/100)*gross totaldeduc=tax+otherdeduc net=gross-totaldeduc cout << "Total Deduction:" << "P" << totaldeduc << endl cout << "Gross Salary:" << "P" << gross << endl cout << "Net Salary:"<< "P" << net << endl return 0 }...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

salary - cin>> tax cout<< endl...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online