Question

Put your name on the first line in camelCase. Write a JavaScript function to generate a...

Put your name on the first line in camelCase. Write a JavaScript function to generate a random number from 1 to 100. Determine if it is a small, medium or large number. Display random integer and its size. Write a JavaScript function to determine the building assignment for employees. Input the department and pay type. Salaried IT employees go to Iona. Hourly IT employees to to Ithaca. Salaried manufacturing employees to to Miner while hourly manufacturing employees go to McCook. Salaried accounting employees go to Armstrong while hourly manufacturing employees go to Aldrin. Display their building assignment Write a JavaScript function to calculate annual bonuses. Employees with up to five years of experience are paid $100/year. Employees with six to ten years of service are paid $150/year. Employees with eleven to twenty years of services are paid $200/year. Those with more experience than that are paid $225/year. Output the rate and the total.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

<!-- Answer of first question : Random Numbers -->
<!DOCTYPE html>
<html>
<body>

<h2>Your Name Here</h2>

<p>Random Number is:</p>

<p id="demo"></p>

<p id="demo1"></p>


<script>
var n = Math.floor(Math.random() * 101);
document.getElementById("demo").innerHTML = n;


if (n < 25) {
   document.getElementById("demo1").innerHTML = "The Number is small" ;
} else if (n < 75) {
   document.getElementById("demo1").innerHTML = "The Number is Medium" ;
} else {
document.getElementById("demo1").innerHTML = "The Number is large" ;
}
  
</script>


</body>
</html>

===============================================================================================

for rest of the questions please ask each question separately

Add a comment
Know the answer?
Add Answer to:
Put your name on the first line in camelCase. Write a JavaScript function to generate a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a JavaScript function to determine the building assignment for employees. Input the department and pay...

    Write a JavaScript function to determine the building assignment for employees. Input the department and pay type. Salaried IT employees go to Iona. Hourly IT employees to to Ithaca. Salaried manufacturing employees to to Miner while hourly manufacturing employees go to McCook. Salaried accounting employees go to Armstrong while hourly manufacturing employees go to Aldrin. Display their building assignment

  • Summary should briefly analyze the central problems and issues of the case and provide some analysis...

    Summary should briefly analyze the central problems and issues of the case and provide some analysis and suggestions. Thank you. Lean Initiatives and Growth at Orlando Metering Company It was late August 2002 and Ed Cucinelli, vice president of Orlando Metering Company (OMC), sat in his office on a late Saturday morning. He had come in to prepare for some strategic planning meetings that were scheduled for the upcoming week. As he noticed the uncommon silence in the building, Ed...

  • Subject: HRM Introduction and Instructions You have recently been hired as the Director of Human Resources...

    Subject: HRM Introduction and Instructions You have recently been hired as the Director of Human Resources for Wilson Brothers Canada and have HR responsibility for all of the company’s Canadian operations. Bob and John Wilson have asked you to prepare a report for their review focusing specifically on organizational behavior within the company. Review the Wilson Brothers Case Scenario in depth and address the required topic listed below in your analysis report. Marks are allocated for thoroughness of coverage of...

  • In your judgement, and given only the facts described in this case, should the management of...

    In your judgement, and given only the facts described in this case, should the management of Massey energy Company be held morally responsible for the deaths of the 29 miners? Explain in detail. Suppose that nothing more is learned about the explosion other than what is described in this case. Do you think Don Blankership should be held morally responsible for the deaths of the 29 miners? Explain in detail. Given only the facts described in this case, should the...

  • write up an essay on the problems in budgeting derived from the articles (i do Upvote...

    write up an essay on the problems in budgeting derived from the articles (i do Upvote the answers ) Why Budgeting Kills Your Company HBSWK Pub. Date: Aug '1 1, 2003 Why doesn't the budget process work? Read what experts say about not only changing your budgeting process, but whether your company should dispense with budgets entirely. by Loren Gary The average billion-dollar company spends as many as 25,000 person-days per year putting together the budget. If this all paid...

  • Evaluate the arical writ the response in which you state your agreement or disagreement with writer...

    Evaluate the arical writ the response in which you state your agreement or disagreement with writer up un these questions guidelines 1) can empathy lead us astrary? how 2) our heart will always go out to the baby in the well, its a measure of our humanity. but empathy will have to yield to reason if humanity is to have a future can empathy yield to reason? how? thank you The Baby in the Well: The Case against Empathy* -Paul...

  • And there was a buy-sell arrangement which laid out the conditions under which either shareholder could...

    And there was a buy-sell arrangement which laid out the conditions under which either shareholder could buy out the other. Paul knew that this offer would strengthen his financial picture…but did he really want a partner?It was going to be a long night. read the case study above and answer this question what would you do if you were Paul with regards to financing, and why? ntroductloh Paul McTaggart sat at his desk. Behind him, the computer screen flickered with...

  • What an Executive Summary Is An executive summary is a specific type of document that does...

    What an Executive Summary Is An executive summary is a specific type of document that does two things: it summarizes a research article, and it offers recommendations as to how information from the article can be used. Some long reports can contain an executive summary section, as indicated in the Pearson handbook. Write a 2 pahe Executive Summary In business contexts, an executive summary is always written for a specific purpose: to explain the information in the article to a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT