How to produce javascript code

Assignment Help Programming Languages
Reference no: EM13935506

Produce JavaScript code (and any necessary HTML) that will perform the following functions:

1. Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0-100.

2. Calculate the average (mean) of the 5 marks as a rounded integer or a floating point number.

3. If the average mark is 0-39, then display a message saying that the grade is a Fail, 40-69 is a Pass, and 70-100 is a Distinction. If the value is less than 0 or greater than 100, display a message saying that there has been an input error.

Reference no: EM13935506

Questions Cloud

Create two files one first.html and the other first.js : Use comments and lay the code out so it can be easily followed.The lines will display all at once for this assignment.
How it screen countries to determine which are acceptable : If so, how would it screen the countries to determine which are acceptable? For whatever countries that it is willing to consider, should it adjust its feasibility analysis to account for the possibility of kidnapping?
Determine probability that the projects npv will be negative : Tovar's cost of capital is 26%. Determine the expected value of the project's net present value. Determine the probability that the project's NPV will be negative.
Discuss the japanese work ethic : Discuss the Japanese work ethic. Is this comparable to the American work ethic? Japanese corporations typically involve many more organizational levels and people in the development of implementation plans than do U.S. corporations
How to produce javascript code : Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0-100.
How an mnc with investment in that country would be affected : From each of the events of the financial crisis, consider how an MNC with investments in that country would be affected and how the MNC might best react.
Provide ten examples of microbiology career specializations : Provide ten examples of Microbiology career specializations. For each example, provide a one sentence description.
What you know about developing ethical cultures : Based on what you know about developing ethical cultures and programs, identify the problems presented by this case. Why do you think the corporate counsel has responded in this way? What will be your response to him, if any
Why international transactions require international trade : Explain why so many international transactions require international trade credit facilitated by commercial banks. Explain the difference in the risk to the exporter between accounts receivable financing and factoring.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program to keep track of a cd or dvd collection

Write a program to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data is different.

  Explain the functions which are useful

Explain some of the functions which you have found useful, where you found them, and how you use them. Describe good programming practices.

  Create a rexx program that asks a user for separate lines

Create a REXX program that asks a user for four separate lines of input, and then outputs those lines all at once, one line at a time

  Design and develop a unix file sharing system

Design and develop a UNIX file sharing system. For this task you will be required to develop a simple application in C programming language.

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Program to ask how many games are being purchased

Your program should ask the store clerk how many games are being purchased and calculate a total due (with 6% tax). The total number of games, the discount amount.

  Compare and contrast object-oriented languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of: Programmability Maintainability Performance Development tools Explain the use of scripting languages, such as JavaScript, PHP,..

  Compute the total sales and commission rate applied

Write a program that prompts a salesman to enter his-her status and total sales. Compute the following: their status; total sales; commission rate applied; the commission ($) earned (the appropriate rate times the sales)

  Program that produces the decompostion of integers

Give a program that produces the decompostion of integers between 0 and 121 using powers of 3(1, 3, 9, 27, 81) - play a particular role using any language

  Create new method for random turning

Create new method named randomTurn (this method has no parameters and returns nothing). Select the code that does the random turning.

  Create useful and well-designed programs

Create useful and well-designed programs that use subroutines, functions, menus, dialog boxes, and other related form objects to solve practical business problems.

  When the program starts the user is asked to seed the

write a program that lets the user play the game of rock paper scissors against the computer. the program should work

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd