{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

bartBorzeckiLabWeek1

# bartBorzeckiLabWeek1 - 0 Problem 3 Source Code(Sales...

This preview shows pages 1–3. Sign up to view the full content.

Bart Borzecki November 10, 2008 CIS 170 k Lab Week 1

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

View Full Document
Problem 1 Source Code (Sum of Two Numbers) #include <iostream> #include <ostream> using namespace std; int main() { int a = 62; int b = 99; int total; total = a + b; cout << "The Sum Of " << a << " and " << b << " is " << total << endl; return 0; } Problem 2 Source Code(Sales Prediction) #include <iostream> #include <ostream> using namespace std; int main() { int percentTotalSales = 62; int yearlyTotal = 4,600,000; int total; total = (percentTotalSales * yearlyTotal) / 100; cout << "Amount generated from sales this year is " << total << endl;
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0; } Problem 3 Source Code(Sales Tax) #include <iostream> #include <ostream> using namespace std; int main() { double stateTaxRate = .04; double countyTaxRate = .02; int purchase = 52; int totalTax; int stateTax; int countyTax; stateTax = stateTaxRate * purchase; cout << "Amount of State Tax " << stateTax << endl; countyTax = countyTaxRate * purchase; cout << "Amount of County Tax " << countyTax << endl; totalTax = stateTax + countyTax; cout << "Total Amount of Tax " << totalTax << endl; return 0; }...
View Full Document

{[ snackBarMessage ]}

### Page1 / 3

bartBorzeckiLabWeek1 - 0 Problem 3 Source Code(Sales...

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

View Full Document
Ask a homework question - tutors are online