Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

imageimageimageimageimageimage

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

Step: 1

here is the answer for the multiple choice question The correct answer is Accessor methods These met... 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

Managerial Accounting Decision Making and Performance Management

Authors: Ray Proctor

4th edition

273764489, 978-0273764489

More Books

Students also viewed these Programming questions

Question

Find 1!, 2!, 4!, and 6!.

Answered: 1 week ago