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
kakasveta [241]
3 years ago
7

write a java script function that allows the user to enter and convert Kenyan shillings into US dollars when a button is clicked

on a web page. rate is 1 $ dollar 115 Ksh​
Engineering
1 answer:
DochEvi [55]3 years ago
3 0

Answer:

Explanation:

Like requested the following function is written in JavaScript and prompts the user for a total amount of Kenyan Currency that needs to be converted. It then places that value in a variable and divides it by 115 Ksh so that it gives us the USD value of that currency. Then that value is returned. The function can be attached to any button but it must be done manually when creating the button's onClick method.

function convertCurrency() {

 

 var KenyanAmount = prompt("Please enter the amount of Kenyan you want to convert.");

 var usdValue = "$" + (KenyanAmount / 115);

 return usdValue;

}

You might be interested in
How much power is needed to operate a Carnot heat pump if the pump receives heat 10°C and delivers 50 kW of heat at 40°C? at A)
mariarad [96]

Answer:

Power needed to pump=4.79 KW.

Explanation:

Given that:T_{1}=283K,T_{2}=313K,Q_{H}=50KW

We know that coefficient of performance of heat pump

 COP=\dfrac{T_{H}}{T_{H}-T_{L}}

So COP=\dfrac{313}{313-283}

      COP=10.43

COP=\frac{Q_{H}}{W_{in}}

      10.43 =\frac{50}{W_{in}}

W_{in}=4.79 KW

So power needed to pump=4.79 KW.

3 0
4 years ago
If the pressure of a confined liquid is doubled, the volume will do what?
slava [35]

Answer:

Boyle's Law simply describes the relationship between the pressure and volume of an enclosed gas when Temperature remains constant. Tripling the pressure will reduce its volume to 1/3, and so on. Alternatively, if you double the volume available to an enclosed gas, pressure is halved.

Explanation:

3 0
4 years ago
Based on the concept that it is better to prevent falls happening in the first place, which of the following safety methods meet
alekssr [168]

Answer:fall arrest harness

Explanation:cuz it’s just right

7 0
3 years ago
"Transportation is the way of expanding business activies" justify this statement with long answer​
Leokris [45]

Answer:

Transportation methods ensure deliveries to and from your facility flow smoothly and arrive at their designated destinations on time. Because of the importance of transportation to your business's success, it's vital to include this factor in your supply chain management strategy.

So,transportation is the way of expanding business activities.

4 0
3 years ago
A balanced three-phase 208 V wye-connected source supplies a balanced three-phase wyeconnected load. If the line current IA is m
tatyana61 [14]

Answer:

6.004 Ω

Explanation:

For  a Y- connected system given that :

Line voltage, $V_L = 208 \ V$

Line current , $I_L=20\ A$

and specified that $V_L \ and \ I_L$ are in phase.

Hence the impedance will be pure resistive.

For Y-system

$V_L = \sqrt3 V_{ph}$

$V_{ph}$ = phase voltage

$V_{ph}$ $=\frac{V_L}{\sqrt3} = \frac{208}{\sqrt3}$

    = 120.08 V

Line current = Phase current

$I_L = I_{ph} = 20 \ A$

Now, $z_{ph} = \frac{V_{ph}}{I_{ph}}=\frac{120.08}{20}$

                          = 6.004 Ω

5 0
4 years ago
Other questions:
  • Which of the following does NOT describe product design.
    11·1 answer
  • What are pneumatic tools powered by?
    9·1 answer
  • Show that a chirped Gaussian pulse is compressed initially inside a single-mode fiber when ftC < 0. Derive expressions for th
    12·1 answer
  • The basic concept of feedback control is that an error must exist before some corrective action can be made?
    12·1 answer
  • How is the minimum circuit ampacity for an air-conditioning condensing unit calculated?
    7·1 answer
  • True or False: The differential lock in an AWD-equipped vehicle can be used at any time.
    10·2 answers
  • In a CNC machining operation, the has to be moved from point (5, 4) to point(7, 2)along a circular path with center at (7,2). Be
    5·1 answer
  • 1)Saturated steam at 1.20bar (absolute)is condensed on the outside ofahorizontal steel pipe with an inside and outside diameter
    10·1 answer
  • What should be given to a customer before doing a repair?
    9·1 answer
  • The tank shown in the accompanying figure is being filled by pipes 1 and 2. If the water level is to remain constant, what is th
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!