Question: (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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!