1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sattari [20]
2 years ago
13

Application for a lawn-mowing service. The lawn-mowing season lasts 20 weeks. The weekly fee for mowing a lot under 40 square fe

et is $25. The fee for a lot that is 40 square feet or more, but under 60 square feet, is $35 per week. The fee for a lot that is 60 square feet or over is $50 per week. Prompt the user for the length and width of a lawn USING JOPTIONPANE, and then display the weekly mowing fee USING JOPTIONPANE , as well as the 10-week seasonal fee.
Computers and Technology
1 answer:
Alex2 years ago
3 0

The prompt to the user for the length and width of a lawn is; Done by the program created below in Java using JOPTIONPANE

<h3>How do you write a Program in Java?</h3>

// library

import java.util.*;

// class definition

class Main

{// main method of the class

public static void main (String[] args) throws java.lang.Exception

{

  try{

   // object to read inputs

     Scanner scr=new Scanner(System.in);

     System.out.print("Enter length of lawn:");

     // read the length of lawn

     int length=scr.nextInt();

     System.out.print("Enter width of lawn:");

     // read the width of lawn

     int width=scr.nextInt();

     // find area of lawn

     int area=length*width;

     //if area is less than 400

     if(area<400)

     {// Weekly mowing fee

         System.out.println("Weekly mowing fee is:$25");

         // seasonal fee

         System.out.println("20-week seasonal fee is:$"+(25*20));

     }

     // if area >=400 and area <600

     else if(area>=400 && area<600)

     {

        // Weekly mowing fee

         System.out.println("Weekly mowing fee is:$35");

         // seasonal fee

         System.out.println("20-week seasonal fee is:$"+(35*20));

     }

     // if area >=600

     else if(area>=600)

     {

        // Weekly mowing fee

         System.out.println("Weekly mowing fee is:$50");

         // seasonal fee

         System.out.println("20-week seasonal fee is:$"+(50*20));

     }

  }catch(Exception ex){

      return;}

}

}

Read more about Java Programming at; brainly.com/question/18554491

You might be interested in
____ privileges for data involve establishing who can enter new data, change existing data, delete unwanted data, and view data.
Stolb23 [73]
Administrator privileges
6 0
3 years ago
Open punctuation means that no punctuation follows the salutation or complimentary close. *
zloy xaker [14]

Answer:

True

Explanation:

When open punctuation is used, we do not expect the use of punctuation after salutation or complimentary close. It is a relatively new concept in business writing and we can rightly use this method in modified block letter style of writing.  

Some companies have developed business letter templates that are arranged in an open style, which permits the use of open punctuation in all aspect of business writings.  

7 0
3 years ago
Mightier than the waves of the sea is his love for you
Inessa05 [86]

cool but kinda creepy ngl

8 0
3 years ago
Word processing is the use of computer software to enter and edit text.
balu736 [363]

Answer:

True

Explanation:

Word processing software or word processing program handles functions related to entering and editing text in a text document. In essence a word processor processes text documents which includes processing entire papers, paragraphs, pages. With a word processing software text is entered  in the document mainly through typing in the letters with a keyboard and a word processor allows copying, deleting and formatting text through the use of built in commands

Examples of word processing programs are Microsoft Word, AppleWorks and OpenOffice.

7 0
3 years ago
When a network mask is applied to any ip address on the network, the result is the ip address' network part followed by zeros?
joja [24]
Yes.








-----------------------------------------------------------------------------------
4 0
4 years ago
Other questions:
  • Write the definition of a function named rotate4ints that is passed four int variables. The function returns nothing but rotates
    9·1 answer
  • "In about 100 words, discuss the technologies that Walmart’s trucking fleet might use to better manage their operations. Include
    7·1 answer
  • In social networking websites such as twitter, people leave narrow minded and subjective remarks and upload unacceptable videos.
    9·1 answer
  • Matlab In this assignment you will write a function that will calculate parallel resistance for up to 10 parallel resistors. Cal
    15·1 answer
  • What is windows powershell? I downloaded a fake video game on my PC.(It was an accident) Now, powershell is bugging me. Is it a
    13·2 answers
  • Florida law requires every child blank years of age or younger use a crash tested federally be approved child restraint device
    5·2 answers
  • What is the missing line?
    5·1 answer
  • Test if the word mold is stored in the variable word. Computer science.
    9·1 answer
  • What is system software?
    14·1 answer
  • The traditional role of a manager is that of a(n):__________ a. encoder. b. sensegiver. c. communication champion. d. informatio
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!