sample output
Testing will now begin...
Testing Sandwich functions...
Sandwich created with default constructor is:
# animals = 1, # oz bacon = 2, # pickles = 0, cheese = n, sauce = n,
pathogen = n, price = $2.25
Sandwich created with parameterized constructor is:
# animals = 3, # oz bacon = 2, # pickles = 1, cheese = y, sauce = y,
pathogen = n, price = $4.35
Parameterized sandwich (output using member variable accessors):
# animals = 3, # oz bacon = 2, # pickles = 1, cheese = y, sauce = y,
pathogen = n, price = $4.35
After incrementing price, # animals, # pickles, and # oz bacon by 1:
# animals = 4, # oz bacon = 3, # pickles = 2, cheese = y, sauce = y,
pathogen = n, price = $5.35
Testing Customer functions...
Customer created with default constructor is:
Homer Simpson: assets = $58.00 weight = 143.0 cholesterol = 152.0 alive = y
Customer (output using member variable accessors):
Homer Simpson: assets = $58.00 weight = 143.0 cholesterol = 152.0 alive = y
Customer's cash after adding $10 is $68.00
Customer's cash after setting to $0 is $0.00
Customer's cash after trying to set to -$1 is $0.00
Customer's weight after adding 10 lbs is 153.00
Customer's weight after changing to 0 lbs is 0.00
Customer's weight after changing to -10 lbs is 0.00
Customer's cholesterol after adding 10 is 162.00
Customer's cholesterol after changing to 0 is 162.00
Testing selection of customer names:
Customer name chosen is: Marge Simpson
Customer name chosen is: Bart Simpson
Customer name chosen is: Lisa Simpson
Customer name chosen is: Krusty the Clown
Customer name chosen is: Seymour Skinner
Customer name chosen is: Ralph Wiggum
Customer name chosen is: Ned Flanders
Customer name chosen is: Fat Tony
Customer name chosen is: Sideshow Bob
Customer name chosen is: Nelson Muntz
Customer name chosen is: Sideshow Mel
Customer name chosen is: Radioactive Man
Customer name chosen is: Jimbo Jones
Customer name chosen is: Dr. Hibbert
Customer name chosen is: Homer Simpson
Customer name chosen is: Marge Simpson
Testing Customer with Sandwich functions...
Created the following Sandwich:
# animals = 3, # oz bacon = 1, # pickles = 4, cheese = n, sauce = n,
pathogen = n, price = $4.25
Created the following Customer:
Bart Simpson: assets = $66.00 weight = 122.0 cholesterol = 280.0 alive = y
Customer after sandwich eaten is:
Bart Simpson: assets = $61.75 weight = 125.6 cholesterol = 289.6 alive = y
Created the following Sandwich:
# animals = 1, # oz bacon = 3, # pickles = 3, cheese = n, sauce = y,
pathogen = n, price = $3.60
Created the following Customer:
Lisa Simpson: assets = $61.00 weight = 239.0 cholesterol = 285.0 alive = y
Customer after sandwich eaten is:
Lisa Simpson: assets = $57.40 weight = 242.0 cholesterol = 300.0 alive = y
Created the following Sandwich:
# animals = 4, # oz bacon = 3, # pickles = 1, cheese = y, sauce = y,
pathogen = n, price = $5.60
Created the following Customer:
Krusty the Clown: assets = $32.00 weight = 195.0 cholesterol = 45.0 alive = y
Customer after sandwich eaten is:
Krusty the Clown: assets = $26.40 weight = 207.2 cholesterol = 68.5 alive = y
Created the following Sandwich:
# animals = 0, # oz bacon = 0, # pickles = 0, cheese = n, sauce = y,
pathogen = n, price = $0.60
Created the following Customer:
Seymour Skinner: assets = $57.00 weight = 113.0 cholesterol = 159.0 alive = y
Customer after sandwich eaten is:
Seymour Skinner: assets = $56.40 weight = 115.1 cholesterol = 170.3 alive = y
Created the following Sandwich:
# animals = 3, # oz bacon = 4, # pickles = 1, cheese = n, sauce = y,
pathogen = n, price = $5.10
Created the following Customer:
Ralph Wiggum: assets = $32.00 weight = 128.0 cholesterol = 166.0 alive = y
Customer after sandwich eaten is:
Ralph Wiggum: assets = $26.90 weight = 136.4 cholesterol = 187.1 alive = y
Created the following Sandwich:
# animals = 4, # oz bacon = 0, # pickles = 2, cheese = y, sauce = y,
pathogen = n, price = $4.35
Created the following Customer:
Ned Flanders: assets = $33.00 weight = 102.0 cholesterol = 140.0 alive = y
Customer after sandwich eaten is:
Ned Flanders: assets = $28.65 weight = 112.8 cholesterol = 149.7 alive = y
Created the following Sandwich:
# animals = 2, # oz bacon = 3, # pickles = 4, cheese = n, sauce = y,
pathogen = n, price = $4.60
Created the following Customer:
Fat Tony: assets = $48.00 weight = 202.0 cholesterol = 111.0 alive = y
Customer after sandwich eaten is:
Fat Tony: assets = $43.40 weight = 206.2 cholesterol = 125.7 alive = y
Created the following Sandwich:
# animals = 2, # oz bacon = 2, # pickles = 0, cheese = y, sauce = n,
pathogen = y, price = $3.25
Created the following Customer:
Sideshow Bob: assets = $34.00 weight = 197.0 cholesterol = 59.0 alive = y
>>> Customer just died from pathogens in sandwich!
Customer after sandwich eaten is:
Sideshow Bob: assets = $30.75 weight = 200.7 cholesterol = 86.8 alive = n
Created the following Sandwich:
# animals = 3, # oz bacon = 2, # pickles = 2, cheese = y, sauce = n,
pathogen = y, price = $4.50
Created the following Customer:
Nelson Muntz: assets = $47.00 weight = 147.0 cholesterol = 37.0 alive = y
>>> Customer just died from pathogens in sandwich!
Customer after sandwich eaten is:
Nelson Muntz: assets = $42.50 weight = 152.7 cholesterol = 51.6 alive = n
Created the following Sandwich:
# animals = 4, # oz bacon = 4, # pickles = 4, cheese = n, sauce = n,
pathogen = n, price = $6.50
Created the following Customer:
Sideshow Mel: assets = $63.00 weight = 214.0 cholesterol = 88.0 alive = y
Customer after sandwich eaten is:
Sideshow Mel: assets = $56.50 weight = 223.0 cholesterol = 108.6 alive = y
Created the following Sandwich:
# animals = 2, # oz bacon = 4, # pickles = 3, cheese = y, sauce = y,
pathogen = n, price = $5.10
Created the following Customer:
Radioactive Man: assets = $64.00 weight = 226.0 cholesterol = 94.0 alive = y
Customer after sandwich eaten is:
Radioactive Man: assets = $58.90 weight = 232.6 cholesterol = 112.8 alive = y
Created the following Sandwich:
# animals = 1, # oz bacon = 1, # pickles = 1, cheese = y, sauce = y,
pathogen = n, price = $2.35
Created the following Customer:
Jimbo Jones: assets = $62.00 weight = 96.0 cholesterol = 257.0 alive = y
Customer after sandwich eaten is:
Jimbo Jones: assets = $59.65 weight = 99.7 cholesterol = 265.9 alive = y
Created the following Sandwich:
# animals = 4, # oz bacon = 1, # pickles = 2, cheese = y, sauce = y,
pathogen = n, price = $4.85
Created the following Customer:
Dr. Hibbert: assets = $30.00 weight = 169.0 cholesterol = 181.0 alive = y
Customer after sandwich eaten is:
Dr. Hibbert: assets = $25.15 weight = 179.9 cholesterol = 195.4 alive = y
Created the following Sandwich:
# animals = 3, # oz bacon = 3, # pickles = 1, cheese = y, sauce = n,
pathogen = n, price = $4.75
Created the following Customer:
Homer Simpson: assets = $65.00 weight = 215.0 cholesterol = 77.0 alive = y
Customer after sandwich eaten is:
Homer Simpson: assets = $60.25 weight = 221.6 cholesterol = 100.0 alive = y
Created the following Sandwich:
# animals = 2, # oz bacon = 1, # pickles = 4, cheese = n, sauce = y,
pathogen = n, price = $3.60
Created the following Customer:
Marge Simpson: assets = $46.00 weight = 247.0 cholesterol = 242.0 alive = y
Customer after sandwich eaten is:
Marge Simpson: assets = $42.40 weight = 250.2 cholesterol = 252.6 alive = y
Testing has completed.