Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

URGENT PLEASE HELP Create an undefined variable. We do not want to assign it a value yet because we want it to have a value

URGENT PLEASE HELP Create an undefined variable. We do not want to assign it a value yet because we want
it to have a value based on if a condition is true, so for now we will just create it and
assign it a value in the next steps.
b. Create the if...else if....else statement. You will need to use various operators found
i. The first test should test if the variable used to store the calculated salary (from
the previous assignment) is less than 20000, If this condition is true, it should
assign the value ". The salary is too little." to the undefined variable
ii. The second test should test if the variable used to store the calculated salary is
greater than 20000 and less than 25000 and should assign the value ". The
salary is almost enough. Lets negotiate." to the undefined variable.
iii. The last assignment should take place by default (else), if neither of the two
previous conditions are met. It will assign the value ". This is a great salary for
me." to the undefined variable.
c. Modify the statement that changes the innerHTML of the paragraph below the inputs
(from the last assignment) to equal the same string as before (The salary is ) plus the
salary plus this new variable (that represents if the salary is enough).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Explain what a multi-dimensional array is.

Answered: 1 week ago