Java Coding
1
***INVALID & VALID PARTY & FAVOR CHOICES*** Party Themes 1. Anniversary 2. Birthday 3. Graduation Enter your theme: 4 Invalid theme! Try again. Party Themes 1. Anniversary 2. Birthday 3. Graduation Enter your theme: 1 How many people will be invited to your Anniversary party? 10 Make your party favor selections. The cost is per guest. 1. Party Favors for Women $3.00 2. Party Favors for Men $3.00 3. Party Favors for Kids $2.00 4. Party Favors for Teenages $3.00 5. Exit Enter your choice: 1 How many of your guests are women? 4 Do you want to make another party favor selection? Enter Y or N: Y Make your party favor selections. The cost is per guest. 1. Party Favors for Women $3.00 2. Party Favors for Men $3.00 3. Party Favors for Kids $2.00 4. Party Favors for Teenages $3.00 5. Exit Enter your choice: 2 How many of your guests are men? 5 Do you want to make another party favor selection? Enter Y or N: N The number of favors you bought doesn't equal the number of guests. Run through the selection of the favors again. Make your party favor selections. The cost is per guest. 1. Party Favors for Women $3.00 2. Party Favors for Men $3.00 3. Party Favors for Kids $2.00
2
4. Party Favors for Teenages $3.00 5. Exit Enter your choice: 1 How many of your guests are women? 5 Do you want to make another party favor selection? Enter Y or N: y Make your party favor selections. The cost is per guest. 1. Party Favors for Women $3.00 2. Party Favors for Men $3.00 3. Party Favors for Kids $2.00 4. Party Favors for Teenages $3.00 5. Exit Enter your choice: 2 How many of your guests are men? 5 Do you want to make another party favor selection? Enter Y or N: n Party: Anniversary Cost: $150.00