How to using the prompt and alert functions

Assignment Help Computer Engineering
Reference no: EM1332337

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: EM1332337

Questions Cloud

Practice question for the sherman act : This post denotes a practice question for the Sherman Act.
Immigration process : Do you think immigration reform will reach a level which will both improve the process for obtaining citizenship and significantly improve the security of our borders?
Description of decision-making process : Compose a description of the decision-making process, including the steps on how to approach the situations, a list of questions if a meeting is granted, or a list of possible reasons for rejecting the meeting.
Suppose the relationships hold true and given performance : Suppose the relationships hold true and given performance below, what salary would you estimate for each player in 2006.
How to using the prompt and alert functions : compute the average (mean) of the 5 marks as a rounded integer or a floating point number.
Pan-european brand in continental europe : Proctor & Gamble's Pert Plus: Is it a Pan European Product?
Escribe the effect of such clauses on both the government : Describe the effect of such clauses on both the government, and other customers, noting, inter alia, the effect on the selling firmâ.
Comapre the advantages and disadvantages of using javascript : comapre the advantages and disadvantages of using JavaScript on the client-side. Where JavaScript is blocked or disabled, does that amount to a potentially significant business loss.
Policy concerning affirmative action : Write a Policy concerning Affirmative Action and keeping in mind that you will have to make your policy agreeable to some degree to all factions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the goal to exercises in the bluej textbook

What is the goal to exercises in the BlueJ textbook? For the remains of the course, you will answer the questions posed by BlueJ textbook-you will not require downloading an additional worksheet and filling it in as you did for first four units.

  Find the average number of miles per gallon

design a class named Vehicle that acts as a superclass of vehicle types. The Vehicle class contains private variable fo rthe number of wheels and the average number of miles per gallon.

  Generate the tables attach the primary key and foreign key

Generate the tables attach the primary key and foreign key

  Program that has a function named presentvalue

Program that has a function named presentValue

  Handling the asset and threat

Propose the reasonable values for the items in risk register for this asset and threat, and offer justifications for your choices.

  Management systems do for sales and marketing

What can the knowledge management systems do for Sales and Marketing? What can they NOT do?

  What types of relationships that exist between tables

What are the differences between relational database models and object-oriented database models? express at least 2 differences at length.

  Developing the audio technologies

A company noting down the success of 24-bit digital audio technologies as compared to earlier 16-bit digital audio technologies has decided to work on developing the 28-bit digital audio technology.

  Explain the following hypothetical scenario

The new CIO and his biker buddy COO decide to form a Steering Committee to clean up the mess. They involve the key decision makers from their respective organizations and get the commitment from Senior VP of Marketing. The CIO and COO make it clea..

  Design an application that instantiates five clients

The law firm of Howard, Fine and Howard wants to develop two classes- a Client class that holds data about the firm's clients and an attorney class that holds data about each of attorneys who work for the firm.

  What happen if you did not break

When using Case statements, what would happen if you did not "Break?" Please give an example and explain. Where, in your everyday life, would you use all of the looping techniques.

  Define the use of contractions, slang and icons

Does the use of contractions, slang and icons in text messaging and email signal the development of a new communication style, or just the death of appreciation of written language.

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