Prompt the user for the length and width of a lawn

Assignment Help Basic Computer Science
Reference no: EM13670640

Write an application for a lawn-mowing service. The lawn-mowing season lasts for 20 weeks. The weekly fee for mowing a lot less than 400 square feet is $25. The fee for a lot that is 400 square feet or more, but fewer than 600 square feet, is $35 per week. The fee for a lot that is 600 square feet or over is $50 per week.

Prompt the user for the length and width of a lawn, and then print the weekly mowing fee, as well as the 20-week seasonal fee. Save the class as Lawn.java.

To the Lawn class, add a prompt that asks the user whether the customer wants to pay

(1) Once,
(2) Twice, or
(3) 20 times per year.
If the user enters 1 for once, the fee for the season is simply the seasonal total.
If the user requests two payments, each payment is half the seasonal fee plus $5 service charge.
If the user requests 20 separate payments, add a $3 service charge per week.
Display the number of payments the customer must make, each payment amount, and total for the season.

Reference no: EM13670640

Questions Cloud

Determine the link onto which the packet is forwarded : When one of these packets arrives to a packet switch, what information in the packet does the switch use to determine the link onto which the packet is forwarded?
Use karatsuba''s integer multiplication algorithm : Use Karatsuba's integer multiplication algorithm as a subroutine.
Prepare form 1040, schedules a and c : Prepare Form 1040, Schedules A and C for Form 1040, and Forms 2106 and 8829 for the 2013 year. Assume that no estimated taxes were paid by the larges.
The user to enter the amount of a purchase. : Design a modular program that will ask the user to enter the amount of a purchase.
Prompt the user for the length and width of a lawn : Prompt the user for the length and width of a lawn
Compute cash flows - npv and irr of the project : Compute, cash flows, NPV and IRR of the project using the Excel spreadsheet. (Use the IRR financial function for the computation of IRR.)
Two or more areas must be interconnected : Two or more areas must be interconnected
Timberline technology manufactures membrane circuits : Timberline Technology manufactures membrane circuits
Proposal for a sustainability plan : Prepare Group power point presentation for a proposal for a Sustainability Plan of a chosen company - companies-with-eco-conscious-production-processes or any other company with legitimate claims.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Violating the copyrights held by company b

Suppose company A wants to develop a program that duplicate the functionality of a program made by company B describe how company A may do this without violating the copyrights held by company B

  Logic circuit to figure out how many of the bits

Design a logic circuit to figure out how many of the bits in a 6 bit unsigned number equal 1. Design the simplest possible circuit to accomplish this.

  Why your program should require o(logn) time per order

The double action system operates as follows. When a new buy order of $x arrives it is simply stored for future use if none of the stored sell orders has an asking price lower than or equal to $x.

  Explaining distributed music in physical cds and mp3 files

For some time, popular music has been distributed on physical CDs. It can now be distributed in MP3 files. Explain the nature of the similarity or difference.

  Explaining dui and charges of domestic violence

You will be handling sensitive information and may end up in court as a technical or expert witness. How can things such as a DUI, charges of domestic violence and other items affect your career?

  Write a short essay using no more than 600 words

Write a short essay (using no more than 600 words) to discuss how (or whether) the XML equivalent capabilities were used in the past (before XML) in WBIS and what changes are expected in XML in future?

  Write a program that generates a random integer

Write a program that generates a random integer in the (inclusive) range [0-9] (i.e. the set {0,1,2,3,4,5,6,7,8,9}) and ask the user to guess what the number is.

  Simulate the game of yahtzee

After displaying the possible scores for each category, ask the user which score to keep (it might not be the largest). Once the box is filled, it cannot be scored again.

  Input function to prompt the user to enter a square

In the script file, use the input function to prompt the user to enter a square 2-dimensional array. Use a loop to check that user's input is a square array and repeatedly ask the user to enter a square array until they enter a square array (you m..

  Compare swing java gui components to awt components

Compare Swing Java GUI components to AWT components. Explain at least one way the components are similar and at least one way they are different. Provide examples to support your rationale.

  Differentiating unix and window traceroute

Compare and contrast differences between Unix (or Linux) and Window Traceroute. All codes for each ICMP error message are not completely listed and explained.

  Three years for applications of information security

Five articles within the past three years for applications of information security, within healthcare organizations.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd