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
A ______ or workstation computer is typically used by one or a small number of people to perform everyday productivity tasks, su
sveta [45]

Answer:

Desktop

Explanation:

A desktop computer is a personal computing machine designed to be used on top of a usual office desk.

It accommodate in it the physical hardware that makes a computer run and connects to input devices like the mouse, monitor, and keyboard users interact with. Desktop computers are mostly used in enterprise and business environment, including in consumer use cases such as for gaming. In the enterprise, they are vital since they are the major medium for many users to do their day to day jobs.

6 0
4 years ago
An internet layer is a quantity of data that is transmitted on a netowrk without concern for whether it is accurate or whether i
satela [25.4K]

Answer:

False

Explanation:

The statement being made here is a False statement. An internet layer is not necessarily a quantity of data but instead, it is a group of various different codes, programs, and protocols that allow from the data to travel safely from one endpoint to the other. This is what allows one user from one side of the world to send information to someone else who can receive it from the other side of the world through the internet.

7 0
3 years ago
The mechanism for preventing traffic that is perceived to be dangerous to the network is known as a a0.
nikklg [1K]
I would go with firewall
6 0
3 years ago
Is playing hockey output force or input force?
LUCKY_DIMON [66]

Answer:

Input

Explanation:

got it right on a edunuity test

7 0
3 years ago
Read 2 more answers
If a fire should break out in your building, which of the following actions is NOT recommended?
quester [9]

C) Scream and run

you need to remain calm and carefully exit the building making sure you have everybody with you

6 0
4 years ago
Read 2 more answers
Other questions:
  • To select all the text in a document, press ____.
    12·2 answers
  • What does a graphic organizer do
    6·1 answer
  • What is one course of action available in every problem solving process?
    9·2 answers
  • You are contacted by a project organizer for a university computer science fair. The project organizer asks you to hold a forum
    10·1 answer
  • We will cover email use and management. Training topics include:
    5·1 answer
  • How to do a linear equations
    8·1 answer
  • Does anyone know about ICT? i need help ASAP
    9·1 answer
  • Which of the following tools helps ensure your document will open in older versions of word
    13·1 answer
  • How does science impact the technology?
    8·2 answers
  • What happens once the Insert tab is used in PowerPoint to insert a chart into a presentation?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!