If you DON'T know Java. Please pass it on to someone who does! Help with Java assignment, please. I can't get the expect

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

If you DON'T know Java. Please pass it on to someone who does! Help with Java assignment, please. I can't get the expect

Post by answerhappygod »

If you DON'T know Java. Please pass it on to someone who
does!
Help with Java assignment, please. I can't get the
expected output correct. Thanks! The output
MUST be exactly as I
stated.
Design and construct a complete program for Gene's Green. Use
the methods that you created in the previous Individual
Assignments.
Additional Methods
You may also find it helpful to design and write some additional
methods to do each of the following:
Each of the methods described in the list above could call one
or more of the methods you already wrote (e.g. areaOfRectangle,
areaOfCircle, etc.) as helper methods to compute some needed
values.
You will also need to implement the code necessary to collect
and store the program inputs. Then you will need to implement the
code that will call your methods to compute all the required
program outputs. Finally, you will need to implement the code to
print out a nicely formatted report with all of the information
that Gene needs.
Here are some examples of what Gene should see when he runs your
program.
Example of expected output 1
Example of expected output 2
Make sure that your program collects the two required inputs in
this order:
Helpful Hints:
More details:
Problem Description and Given Info
Gene's Green Golf Center is remodeling their golf course, and
has hired you to help write a program that will be used to
determine what materials will be needed to complete the project.
There are 18 holes on the golf course, but Gene likes to keep
things simple, so every hole looks very similar. A typical Hole at
Gene's Green Golf Center looks like the image below - only the
length and width change
If You Don T Know Java Please Pass It On To Someone Who Does Help With Java Assignment Please I Can T Get The Expect 1
If You Don T Know Java Please Pass It On To Someone Who Does Help With Java Assignment Please I Can T Get The Expect 1 (47.61 KiB) Viewed 33 times
Given the length and width of a hole (in yards), Gene needs to
know the following:
The program should take, as inputs from the user, the length and
the width of a hole (both in yards). The program should then
perform all necessary calculations and produce a tidy report with
all of the required information regarding materials needed to
construct the hole.
N.B. Formula for How to get sandTrap Area:
public class GenesGreen {
public static void main(String[] args) {
// you may wish to write some code in this
main method
System.out.printf("%.2f",
areaOfSandTrap(7.5));// to test your method.
}

// include your areaOfCircle method definition
below
public static double areaOfCircle(double diameter)
{
double area = 3.1415/4 * (diameter *
diameter);
return area;
}
// write your areaOfSandTrap method definition
below
public static double areaOfSandTrap(double
width){
double diameter = width / 4;
double totalSandTrapArea =
areaOfCircle(diameter);
return totalSandTrapArea;
}
}
N.B. Formula for How to get teeArea:
public class GenesGreen {
public static void main(String[] args) {
// you may wish to write some code in this
main method
System.out.printf("%.2f", areaOfTee(8.0));//
to test your method.
}

// include your areaOfCircle method definition
below
public static double areaOfCircle (double diameter)
{
double area = 3.1415/4 * (diameter *
diameter);
return area;
}

// write your areaOfTee method definition below
public static double areaOfTee(double width) {
double diameter = width / 3;
double totalTeeArea =
areaOfCircle(diameter);
return totalTeeArea;
}
}
Exit Trail Width Brick Retaining Wall Bushes 00 000000000 Putting Green Sand Trap Rough Sod Smooth Sod Length ne Smooth Sod Tee Entry Trail
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply