This is what I have to do
This is what I have so far and I seriously don't know if any of it is right. I am basing it off an example program we did that is doing a similar thing.
Am I heading in the right direction?
this is the example program I am basing it off of
Your neighbor’s teenage son currently cuts your yard every ten days. Your beautiful front yard is a perfect rectangle, with the street measurement being 48 feet and the driveway side being 32 feet. Your current cost to have it fully cut and manicured is $50.50 every ten days. A new lawn service will do the same job for $0.30 per square yard, with an 8% discount, if you agree to allow them to do your yard for 9 consecutive times. You are to write a Java program to determine which one is the best deal. Now adapt your program to allow you to input values at runtime for any yard in your property portfolio. See additional notes below:
• Total feet (area) of the yard must be converted to square yards for calculation purposes. A Google search for "calculate area of rectangle" and "feet to square yards conversion" will provide the necessary information. There a several ways you might setup your calculations.
• The data types chosen will potentially have a slight affect on the results. The sample output assumes that the street measurement (width), driveway measurement (length), area of the yard, and square yardage are whole numbers; while the lawn service price, lawn service discount, and discounted lawn service price are floating-point values
• Give careful consideration on how named constants can be incorporated into your program for current cost, lawn service cost per square yard, and discount rate; all are assumed to be floating-point values
• It is not necessary to format for a particular number of decimal places at this time or for the dollar sign symbol, $, which is simply embedded in the character string of the print statement
• Total feet (area) of the yard must be converted to square yards for calculation purposes. A Google search for "calculate area of rectangle" and "feet to square yards conversion" will provide the necessary information. There a several ways you might setup your calculations.
• The data types chosen will potentially have a slight affect on the results. The sample output assumes that the street measurement (width), driveway measurement (length), area of the yard, and square yardage are whole numbers; while the lawn service price, lawn service discount, and discounted lawn service price are floating-point values
• Give careful consideration on how named constants can be incorporated into your program for current cost, lawn service cost per square yard, and discount rate; all are assumed to be floating-point values
• It is not necessary to format for a particular number of decimal places at this time or for the dollar sign symbol, $, which is simply embedded in the character string of the print statement
Spoiler
Am I heading in the right direction?
this is the example program I am basing it off of
Spoiler
Comment