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
andrew11 [14]
3 years ago
5

If the price of the car is less than or equal to your available cash, display "no". If the price of the car is more than your av

ailable, cash, display "yes".
Engineering
1 answer:
Ede4ka [16]3 years ago
7 0

Answer:

function decision(car_price, available_cash) {

   if(car_price <= available_cash) {

   console.log("no");

   }

   else  {

   console.log("yes");

   }

   }

decision(car_price, available_cash); or decision(available_cash, car_price);

Explanation:

using functions in Javascript:

functions; this refers to dividing codes into reusable parts.

e.g function function_name() {

console.log("How are you?");

}

you can call or invoke this function by using its name followed by parenthesis, like this: function_name(). each time the function is called it will   print out "How are you?".

Parameters: these are variables that act as placeholders for the values that are to be input into a function when it is called

Arguments: The actual values that input or passed into a function when it is called.

e.g

function function_name(parameter1, parameter2) {

console.log(parameter1, parameter2);

}

then we call function_name: function_name("please", "leave"):we have passed two arguments, "please"  and "leave". Inside the function parameter1 equals "please" while parameter2 equals "leave".

Hence, from the question given the two parameters "car_price" and "available_cash" respectively, we write the function with name function_name:

function decision(car_price, available_cash) {

   if(car_price <= available_cash) {

   console.log("no");

   }

   else  {

   console.log("yes");

   }

   }

decision(car_price, available_cash); or decision(available_cash, car_price);

You might be interested in
Fluid power is a. The technology that deals with the generation, control, and transmission of power-using pressurized fluids b.
snow_tiger [21]

Answer:  a) The technology that deals with the generation, control and transmission of power using pressurized fluids

Explanation: Fluid power is defined as the fluids which are under pressure and then are used for generation,control and transmit the power. Fluid power systems produces high forces as well as power in small amount . These systems usually tend to have better life if maintained properly. The force that are applied on this system can be monitored by gauges as well as meter.

8 0
3 years ago
Problem 4.079 SI A rigid tank whose volume is 3 m3, initially containing air at 1 bar, 295 K, is connected by a valve to a large
salantis [7]

Answer:

Q_{cv} = -1007.86kJ

Explanation:

Our values are,

State 1

V=3m^3\\P_1=1bar\\T_1 = 295K

We know moreover for the tables A-15 that

u_1 = 210.49kJ/kg\\h_i = 295.17kJkg

State 2

P_2 =6bar\\T_2 = 296K\\T_f = 320K

For tables we know at T=320K

u_2 = 228.42kJ/kg

We need to use the ideal gas equation to estimate the mass, so

m_1 = \frac{p_1V}{RT_1}

m_1 = \frac{1bar*100kPa/1bar(3m^3)}{0.287kJ/kg.K(295k)}

m_1 = 3.54kg

Using now for the final mass:

m_2 = \frac{p_2V}{RT_2}

m_2 = \frac{1bar*100kPa/6bar(3m^3)}{0.287kJ/kg.K(320k)}

m_2 = 19.59kg

We only need to apply a energy balance equation:

Q_{cv}+m_ih_i = m_2u_2-m_1u_1

Q_{cv}=m_2u_2-m1_u_1-(m_2-m_1)h_i

Q_{cv} = (19.59)(228.42)-(3.54)(210.49)-(19.59-3.54)(295.17)

Q_{cv} = -1007.86kJ

The negative value indidicates heat ransfer from the system

7 0
3 years ago
The alignment readings for the front of a vehicle are shown above. Camber and toe are within specification, caster is not. Techn
dlinn [17]

Answer:

B. B only

Given Information:

1. Camber and toe are within specification

2. Caster is not within specification

Technician A says that with the current settings, the left front tire tread may wear on the inside edge.

Technician B says that with the current settings, the vehicle may pull to the left

Explanation:

Lets discuss the effects of Camber, toe and caster misalignment

Effects of Camber and Toe misalignment:

Camber is the inward or outward tilt of the fron tires and is used to distribute load across the tread. Any misalignment causes uneven loading on the tires which results in tire wear on one edge.

The most common cause of tire wear on the inside edge is due to the camber misalignment which results in premature tire wear.

Another reason is of tire wear is vehicle’s toe. A slight misalignment of the toe reduces the life of the tire.

Since it is given that camber settings and toe settings are within specification therefore, tire tread wear on the inside edge cannot happen if camber and toe are within specification.

Technician A cannot be right.

Effects of Caster misalignment:

Whenever there is a misalignment of the castor then the vehicle will not be able to go in straight line rather it will pull to either left or right side. Caster misalignment also causes heavy or light steering depending upon the positive or negative misalignment of caster.

Since it is given that caster settings are not within specification therefore, the vehicle may pull to the left due to the caster misalignment.

Technician B must be right.

4 0
3 years ago
Unless otherwise posted, the maximum speed limit is ______mph on a two-lane undivided highways and for vehicles towing trailers.
Karo-lina-s [1.5K]

Answer:

55 mph

Explanation:

6 0
3 years ago
Jackson Water Department wants a program that calculates a customer's monthly water bill. The clerk will enter the current and p
valentinak56 [21]

Answer:

See attached images

Explanation:

See attached images

Hope this helps!

4 0
3 years ago
Other questions:
  • 2. In the above figure, what type of cylinder arrangement is shown in the figure above?
    9·1 answer
  • How many D-cell batteries would it take to power a human for 1 day?
    11·1 answer
  • How can endurance athletes best delay muscle fatigue during training? a. By avoiding sports drinks during exercise b. By eating
    6·2 answers
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • A very specific part of the population is called a
    6·1 answer
  • Estimate the time it would take for such axons to carry a message from a foot stepping on a sharp object to the brain and then b
    14·1 answer
  • Fill in the blank to correctly complete the statement below.
    10·1 answer
  • By using order of magnitude analysis, the continuity and Navier-Stokes equations can be simplified to the Prandtl boundary-layer
    9·1 answer
  • A(n)<br> is a safety device commonly<br> used with a slotted nut.
    14·1 answer
  • Check the level of motor oil in your engine by ?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!