Question: Java: code a value-receiving method called costumes() that receives a number for a party event. Inside this method is a switch statement that tests partyEvent
Java: code a value-receiving method called costumes() that receives a number for a party event. Inside this method is a switch statement that tests partyEvent so when partyEvent is 1 the value returning method valenties is called; when 2 the value returning method mariGras is called; when 3 the value returning method halloween is called; and when it is not any of the above the message"The Party you want is not planned!" is displayed. THe methods valentines, mardiGras, and halloween return the number of attendees for each respective party event which are added to a global variable called totalAttendees that is already declared.
*doesn't run infinintely*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
