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

  Cate a function with the first line functionarrayout

create a function with the first line functionarrayout switcherooarrayin this function should take an array of any

  Use one-dimensional array to read in twenty numbers

Use the one-dimensional array to solve problem: Read in 20 numbers, each of which is between 10 and 100. As each number is read, print it only if it is not duplicate of number which has already been read.

  Application to inputs five numbers given between a range

Write an application that inputs five numbers, each between 10 and 100, inclusive. As each number is read, display it only if it's not a duplicate of a number already read.

  Write a program to solve to find loan on tv

Write a program to solve follwoing problem: A TV set is bought with loan of $563 to be paid off with 5 monthly payments of $116. Interest rate is 1 percent per month.

  Write program for grocery that reads products data

Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price.

  Display the gross earnings-tax payable using program

Print the gross earnings, tax payable, medical levy and net earnings for each employee. At the end of report, print total gross earnings, total tax, total medical levy and total net earnings.

  Application should calculate and display the order amounts

Make sure the number of units for each package is numeric, and is not negative.

  Program to display aggregate information for state

For each state, display aggregate information for that state, including: the total number of counties in the state, the total number of tax returns.

  Write a function that uses stream-map

Now write a function that uses stream-map to produce the sum of two streams element by element for the first x elements . Be sure to test with several different types of streams (for example, you could sum together the odd and even numbers betwee..

  Create a program for a pizza shop

You are tasked with creating a program for a pizza shop - however, as this is a comparative languages course, you will be creating the same application in the following programming languages:

  Design implement application displays button-label on screen

Design an implement an application that displays a button and a label on a screen. Every time the button is pushed, the label will display a random number.

  Create a package called my complete system

Author a new class within your newly created package called MySystemGui. In this class, you need to extend the JFrame class and implement the appropriate listeners so that your system will 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