Alright so I have Java HW where I need to make some programs.
If you can get anyone of these HW problems to work,
I will greatly scratch your back to reward the help!!!PM me for any additional details or questions you have

. LMK if you are able to be of service

Here are the 3 questions:
1. Coin Toss SimulatorWrite a class named Coin. The Coin class should have the following field:
• A String named sideUp. The sideUp field will hold either “heads” or “tails” indicating the side of the coin that is facing up.
The Coin class should have the following methods:
• A no-arg constructor that randomly determines the side of the coin that is
facing up (“heads” or “tails”) and initializes the sideUp field accordingly.
• A void method named toss that simulates the tossing of the coin. When the
toss method is called, it randomly determines the side of the coin that is facing
up (“heads” or “tails”) and sets the sideUp field accordingly.
• A method named getSideUp that returns the value of the sideUp field.
Write a program that demonstrates the Coin class. The program should create an instance
of the class and display the side that is initially facing up. Then, use a loop to toss the
coin 20 times. Each time the coin it tossed, display the side that is facing up. The program
should keep count of the number of times heads is facing up and the number of times tails
is facing up, and display those values after the loop finishes.
2. Complex classCreate a class called Complex for performing arithmetic with complex numbers.
Complex numbers have the form
realPart + imaginaryPart * i (e.g., a + bi)
where i is : 1
The class should contain:
• Two double data fields x and y that represent the real and imaginary part of a
complex number.
• A no-arg constructor that creates a complex number (0 + 0i).
• A constructor that creates a Complex object with specified real and
imaginary part of the complex number.
• Two get methods for data fields x and y, respectively.
• A method named add that returns the addition of this complex number with
another. Complex numbers are added by adding the real and imaginary parts
of the summands. That is to say:
(a+bi) + (c+di) = (a+c) + (b+d)i
The method is: public Complex add(Complex c) {}
• A method named subtract that returns the subtraction of this complex
number with another. Subtraction is defined by:
(a+bi) + (c+di) = (a-c) + (b-d)i
The method is: public Complex subtract(Complex c) {}
• A method named multiply that returns the multiplication of this complex
with another. The multiplication of two complex numbers is defined by the
following formula:
( a+bi )( c+di ) = ( ac – bd ) + ( bc + ad )i
The method is: public Complex multiply(Complex c) {}
• A toString() method that prints a Complex object in the form (a)+(b)i, where
a is the real part and b is the imaginary part.
3. FlowerCounterA flower stand has ten kinds of flowers – petunia, pansy, rose, violet, carnation,
lily, poppy, daisy, tulip, and hydrangea are stocked and cost, respectively, 50¢,
75¢, $1.50, 75¢, 85¢, $1.25, $2.15, 85¢, $2.75, and $1.30 per flower.
Create a class called Flowers that contains:
• A string data field named name for flower name.
• A double field named price for the flower price.
• A constructor that constructs a Flowers object with a specified name and
price.
• A method named getName() that returns the name of the flower.
• A method named getPrice() that returns the price of the flower.
Write a program named FlowerCounter that contains an array of 10 Flowers
objects and fill in it with the data given above accordingly. In your program, the
user should read the name of a flower and the quantity desired by a customer.
Locate the flower name in the array and use that index to find the cost per stem.
Compute and print each kind of the flower’s cost and the total cost of the sale. In
your program, a message should be displayed if the user enters a flower name
that doesn’t include on the list