{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

bartBorzeckiLabWeek2

# bartBorzeckiLabWeek2 - Bart Borzecki Week 2 Lab CIS 170 k...

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

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

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

View Full Document
Problem 1 Source Code(Stadium Seating) #include <iostream> #include <ostream> using namespace std; int main() { int a = 15; int b = 12; int c = 9; double aNumTickets 0.0; double bNumTickets 0.0; double cNumTickets 0.0; int aTotalIncome; int bTotalIncome; int cTotalIncome; aTotalIncome = aNumTickets * a; bTotalIncome = bNumTickets * b; cTotalIncome = cNumTickets * c; cout << "Enter number of Class A Tickets: " ; cin >> aNumTickets; cout << "Class A Sales Profit " << fixed << setprecision(2) << aTotalIncome; cout << endl; cout << "Enter number of Class B Tickets: " ; cin >> bNumTickets; cout << "Class B Sales Profit " << fixed << setprecision(2) << bTotalIncome; cout << endl; cout << "Enter number of Class C Tickets: " ; cin >> cNumTickets; cout << "Class C Sales Profit " << fixed << setprecision(2) << cTotalIncome; cout << endl; return 0; }
Problem 2 Source Code(Average Rainfall) #include <iostream> #include <ostream> using namespace std;

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 5

bartBorzeckiLabWeek2 - Bart Borzecki Week 2 Lab CIS 170 k...

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

View Full Document
Ask a homework question - tutors are online