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
Select the correct answer. The most frequent maintenance task for a car is: A. Oil changes B. Tire replacements C. Coolant chang
abruzzese [7]

Answer:

  A. Oil changes

Explanation:

It depends on the car and its usage and environment. Usually oil is supposed to be changed every few months, more often if the car is driven a lot. Coolant changes may be indicated as seasons change, so will generally occur less frequently than oil changes.

Tire and brake replacement depend on usage and driving habits. Some owners may never have to replace either one, if they trade their car every year or two. Folks who drive with their foot on the brake pedal may have to replace brakes relatively often.

The most frequent task is generally oil changes.

5 0
3 years ago
Read 2 more answers
(i) what assumptions about the relationship between the inputs and output are inherent in this specification? do scatter plots s
olasank [31]

A problem that will be handled by a procedure is described by an input-output specification.

<h3>What is input and output specification?</h3>
  • An input-output specification outlines the issue that a procedure will try to solve. The input part and the output part are its two components.
  • The input component outlines the kind of data object that should be provided for each actual argument as well as any presumptions that the process might make.
  • A technical specification known as an output specification defines the project scope primarily through performance-based requirements.
  • It is used to assess technical compliance and serves as the technical cornerstone of both the procurement and delivery phases.
  • Known as classical specifications, they outline the precise services to be provided, sometimes in great detail, along with the standard you must meet and the approach you must take to meet the standard.

To Learn more About input-output specification Refer To:

brainly.com/question/25265909

#SPJ4

5 0
1 year ago
Write a matrix, that is a lower triangular matrix.
shepuryov [24]

Answer:

\left[\begin{array}{ccc}10&0&0\\14&25&0\\57&18&39\end{array}\right]

Explanation:

A lower triangular matrix is one whose elements above the main diagonal are zero meanwhile all the main diagonals elements and below are nonzero elements. This is one of  the two existing types of triangular matrixes. Attached you will find a image referring more about triangular matrixes.

If there is any question, just let me know.

6 0
3 years ago
You are working in a lab where RC circuits are used to delay the initiation of a process. One particular experiment involves an
Ymorist [56]

Answer:

t'_{1\2} = 6.6 sec

Explanation:

the half life of the given circuit is given by

t_{1\2} =\tau ln2

where [/tex]\tau = RC[/tex]

t_{1\2} = RCln2

Given t_{1\2} = 3 sec

resistance in the circuit is 40 ohm and to extend the half cycle we added new resister of 48 ohm. the net resitance is 40+48 = 88 ohms

now the new half life is

t'_{1\2} =R'Cln2

Divide equation 2 by 1

\frac{t'_{1\2}}{t_{1\2}} = \frac{R'Cln2}{RCln2} = \frac{R'}{R}

t'_{1\2} = t'_{1\2}\frac{R'}{R}

putting all value we get new half life

t'_{1\2} = 3 * \frac{88}{40}  = 6.6 sec

t'_{1\2} = 6.6 sec

7 0
3 years ago
A 1-kW electric resistance heater submerged in 10-kg water is turned on and kept on for 15 min. During the process, 400 kJ of he
hichkok12 [17]

Answer:

ΔT=  11.94 °C

Explanation:

Given that

mass of water = 10 kh

Time t= 15 min

Heat lot from water = 400  KJ

Heat input to the water = 1  KW

Heat input the water= 1 x 15 x 60

                                =900 KJ

By heat balancing

Heat supply - heat rejected = Heat gain by water

As we know that heat capacity of water

C_p=4.187 \frac{KJ}{kg-K}

Q=mC_p\Delta T

Now by putting the values

900 - 400 = 10 x 4.187 x ΔT

So  rise in temperature of water ΔT=  11.94 °C

6 0
3 years ago
Other questions:
  • Suppose three companies, Optimax, Megachug, and Thirstoid, dominate the sports drink market. Optimax enjoys the largest market s
    9·1 answer
  • What kind or kinds of engineers does take to design a drone and why?
    11·1 answer
  • Consider a process in which a carbon-based fuel is combusted in the presence of 70% excess oxygen (assume that all of the oxygen
    10·1 answer
  • By efficiency, we generally mean the ratio of the desired output to the required input. That is, efficiency is a measure of what
    7·1 answer
  • WHAT IS THE EFFECT OF ICE ACCRETION ON THE LONGITUDINAL STABILITY OF AN AIRCRAFT?
    8·1 answer
  • Cup-sveg-aph<br><br>I m finding gf<br><br>if anyone interested pls come​
    11·2 answers
  • Provide two programming examples in which multithreading provides better performance than a single-threaded solution. Provide on
    11·1 answer
  • Water is pumped from a lake to a storage tank 18 m above at a rate of 70 L/s while consuming 20.4 kW of electric power. Disregar
    13·1 answer
  • In-------process the hot drawn bar or rod is pulled through the die.
    7·1 answer
  • The three construction crafts that require a MINIMUM of a 4-year college degree are
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!