Generate a random number between 0 and 4

Assignment Help JAVA Programming
Reference no: EM131601382

Requirements:

Copy lab3.html to a new page called project1.html. We will be modifying it in this project.

Modify the external JavaScript file with the following:

Add a function to get the current date and time. Write the date on the page in a user friendly format. Use a switch statement to write an appropriate greeting based on the time. For example, "Good Morning", "Good Afternoon" or "Good Evening". Call this function before the trivia quiz.

Copy the Quote of the day array from lab 2. Generate a random number between 0 and 4 and use that to display the quote of the day on the page.

For the trivia quiz, convert the answer entered by the user to lowercase and the array answer to lowercase to compare both.

After you write out the score on the page, calculate their percentage by dividing their score by the total points possible (9). Use a number function to round it to 2 decimal places and display the percentage to the user.

Add a function that prompts the user to enter an email address. Use a regular expression to validate it. If not a valid email address, display an error. If valid, use string functions to split the address based on the @. Convert the first part (username) to all uppercase. Display the username and domain separately. Call this function from the main script before the trivia quiz.

Be sure to link the external JavaScript file to the web page.

You may add any other content and functionality that you choose to the program.

Attachment:- Project.rar

Reference no: EM131601382

Questions Cloud

Discuss why paint scrapings from hit and run accidents : what is the underlying reason why paint scrapings from hit and run accidents
Protection of intellectual property : Many people download movies, music, and software to a computer. Streaming services for downloading such applications.
The nasws social work core values and waldens mission : Consider the similalites between the NASW'S Social Work core values and Waldens mission and vision.
Configuration and troubleshooting of complex : Explain and demonstrate competence in the configuration and troubleshooting of complex EIGRP networks
Generate a random number between 0 and 4 : Add a function to get the current date and time. Write the date on the page in a user friendly format. Use a switch statement to write an appropriate greeting
How the economy impacts on peoples behaviour : You may want to consider for instance how the economy impacts on people's behaviour - ask how that then will have consequences for the hotel chain?
Algorithm of the program : For this exercise you are to write a program (in C or C++ preferably) that reads a text file containing a number of words and displays the words on the screen.
Define the equal to a criminal enterprise : In sum, are monopolies simply a component of free market capitalism, or are they equal to a criminal enterprise
Recommend for sam home-based office : What firewall configuration would you recommend for Sam's home-based office/network? Justify your response.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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