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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started