Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me out. And can you plz add more methods to the code in Java the more the better he said thank you!!! Page

Please help me out. And can you plz add more methods to the code in Java the more the better he said thank you!!! image text in transcribed
image text in transcribed
Page 1) Enhance the program shown on next page. Create 2 classes. One class name is paintJa This main class should have main method inside it. Create a second Class QlumicGamcRcsults This class MUST be a class other than the mainClass. It means you MUST have 2 classes. If any student submits class then he/she would get 0 points. Create following methods in the class 1xnicGameResults setCountries Ask user what are the names of countries? Then use Scanner to get value from user. A user might enter 5 or 10 or more countries. DO NOT hard code the names of countries. setMedalsask user about Medals names. Usually, user will enter Gold, Silver and Bronze setCount ask user what medals USA or other countries have won, how many Gold or Silver or Bronze? DO NOT hard code number of medals as shown below; like Canada has 2 Gold. User might enter 5, 10 or more Gold medals for Canada Data in the table is just for example purpose. getResul1 // this method should show the result in a tabular form as shown below. moteictbodscreate more methods of your choice such as gstCountricso, gstucdals etc. More methods are appreciated. If you create 1 or 2 more method(s) you would get 0.25 Bonus Points for each method. Call or use these methods from/inside the main method ofmainClass. The properties such as COUNTRIES, MEDALS, counts, countNam or others MUST be declared inside Class QlmicGamcRcsults, These MUST NOT be declared inside the class of main method Output should be like this (you do not need to show the country flag or color of Gold, Silver and Bronze). Notice that there are two (2) totals shown in the table on the next page. Medal table Gold Siver Bronze Total Canada (CAN) United States (USA) Australia (AUS) Belanus (BLR) Switzerland (SU) China (CHN Nonway (NOR) -Austria (AUT France CFRA Total 18

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

More Books

Students also viewed these Databases questions