Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AssignmentPg.78.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- Float Item1, Item2, Item3, Item4, Item5, Subtotal, SalesTax, Total;
- Item1 = 12.95;
- Item2 = 24.95;
- Item3 = 6.95;
- Item4 = 14.95;
- Item5 = 3.95;
- Subtotal = Item1 + Item2 + Item3 + Item4 + Item5;
- SalesTax = Subtotal * 0.06;
- Total = Subtotal + SalesTax;
- cout << "Item 1 = $" << Item1 << endl;
- cout << "Item 2 = $" << Item2 << endl;
- cout << "Item 3 = $" << Item3 << endl;
- cout << "Item 4 = $" << Item4 << endl;
- cout << "Item 5 = $" << Item5 << endl;
- cout << "Subtotal = $" << Subtotal << endl;
- cout << "SalesTax = $" << SalesTax << endl;
- cout << "Total = $" << Total << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement