Implement a general Character superclass to simulate what is common to all characters (a) Implement class data fields to support at least the data fields described above about the game character. (b) Implement a constructor method to initialize any class data fields. (c) Include an abstract method to simulate the character using a special skill. The implementation of this method is intended to be ’filled in’ in the subclasses, where the character has a specific nature and skill set
Write a JavaFX program that meets the following requirements(b) Include a graphical control to accept information for each of the following fields: 1) The textual name of the character 2). The textual nature of the character, e.g. ’good’ or ’evil’ .3) A comma separated, textual list of special skills, badges, achievements items or traits the character has. The list may be of length up to 100 characters (a string type)
Write a JavaFX program that meets the following requirements 1) With your demonstration class, Implement a graphical window to display a game character setup dialog to allow the user to enter data into a visible window in order to set up the character object for the game (a) The dialog must provide a separate visual field for each data field, and include a textual label to the left of each field.
Write a Car class that has constant PI = 3.147, variable capacity, method numberOfRiders with a single parameter of integer type and return nothing and finally have private inner class called Engine. Write default, parameter and Copy constructor for both classes. The engine class has two inner variables fuleType and enginePower. Also write accessors and mutator method for both classes.
Draw UML diagram for Transport, Cars, Aeroplanes, Honda Civic, Tractor, ATR plane, Boeing 747 classes, showing their inheritanc.
Q1: There is 10 Mango in a basket having different weight between 200 to 400 grams. There is a limit of 1000 grams you can pick from basket. You need to write a program to find the maximum weight you can pick. Note: You have to avoid picking 1st, 3rd and 5th Mango as it observed to
Ask the user to enter three of their favourite television shows. Once they have entered there shows, display the results. Use an array to store the three television shows
Write a program using an overloaded function(s) named convert() that work as given below:
i. public void convert(int seconds)
This function converts and displays number of seconds to hour, minutes and seconds
ii. public void convert(double days)
This function converts and displays number of days to years, months and days
Call the above functions from main.
Assume that the coin information is given to you in the form of an ‘n’ element array A. A[i] is a number between 1 and n and A[i] = j means that the j’th smallest pancake is in position i from the top; in other words A[1] is the size of the top most coin (relative to the others) and
A[n] is the size of the bottommost coin.
operation(A, n) should be assumed to be O(1) can be used directly in pseudo code, it flips first n coins.
Consider a pile of coins. You have given ‘n’ coins of different sizes and you want to sort the pile so that smaller coins are on the top of larger ones. The only “operation” you are allowed to perform is- take top ‘k’ coins together, and place them back to the pile upside down