Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Easier option) Thai kickboxing . Write a program KickBoxer.java that takes an integer weight w as an input and prints the corresponding kickboxing weight-class according

(Easier option) Thai kickboxing. Write a program KickBoxer.java that takes an integer weight w as an input and prints the corresponding kickboxing weight-class according to the table below.

weight class from to(not inclusive)

------------------------------------

Fly Weight 0 112

Super Fly Weight 112 115

Bantam Weight", 115 118

Super Bantam Weight 118 122

Feather Weight 122 126

Super Feather Weight 126 130

Light Weight 130 135

Super Light Weight 135 140

Welter Weight 140 147

Super Welter Weight 147 154

Middle Weight 154 160

Super Middle Weight 160 167

Light Heavy Weight 167 174

Super Light Heavy Weight 174 183

Cruiser Weight 183 189

Super Cruiser Weight 189 198

Heavy Weight 198 209

Super Heavy Weight 209

Use an integer array to store the weight limits and a string array to store the weight categories (ranging from Flyweight to Super Heavyweight, you may use acronyms to store the weight class).

In main method of your program,

  • Initialize an integer array and a string array to store weight limit and weight class
  • Generate a random number between 112~209 inclusive, display the number
  • Call the qualifyWeight method to determine the weight class
  • Then display the weight class.

Signature of the method is like:

public String qualifyWeight(String [] wc, int [] limits, int weight)

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago