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
RideAnS [48]
3 years ago
7

Tech Town has been hit with a bad storm and the town is suffering from severe flooding. The kids have no way to get to school.Te

ch Town has been hit with a bad storm and the town is suffering from severe flooding. design a solution to solve the problem. i have to collect supplies around your house for your solution. What could i build?
Computers and Technology
1 answer:
Rama09 [41]3 years ago
5 0

Answer:

May 28, 2020 — What's left of Tropical Storm Bertha will move through the Ohio Valley and ... the southern storm system to create severe weather for the Northeast on ... in Sacramento of 103 degrees, even Death Valley hit a record high of ... Las Vegas got to 107, missing the record just by 1 degree. ... Do Not Sell My Info ...Hurricane Sandy was the deadliest and most destructive, as well as the strongest hurricane of ... The eighteenth named storm, tenth hurricane, and second major hurricane of the year, ... Its storm surge hit New York City on October 29, flooding streets, tunnels and subway lines and cutting power in and around the city.

Explanation:

You might be interested in
In this assignment, you are to create a class named Payroll. In the class, you are to have the following data members: name: Str
wlad13 [49]

Answer:

Here is the PayRoll class:

// PayRoll.java

package payroll;  // creates payroll package for project

public class Payroll {   //class definition

  private String name;   //private String type member variable to store name

  private String id;  //private String type member variable to store id

  private int hours;  //private int type member variable to store work hours

  private double rate;    //private double type member variable to store payrate of the employee

  public Payroll()    {  //no argument constructor of PayRoll

      name = "";   //initialize name field

      id = "";   //initialize id field

      hours = 0;  //initialize hours field

      rate = 0.0;    }  //  initialize rate field

  public Payroll(String NAME, String ID, int HOURS, double RATE)    { //parameterized constructor

      setName(NAME);  //sets name value

      setId(ID); //sets id value

      setHours(HOURS);  //sets hours value

      setRate(RATE);    }  //sets rate value

  public void setName(String NAME)    {  //mutator method to set name

      if(NAME.equals(""))        {  //if name field is empty

          throw new IllegalArgumentException("An employee name should not be empty.");        }     //throws exception

      name = NAME;    }  

  public void setId(String ID)    {        //mutator method to set id

      if(ID.length() != 3 || !Character.isLetter(ID.charAt(0))|| !Character.isDigit(ID.charAt(1)) || !Character.isDigit(ID.charAt(2)))        {  //if statement checks if the length of the id is not 3, or first character of id is not a letter, or second or third character of id is not a digit

          throw new IllegalArgumentException("An employee id should have the form LNN.");        }        //throws exception

      id = ID;    }    

  public void setHours(int HOURS)    {  //mutator method to set hours

      if(HOURS < 0 || HOURS > 84)        { //checks if working hours are less than 0 or greater than 84

          throw new IllegalArgumentException("An employee's hours should neither be negative nor greater than 84");        }    //throws exception    

      hours = HOURS;    }  

  public void setRate(double RATE)    {    //mutator method to set rate

      if(RATE < 0 || RATE > 25.00)        {  //checks if pay rate is less than 0 or greater than 25.00

          throw new IllegalArgumentException("An employee's pay rate should neither be negative nor greater than 25.00");        }         //throws exception    

      rate = RATE;    }    

  public String getName()    {  //accessor method to get value of name

      return name;    }   //returns the current value of name

  public String getId()    { //accessor method to get value of id

      return id;    }  //returns the current value of id

  public int getHours()    {  //accessor method to get value of hours

      return hours;    }    //returns the current value of hours

   public double getRate()    {  //accessor method to get value of rate

      return rate;    }  } //returns the current value of rate

Explanation:

Here is the Main() class:

import java.util.Scanner;  //to accept input from user

public class Main {  //Main class definition

