Question: Hi, I need help with this assignment, just a heads up that the score is generated using .random. and no user data input is required.

Hi, I need help with this assignment, just a heads up that the score is generated using .random. and no user data input is required.

In this assignment, we will design a system for Miss World competition.Miss World competition involves in three qualifying rounds: interview, swimsuit, and eveninggown competitions. The best 5, probably, will enter to the final roundto decide the final winners; but we are only interested in thequalifying round for this assignment to decide the ranking of all thebeautiful ladies representing their countries. Let us look at a simple UML

In this assignment, we will design a system for Miss World competition. Miss World competition involves in three qualifying rounds: interview, swimsuit, and evening gown competitions. The best 5, probably, will enter to the final round to decide the final winners; but we are only interested in the qualifying round for this assignment to decide the ranking of all the beautiful ladies representing their countries. Let us look at a simple UML diagram for this assignment: Country -String name -String missName Q-int age 11name MissWorld + static in1 SIZE -Country name -double score -double ef -double 1s -String name -String missName -int age 1..1 Three classes: Country class, MissWorld class and a main class. We will look at their details later. Convenient to your design, additional class(es) and methods is/are allowed; additional instance variables ARE NOT ALLOWED. Let us now look at the detail of each class. Basically each class has private instance variables, constructors, accessor methods, mutator methods and some other methods related to the class(es). Methods are either public or private; you should specify them clearly in your implementation. Let us start with the Country class: Country Your Name A3 -final Strinell Countries -final Strinell Titles +Country(String name, String missName, int age) +String getName( +String getMissName( +int getAge( +void setInfo(String name, String missName, int age) It is a simple class consisting of three private instance variables: name (of a country), missName (name of contestant) and age (of contestant). A constructor to initialize the instance variables, some accessor methods and a mutator method. Additional methods are allowed. Additional instance variables or any change to instance variables are not allowed.

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

here is the answer for the multiple choice question The correct answer is Accessor methods These met... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!