bartBorzeckiLabWeek2

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

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

View Full Document Right Arrow Icon
Bart Borzecki Week 2 Lab CIS 170 k November 10, 2008
Background image of page 1

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

View Full DocumentRight Arrow Icon
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; }
Background image of page 2
Problem 2 Source Code(Average Rainfall) #include <iostream> #include <ostream> using namespace std;
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/06/2011 for the course CIS 115 taught by Professor Leipus during the Spring '08 term at DeVry Tinley Park.

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 Right Arrow Icon
Ask a homework question - tutors are online