  public static void main(String[] args)   {//start of main() function

      Payroll pay = new Payroll();  //creates object i.e. pay of PayRoll class

      Scanner sc = new Scanner(System.in);  //creates Scanner class object

      String name,id; //declare variables to hold name and id

      int hour;  //declare variable to store hour

      double rate; //declare variable to store pay rate

      System.out.print("Enter the employee's name: "); //prompts user to enter employee name

      name = sc.nextLine();  //reads input value of name

      pay.setName(name);  //use pay object to access mutator method to set name to input name value

      System.out.print("Enter employee's id (LNN form): "); //prompts user to enter employee id

      id = sc.nextLine();  //reads input value of id

      pay.setId(id);  //use pay object to access mutator method to set id to input id

      System.out.print("Enter the employee's working hours: "); //prompts user to enter employee hours

      hour = sc.nextInt();  //reads input value of hour

      pay.setHours(hour);  // set input hours

      System.out.print("Enter the employee's pay rate: "); //prompts user to enter employee pay rate

      rate = sc.nextInt(); //reads input value of rate

      pay.setRate(rate);  // set pay rate

      System.out.println("Employee Data: \n");  //displays the employee data

      System.out.println("Employee's Name: " + pay.getName());  //calls getName accessor method to get current value of name field and display it

      System.out.println("Employee's ID: " + pay.getId());  //calls getId accessor method to get current value of id field and displays it

      System.out.println("Employee's Hours: " + pay.getHours());  //calls getHours accessor method to get current value of hours field and displays it

      System.out.println("Employee's Pay Rate: " + pay.getRate()); //calls getRate accessor method to get current value of rate field and displays it

  }

}

Here IllegalArgumentException is thrown which is used to show that a method is passed an illegal argument.

The screenshot of program and its output is attached.

5 0
3 years ago
1.1. (30 points) Write a program to calculate the average number of cars sold by a car agency over a period of years for the fir
mario62 [17]

Answer:

count = 0

months = 0

years = int(input("Enter the number of years: "))

for year in range(1, years+1):

   cars_sold = int(input("Enter the number of cars sold in first six months: "))

   count += cars_sold

   months += 6

print("Number of months: " + str(months))

print("Number of cars sold in total: " + str(count))

print("Average number of cars sold per month: " + str(count / months))

Explanation:

Initialize the variables

Ask the user for the number of years

Create a for loop that iterates depending on the given number of years

Ask the user for the number of cars sold in the first six months of the year

Increment the count by given number and increment the months by 6 after each iteration

Print the months, count and, average

8 0
3 years ago
This device is used to connect sections of large networks?
ryzh [129]
Monster energy boissss
6 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST AND 75 POINTS!!!
pshichka [43]

Answer:

Glomar Challenger studies about the "age of rocks in various places in the ocean" in 1968

Explanation:

Glomar Challenger was a "deep sea research vessel" for marine geology and oceanography studies.

The vessel set out in 1968 on a "Deep Sea Drilling Program" in the Atlantic Ocean.

Samples were collected from various drilling locations and the study and analysis of these samples enabled the study of plate tectonics.

These samples also provided more information related to the rocks in oceans.

The vessel drilled cores containing rock salt, gypsum, anhydrite and several other evaporating minerals.

8 0
4 years ago
Read 2 more answers
What is the biggest difference between a movie and a game?
sveta [45]

Answer:

It could be D

Explanation:

3 0
3 years ago
Other questions:
  • An expression that has correctly paired delimiters is called a(n)
    6·1 answer
  • The most important protocol at the internet layer is ____.
    13·1 answer
  • In your own words, describe UML. Identify at least two types of UML diagrams that can be used in software development; describe
    7·1 answer
  • If you insert a single row by using the Insert command on the shortcut menu, you can continue inserting rows by repeatedly press
    7·2 answers
  • Assume hosts A and B are each connected to a switch Svia 100-Mbps links. The propagation delay on each link is 25μs. The switch
    15·1 answer
  • What is computer? Write is features <br><br><br><br><br>​
    14·1 answer
  • 3- It is an Information page that is displayed through one of the Internet browsers, it can be saved along htm, html page.
    11·2 answers
  • Filtering is a function of _____.
    5·1 answer
  • Tim is a project manager. He is brainstorming with his team about problems that could arise during the next phase of the project
    5·1 answer
  • Database policies should be created and implemented by all organizations, regardless of the ________ of the organization.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!