Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Please :) Use this with the solution A dance club is conducting auditions to admit interested candidates. You need to implement a Participant class

Java Please :) image text in transcribed
image text in transcribed
image text in transcribed
Use this with the solution
image text in transcribed
A dance club is conducting auditions to admit interested candidates. You need to implement a Participant class for the dance club based on the class diagram and description given below. Participant counter int registrationid: String name String contact Number: long city: String Participant(name String contact Number: long, city: String) getRegistrationid: String .getCounter int stCounter counter int): vold .getName(): String seName name String void getContact Number long se contact Number(contact Number ongle void .getCity: String setCity city Stringli void ( Method Description Partcipant(String name, long contact Number, String city) Initialize the name, contact Number and city instance variables appropriately with the values passed to the constructor Generate the registrationid using the static variable counter. The value of registrationed should start from '010001 and the numerical part should be incremented by 1 for the subsequent values. Initialize the counter in static block values. Initialize the counter in static block. Implement the appropriate getter and setter methods. Test the functionalities using the provided Tester class. Create two or more Participant objects and validate that the values of the member variables are proper. Sample Input and Output For constructor Input For first Participant object Parameters Values name Franklin contact Number 7656784323L city Texas For second Participant object Parameters Values name Merina contact Number 7890423112 city New York class Participant 1/Implement your code here 1 class Tester public static void main(String[] args) Participant participanti new Participant("Franklin 7656784323) Texas"); Participant participant2 new Participant("Merina7898423112L, New York"); 2 Create more objects and then to the participants array for testing your code Participants participants participanti, participant 2 : For Participant participant : participants) System.out.println("participant.getName+ Your Meistration la participant.getRegistration (3) 3 39

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions