Using Java.  Now follow the instructions below to create a new program named GarysGrassPros: Open Eclipse. Create a New  -> Java project.  Name it GarysGrassPros and click Finish and OK. Next, create a New -> Class.  Name it GarysGrassPros and be sure to check the first checkbox under "Which method stubs would you like to create?" and click Finish. Delete the green comment text in the file "GarysGrassPros.java" Add a comment at the top // (your name) Add another comment at the top // Project 5 Add code to the program file "GarysGrassPros .java" use several methods to facilitate pricing of jobs for a landscaping company.  The methods should be coded as follows: method main(): has its usual method heading and its code will display the following messsages and logic: Welcome to GarysGrassPros... we will get your yard looking beautiful this spring!! We have the best grass growing, lawn cutting, and mulching plans for you. What are you interested in getting pricing for?  Enter 'g' for grass growing, 'c' for lawn cutting, or 'm' for mulching: *method main should use an if-else-if statement to call one of three methods:  grassGrowing(), lawnCutting() or mulching() based on the user input.  When it gets data back from a method, it should print an appropriate message: The pricing for your (plan) job is:  $(value)   method grassGrowing(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2=halfAcre, 3=threeQuarterAcre, 4=fullAcre).  Based on the user input, it determines the price per fertilizer grass growing treament and returns this value back as a double.   Pricing is as follows:  quarterAcre yard = $50, halfAcre yard = $75, threeQuarterAcre yard = $100, and fullAcre yard = $120 method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2=halfAcre, 3=threeQuarterAcre, 4=fullAcre).  Based on the user input, it determines the price per lawn cut and returns this value back as a double.    Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, threeQuarterAcre yard = $70, and fullAcre = $90 method mulching(): Takes in no data. It asks the user to enter the square footage of the area they would like mulched (between 450 -1800 sq ft).  Based on the user input,  it calculates the number of cubic yards of mulch needed to mulch the area, assume 1 cubic yard will mulch 150.0 sqft.  Round up or down as needed because partial cubic yards cannot be ordered. Once the number of cubic yards is determined, this method should ask the user what type of mulch they want (1=hemlock, 2=bark, 3=pine).  Based on the user input, it computes the price of the mulch order and returns this value back as a double. Pricing is as follows:  hemlock = $45/cubic yard, bark = $40/cubic yard, pine = $30 cubic yard *Requirement: Use one Scanner object for all your methods, define this above the main method:    final static Scanner scan = new Scanner(System.in);         *note this is only to be used for constants, not variables. (CHECK PHOTO ATTACHED FOR CLEAR PHOTO OF INSTRUCTIONS)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Using Java. 

Now follow the instructions below to create a new program named GarysGrassPros:

      1. Open Eclipse.
      2. Create a New  -> Java project.  Name it GarysGrassPros and click Finish and OK.
      3. Next, create a New -> Class.  Name it GarysGrassPros and be sure to check the first checkbox under "Which method stubs would you like to create?" and click Finish.
      4. Delete the green comment text in the file "GarysGrassPros.java"
      5. Add a comment at the top // (your name)
      6. Add another comment at the top // Project 5
      7. Add code to the program file "GarysGrassPros .java" use several methods to facilitate pricing of jobs for a landscaping company.  The methods should be coded as follows:
      • method main(): has its usual method heading and its code will display the following messsages and logic:

Welcome to GarysGrassPros... we will get your yard looking beautiful this spring!!
We have the best grass growing, lawn cutting, and mulching plans for you.
What are you interested in getting pricing for?  Enter 'g' for grass growing, 'c' for lawn cutting, or 'm' for mulching:

*method main should use an if-else-if statement to call one of three methods:  grassGrowing()lawnCutting() or mulching() based on the user input.  When it gets data back from a method, it should print an appropriate message:

The pricing for your (plan) job is:  $(value)

 

      • method grassGrowing(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2=halfAcre, 3=threeQuarterAcre, 4=fullAcre).  Based on the user input, it determines the price per fertilizer grass growing treament and returns this value back as a double.  
          • Pricing is as follows:  quarterAcre yard = $50, halfAcre yard = $75, threeQuarterAcre yard = $100, and fullAcre yard = $120
      • method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2=halfAcre, 3=threeQuarterAcre, 4=fullAcre).  Based on the user input, it determines the price per lawn cut and returns this value back as a double.   
          • Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, threeQuarterAcre yard = $70, and fullAcre = $90
      • method mulching(): Takes in no data. It asks the user to enter the square footage of the area they would like mulched (between 450 -1800 sq ft).  Based on the user input,  it calculates the number of cubic yards of mulch needed to mulch the area, assume 1 cubic yard will mulch 150.0 sqft.  Round up or down as needed because partial cubic yards cannot be ordered. Once the number of cubic yards is determined, this method should ask the user what type of mulch they want (1=hemlock, 2=bark, 3=pine).  Based on the user input, it computes the price of the mulch order and returns this value back as a double.
          • Pricing is as follows:  hemlock = $45/cubic yard, bark = $40/cubic yard, pine = $30 cubic yard
*Requirement: Use one Scanner object for all your methods, define this above the main method:   
final static Scanner scan = new Scanner(System.in);         *note this is only to be used for constants, not variables.

(CHECK PHOTO ATTACHED FOR CLEAR PHOTO OF INSTRUCTIONS) 

Bb Upload X
←
C
Play CX G Messa x | ► (61) Ycx |
blackboard.bentley.edu/webapps/assignment/uploadAssignment?course_id=_26942_1&content_id=_2102275_1&group_id=&mo...
D²L Login X Pricing X
LOVE IS IN THE.pdf
Mail- X
Google X
▪ method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre,
2-halfAcre, 3=three QuarterAcre, 4=fullAcre). Based on the user input, it determines the price per lawn cut and returns
this value back as a double.
New Ta X
■ Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, threeQuarterAcre yard = $70, and fullAcre
= $90
▪ method mulching(): Takes in no data. It asks the user to enter the square footage of the area they would like
mulched (between 450 -1800 sq ft). Based on the user input, it calculates the number of cubic yards of mulch needed
to mulch the area, assume 1 cubic yard will mulch 150.0 sqft. Round up or down as needed because partial cubic yards
cannot be ordered. Once the number of cubic yards is determined, this method should ask the user what type of mulch
they want (1=hemlock, 2=bark, 3=pine). Based on the user input, it computes the price of the mulch order and returns
this value back as a double.
Pricing is as follows: hemlock = $45/cubic yard, bark = $40/cubic yard, pine = $30 cubic yard
Here are some sample runs:
Welcome to Gary Grass Pros... we will get your yard looking beautiful this spring!!
We have the best grass growing, lawn cutting, and mulching plans for you!!
LOVE IS IN THE.....pdf
*Requirement: Use one Scanner object for all your methods, define this above the main method:
final static Scanner scan = new Scanner(System.in); *note this is only to be used for constants, not
variables.
*Hint: Java's Math class has a method named round() that will round a value up or down. Google to see
how to use it.
*Test your program to see if the results are correct.
*Check your code against the checklist before submission
What are you interested in getting pricing for?
Enter 'g' for grass growing, 'c' for lawn cutting, or 'm' for mulching: t
Invalid choice...program ended.
Weekly X
Welcome to Gary Grass Pros... we will get your yard looking beautiful this spring!!
We have the best grass growing, lawn cutting, and mulching plans for you!!
Micros X
When finished, make sure to click Submit.
Optionally, click Save as Draft to save changes and continue working later, or click Cancel to quit without saving changes.
Screenshot 202....png
W CS240AzureFo....docx
W= Assignment2B....docx
S
2023- X
Cancel
h
b My Qux | +
Save Draft
S
Submit
Update :
Show All
X
Transcribed Image Text:Bb Upload X ← C Play CX G Messa x | ► (61) Ycx | blackboard.bentley.edu/webapps/assignment/uploadAssignment?course_id=_26942_1&content_id=_2102275_1&group_id=&mo... D²L Login X Pricing X LOVE IS IN THE.pdf Mail- X Google X ▪ method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2-halfAcre, 3=three QuarterAcre, 4=fullAcre). Based on the user input, it determines the price per lawn cut and returns this value back as a double. New Ta X ■ Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, threeQuarterAcre yard = $70, and fullAcre = $90 ▪ method mulching(): Takes in no data. It asks the user to enter the square footage of the area they would like mulched (between 450 -1800 sq ft). Based on the user input, it calculates the number of cubic yards of mulch needed to mulch the area, assume 1 cubic yard will mulch 150.0 sqft. Round up or down as needed because partial cubic yards cannot be ordered. Once the number of cubic yards is determined, this method should ask the user what type of mulch they want (1=hemlock, 2=bark, 3=pine). Based on the user input, it computes the price of the mulch order and returns this value back as a double. Pricing is as follows: hemlock = $45/cubic yard, bark = $40/cubic yard, pine = $30 cubic yard Here are some sample runs: Welcome to Gary Grass Pros... we will get your yard looking beautiful this spring!! We have the best grass growing, lawn cutting, and mulching plans for you!! LOVE IS IN THE.....pdf *Requirement: Use one Scanner object for all your methods, define this above the main method: final static Scanner scan = new Scanner(System.in); *note this is only to be used for constants, not variables. *Hint: Java's Math class has a method named round() that will round a value up or down. Google to see how to use it. *Test your program to see if the results are correct. *Check your code against the checklist before submission What are you interested in getting pricing for? Enter 'g' for grass growing, 'c' for lawn cutting, or 'm' for mulching: t Invalid choice...program ended. Weekly X Welcome to Gary Grass Pros... we will get your yard looking beautiful this spring!! We have the best grass growing, lawn cutting, and mulching plans for you!! Micros X When finished, make sure to click Submit. Optionally, click Save as Draft to save changes and continue working later, or click Cancel to quit without saving changes. Screenshot 202....png W CS240AzureFo....docx W= Assignment2B....docx S 2023- X Cancel h b My Qux | + Save Draft S Submit Update : Show All X
Bb Upload X
←
C
D21 Login X Pricing | Mail X
Faculty Profile
Tools
Play CX G Messa × | ▸ (61) Yc x
blackboard.bentley.edu/webapps/assignment/uploadAssignment?course_id=_26942_1&content_id=_2102275_1&group_id=&mo...
Student Support Services
Weekly Presentations on
Topics in Technology
LOVE IS IN THE.pdf
Google X
Read Chapter 5 pages #269- 306 and review the Chapter 5 slides.
Now follow the instructions below to create a new program named GarysGrassPros:
New Ta X
1. Open Eclipse.
2. Create a New -> Java project. Name it GarysGrassPros and click Finish and OK.
3. Next, create a New -> Class. Name it GarysGrassPros and be sure to check the first checkbox under "Which method
stubs would you like to create?" and click Finish.
4. Delete the green comment text in the file "GarysGrassPros.java"
5. Add a comment at the top // (your name)
Weekly X
6. Add another comment at the top // Project 5
7. Add code to the program file "GarysGrassPros .java" use several methods to facilitate pricing of jobs for a landscaping
company. The methods should be coded as follows:
▪ method main(): has its usual method heading and its code will display the following messsages and logic:
Welcome to GarysGrassPros... we will get your yard looking beautiful this spring!!
We have the best grass growing, lawn cutting, and mulching plans for you.
What are you interested in getting pricing for? Enter 'g' for grass growing, 'c' for lawn cutting, or 'm'
for mulching:
LOVE IS IN THE.....pdf
Micros X
*method main should use an if-else-if statement to call one of three methods: grassGrowing(),
lawnCutting() or mulching() based on the user input. When it gets data back from a method, it should
print an appropriate message:
The pricing for your (plan) job is: $(value)
▪ method grassGrowing(): Takes in no data. It asks the user to enter the size of their lawn (1-quarterAcre,
2-halfAcre, 3=threeQuarterAcre, 4-fullAcre). Based on the user input, it determines the price per fertilizer grass
growing treament and returns this value back as a double.
■ Pricing is as follows: quarterAcre yard = $50, halfAcre yard = $75, threeQuarterAcre yard = $100, and
fullAcre yard = $120
▪ method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre,
2-halfAcre, 3=threeQuarterAcre, 4-fullAcre). Based on the user input, it determines the price per lawn cut and returns
this value back as a double.
When finished, make sure to click Submit.
Optionally, click Save as Draft to save changes and continue working later, or click Cancel to quit without saving changes.
Screenshot 202....png
Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, three QuarterAcre yard = $70, and fullAcre
= $90
W CS240AzureFo....docx
W= Assignment2B....docx
S
2023- X
Cancel
h
b My Qux | +
Save Draft
S
Submit
Update :
Show All
X
Transcribed Image Text:Bb Upload X ← C D21 Login X Pricing | Mail X Faculty Profile Tools Play CX G Messa × | ▸ (61) Yc x blackboard.bentley.edu/webapps/assignment/uploadAssignment?course_id=_26942_1&content_id=_2102275_1&group_id=&mo... Student Support Services Weekly Presentations on Topics in Technology LOVE IS IN THE.pdf Google X Read Chapter 5 pages #269- 306 and review the Chapter 5 slides. Now follow the instructions below to create a new program named GarysGrassPros: New Ta X 1. Open Eclipse. 2. Create a New -> Java project. Name it GarysGrassPros and click Finish and OK. 3. Next, create a New -> Class. Name it GarysGrassPros and be sure to check the first checkbox under "Which method stubs would you like to create?" and click Finish. 4. Delete the green comment text in the file "GarysGrassPros.java" 5. Add a comment at the top // (your name) Weekly X 6. Add another comment at the top // Project 5 7. Add code to the program file "GarysGrassPros .java" use several methods to facilitate pricing of jobs for a landscaping company. The methods should be coded as follows: ▪ method main(): has its usual method heading and its code will display the following messsages and logic: Welcome to GarysGrassPros... we will get your yard looking beautiful this spring!! We have the best grass growing, lawn cutting, and mulching plans for you. What are you interested in getting pricing for? Enter 'g' for grass growing, 'c' for lawn cutting, or 'm' for mulching: LOVE IS IN THE.....pdf Micros X *method main should use an if-else-if statement to call one of three methods: grassGrowing(), lawnCutting() or mulching() based on the user input. When it gets data back from a method, it should print an appropriate message: The pricing for your (plan) job is: $(value) ▪ method grassGrowing(): Takes in no data. It asks the user to enter the size of their lawn (1-quarterAcre, 2-halfAcre, 3=threeQuarterAcre, 4-fullAcre). Based on the user input, it determines the price per fertilizer grass growing treament and returns this value back as a double. ■ Pricing is as follows: quarterAcre yard = $50, halfAcre yard = $75, threeQuarterAcre yard = $100, and fullAcre yard = $120 ▪ method lawnCutting(): Takes in no data. It asks the user to enter the size of their lawn (1=quarterAcre, 2-halfAcre, 3=threeQuarterAcre, 4-fullAcre). Based on the user input, it determines the price per lawn cut and returns this value back as a double. When finished, make sure to click Submit. Optionally, click Save as Draft to save changes and continue working later, or click Cancel to quit without saving changes. Screenshot 202....png Pricing is as follows: quarterAcre yard = $30, halfAcre yard = $50, three QuarterAcre yard = $70, and fullAcre = $90 W CS240AzureFo....docx W= Assignment2B....docx S 2023- X Cancel h b My Qux | + Save Draft S Submit Update : Show All X
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education