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
Elza [17]
4 years ago
9

Write a class definition for an abstract class, Vehicle, that contains:

Engineering
1 answer:
Hoochie [10]4 years ago
7 0

Answer:

Required Java class is given below

Explanation:

abstract class Vehicle{

double maxSpeed;

protected double currentSpeed;

//This is the constructor. For your informatin, abstract classes can't be initialized

public Vehicle(double maxSpeed){

this.maxSpeed = maxSpeed;

}

//This is an abstract method. This will be implemented in the class which extends this class

abstract void accelerate();

double currentSpeed(){

return this.currentSpeed;

}

double getMaxSpeed(){

return this.maxSpeed;

}

void pedalToTheMetal(){

//This loop runs as long as the currentSpeed is less than the max speed

while(currentSpeed<=maxSpeed){

accelerate();

}

}

}

You might be interested in
Pipe (2) is supported by a pin at bracket C and by tie rod (1). The structure supports a load P at pin B. Tie rod (1) has a diam
Galina-37 [17]

Answer:

P_max = 25204 N

Explanation:

Given:

- Rod 1 : Diameter D = 12 mm , stress_1 = 110 MPa

- Rod 2: OD = 48 mm , thickness t = 5 mm , stress_2 = 65 MPa

- x_1 = 3.5 mm ; x_2 = 2.1 m ; y_1 = 3.7 m

Find:

- Maximum Force P_max that this structure can support.

Solution:

- We will investigate the maximum load that each Rod can bear by computing the normal stress due to applied force and the geometry of the structure.

- The two components of force P normal to rods are:

               Rod 1 : P*cos(Q)  

               Rod 2: - P*sin(Q)

where Q: angle subtended between x_1 and Rod 1 @ A. Hence,

               Q = arctan ( y_1 / x_1)

               Q = arctan (3.7 / 2.1 ) = 60.422 degrees.

- The normal stress in each Rod due to normal force P are:

               Rod 1 : stress_1 = P*cos(Q)  / A_1

               Rod 2: stress_2 = - P*sin(Q)  / A_2

- The cross sectional Area of both rods are A_1 and A_2:

               A_1 = pi*D^2 / 4

               A_2 = pi*(OD^2 - ID^2) / 4

- The maximum force for the given allowable stresses are:

               Rod 1: P_max =  stress_1 * A_1 / cos(Q)

                          P_max = (110*10^6)*pi*0.012^2 / 4*cos(60.422)

                          P_max = 25203.61848 N

               Rod 2: P_max =  stress_2 * A_2 / sin(Q)

                          P_max = (65*10^6)*pi*(0.048^2 - 0.038^2) / 4*sin(60.422)

                          P_max = 50483.4 N

- The maximum force that the structure can with-stand is governed by the member of the structure that fails first. In our case Rod 1 with P_max = 25204 N.

             

8 0
3 years ago
Is the ASUS ROG Strix B450-F Gaming amd ryzen 5 3600 ready?
Ulleksa [173]

Answer:

yep

Explanation:

7 0
3 years ago
Read 2 more answers
Okay bro let’s go man yes yes
r-ruslan [8.4K]
Sheeeeeesh bro same name ayoooo??
8 0
3 years ago
Read 2 more answers
21. How long can food that requires time-temperature control be left in the danger zone?
dimulka [17.4K]

Answer: A maximum of 1 hour

Explanation:

Read your lesson buddy!!

8 0
4 years ago
Read 2 more answers
La base de los tema relacionados a las ciencia de las ingeniería es?
Yanka [14]

Answer:

La ciencia y la ingeniería conciben el mundo como comprensible, con reglas que gobiernan su funcionamiento y que a través de un estudio cuidadoso y sistemático se puede evidenciar mediante patrones consistentes que permitan la oportunidad de examinar las características fundamentales que mejor describen los fenómenos.

Explanation:

5 0
3 years ago
Other questions:
  • Sea X una variable aleatoria con funci´on de densidad
    9·1 answer
  • Sam promises to pay Sandy $2,000 in four years and another $3,000 four years later for a loan of $2,000 from Sandy today. What i
    8·1 answer
  • How do i open a door<br> please i've been trapped in this room for ages
    9·1 answer
  • What are the initial questions that a systems analyst must answer to build an initial prototype of the system output.
    14·1 answer
  • What is it that makes a battery rechargeable? How is it different from a regular battery?
    14·2 answers
  • PLZZZZZ HELP
    7·2 answers
  • . An ideal vapor compression refrigeration cycle operates with a condenser pressure of 900 kPa. The temperature at the inlet to
    14·1 answer
  • Please help on two I will give brainiest​
    13·2 answers
  • true or false: the types of building materials that’s should be used in a project does not constitute a conditional for projects
    13·2 answers
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!