This assignment has 4 sub-sections.
Use the JOptionPane class for all required input/output.
a) Write a superclass called Shape (as shown in the class diagram), which contains:
· Two instance variables color (String) and filled (boolean).
· Two constructors: a no-arg (no-argument) constructor that initializes the color to "green" and filled to true, and a constructor that initializes the color and filled to the given values.
· Getter and setter for all the instance variables. By convention, the getter for a boolean variable xxx is called isXXX() (instead of getXxx() for all the other types).
· A toString() method that returns "A Shape with color of xxx and filled/Not filled".
Write a test program to test all the methods defined in Shape.
Match the terms in column B with a statement in column A A B
1. In equation 7x + 2y − 4 = 45,4 is the a. Base
2. The number in front of a variable b. Product
3. When 2 numbers are multiplied the answer is the c. Coefficient
4. In equation 53 = 125,5 is the d. Constant
[1] 1-d 2-b 3-a 4-c
[2] 1-d 2-c 3-b 4-a
[3] 1-a 2-c 3-b 4-d
[4] 1-c 2-b 3-d 4-a
If a school bus moves 1600 meters at an average speed of 12 m/s, how long did the journey take?
An ac circuit consists of a resistance and capacitance connected in series. The result is that
Gillbert got a new job in a shoe store. The number of pairs of shoes he was able to sell for three days are 2, 4, and 5. Assume that samples of size 2 are randomly selected with replacement from this population of three values.
a. List down the 9 different possible samples.
b. Find the mean of each sample.
c. Find the mean of the sampling distribution of means.
d. Identify the probability of each sample.
e. Find the population mean.
f. Compare the population mean with the mean of the sampling distribution of means.
Use the equations below to answer the following questions
P=60-1/3Qd
2p=40+2/5Qs
Calculate the equilibrium price and quantity
If the is set at p=40,state whether it is a price ceiling or price floor and calculate the size of imbalance
Calculate the price elasticity of demand and supply
What is returns to scale
What would happen if the temperature of the sample at point B of the phase diagram of water is decreased at constant pressure?
Name seven strategies use to evade the host's immune attack
Compare the morphology of three primary spices of human schistomes