-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSalesTaxCalculator.cpp
More file actions
35 lines (33 loc) · 1.01 KB
/
SalesTaxCalculator.cpp
File metadata and controls
35 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//CSC114-651
//Student: Christopher Yonek (700642859)
//Assignment: Create a program that calculates various sales tax.
//Date: September 2018
#include "pch.h"
#include <iostream>
#include <cmath>
#include <iomanip>
#include <conio.h>
#include <string>
using namespace std;
int main()
{
string month, year;
int registerCollection;
cout << " Enter the month, the year, and amount collected at register:\n";
cin >> month;
cin >> year;
cin >> registerCollection;
cout << "Month: " << month << endl;
cout << "Year: " << year << endl;
cout << "Total Collected: " << registerCollection << endl;
double countyTax = registerCollection * .02;
cout << "County Sales Tax: " << countyTax << endl;
double statesales = registerCollection * .04;
cout << "State Sales Tax: " << statesales << endl;
double totalSales = registerCollection * .06;
cout << "Total Sales Tax: " << totalSales << endl;
int sales = registerCollection - totalSales;
cout << "Sales: " << sales << endl;
_getch();
return 0;
}