salary - cin >> tax cout...

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 DocumentRight 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 &gt;&gt; tax cout &lt;&lt; endl cout &lt;&lt; &quot;Other Deduction:&quot; cin &gt;&gt; otherdeduc cout &lt;&lt; endl gross =days*rate tax=(tax/100)*gross totaldeduc=tax+otherdeduc net=gross-totaldeduc cout &lt;&lt; &quot;Total Deduction:&quot; &lt;&lt; &quot;P&quot; &lt;&lt; totaldeduc &lt;&lt; endl cout &lt;&lt; &quot;Gross Salary:&quot; &lt;&lt; &quot;P&quot; &lt;&lt; gross &lt;&lt; endl cout &lt;&lt; &quot;Net Salary:&quot;&lt;&lt; &quot;P&quot; &lt;&lt; net &lt;&lt; endl return 0 }...
View Full Document

Page1 / 2

salary - cin &amp;amp;gt;&amp;amp;gt; tax cout...

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