Category: Websites, web programming

JavaScript Form Field Validation and Error Messages

You have created a basic form and added interactivity to images using JavaScript. Now it is time to validate information entered into your form fields. You will use the registration.html file found in your Zip file. You will see that the page has a form that has the following fields for allowing users to register for an account. The items in parentheses are defined formatting instructions to be observed for each field.

    Username* (must only contain letters and numbers).
    Password* (minimum of 8 characters).
    PasswordVerify* (minimum of 8 characters, must match password).
    FirstName* (text string).
    LastName*( text string).
    Email (uses xxx@xxx.xxx format).
    PhoneNumber (uses (xxx) xxx-xxxx format).
    SignUpNewsletter (radio box for yes/no).

Tips:

    JavaScript is case sensitive so a variable named myVar is different than MyVar and myvar.
    Perform your form validation testing in pieces at a time rather than all at the end. It will be much easier to fix the error if you have a smaller sequence of code to review.

Directions

Read the assessment overview.

Use the registration.html file to add functionality to the form found on the page. The JavaScript that you write should validate each field and display appropriate error messages (if errors are made) that direct the user to complete the form properly. Once the form is completed, your script should open the confirmation page (confirmation.php).

Note: The input fields in the form with an * are required fields.

Make sure to do the following:

    Write JavaScript that defines that a field is required and generates an appropriate error message if the field has not been completed.
    Write JavaScript to validate all input fields per the formatting definitions that the field values should be checked against (found in the overview) after each field.
    Write JavaScript that displays an appropriate error correction message (next to the field) in the event a form entry error has been made.
    Write a JavaScript that will default the user’s cursor to the first erroneous input field in the event that there is an input error.
    Create a submit button that executes the validation when submitted.

python

Write a Python program that outputs the numbers from 1 to 100. However, if the
number is divisible by 3, it should output Fizz instead. If the number is divisible by 5,
it should output Buzz instead. If the number is divisible by both 3 and 5, output
Fizzbuzz. An example output for the first 36 numbers would be:
1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, Fizz Buzz, 16, 17, Fizz,
19, Buzz, Fizz, 22, 23, Fizz, Buzz, 26, Fizz, 28, 29, Fizz Buzz, 31, 32, Fizz, 34, Buzz,
Fizz, …

music quiz game

TASK 1
Noel is creating a music quiz game.
The game stores a list of song names and their artist
(e.g. the band or solo artist name). The player needs to
try and guess the song name.
The game is played as follows:
A random song name and artist are chosen.
The artist and the fi rst letter of each word in the song title are displayed.
The user has two chances to guess the name of the song.
If the user guesses the answer correctly the fi rst time, they score 3 points. If the user guesses
the answer correctly the second time they score 1 point. The game repeats.
The game ends when a player guesses the song name incorrectly the second time.
Only authorised players are allowed to play the game.
Where appropriate, input from the user should be validated.
Design, develop, test and evaluate a system that:
1. Allows a player to enter their details, which are then authenticated to ensure that they are an
authorised player.
2. Stores a list of song names and artists in an external file.
3. Selects a song from the file, displaying the artist and the first letter of each word of the song title.
4. Allows the user up to two chances to guess the name of the song, stopping the game if they guess
a song incorrectly on the second chance.
5. If the guess is correct, add the points to the players score depending on the number of guesses.
6. Displays the number of points the player has when the game ends.
7. Stores the name of the player and their score in an external file.
8. Displays the score and player name of the top 5 winning scores from the external file

Basic Website

Details/Requirements 

Create a website based on your mockup.

The minimum requirements are below:

? Home Page Must Contain:

Navigation
Brief description
Footer
Give credit where credit is due

? Videos page Must Contain:

Minimum of 2 videos
with Brief description
and References ( Give credit where credit is due )

? Images page Must Contain:
Minimum of 5 images
Each image must have a short description
and References ( Give credit where credit is due )

Content Page of your choice Must Contain
Mix of text and video or images

? Style Sheet that contains all of your Styles

No inline style tags

Submission:
github.io link to your github pages that are hosting your website

Web API assignment: CodeQuiz

I need a website that is a timed quiz that uses web apis

the following below is the acceptance criteria:
GIVEN I am taking a code quiz
WHEN I click the start button
THEN a timer starts and I am presented with a question
WHEN I answer a question
THEN I am presented with another question
WHEN I answer a question incorrectly
THEN time is subtracted from the clock
WHEN all questions are answered or the timer reaches 0
THEN the game is over
WHEN the game is over
THEN I can save my initials and score

ENTD380 Assignment 3

Assignment Instructions
Instructions:

* Make sure you go to this week’s chapter lesson for more guidance. 

For this assignment, you will write two different methods.  In one method you will pass a value to the method and in the other method you will return a value from the method.  Name your methods PassValue and ReturnValue.

Save the code in jGRASP, then save it in c:myjava and run it.

/*******************
  Name:

  Date:

Notes:   
*******************/

public class PassValue
{
public static void main(String[] args)
{
  add content and comments
  }
  public static void sub(String)
  {
  add content and comments
  }
}

/*******************
  Name:

  Date:

Notes:   
*******************/

public class ReturnValue
{
public static void main(String[] args)
{
  add content and comments
  }
  public static void sub(String)
  {
  add content and comments
  }
}

Make sure that you include all source codes and the compiled codes into W3_firstname_lastname.zip.

You must leave me a note in the Submitted Text area on how to compile and run your code.

Final Exam Project Requirements

Your web site must include the following:

Headings and paragraphs
Page structure elements
A background image
A color scheme of no more than 4 colors
Four images with citations near the image
An external style sheet
Responsive web design of at least a mobile and a desktop view
A form
A table
A list
A JavaScript external file with at least one statement and/or function
Navigation menu
One of the pages must be a policy page that displays the site purpose statement and an accessibility statement.
If using a CSS class or id selector, add a comment explaining why it was chosen over an HTML element selector.

For your At-Home Final Exam Project, you will design a web site with a minimum of four pages that will demonstrate the skills learned

Pseudocode and Algorithms

This assignment consists of three (3) assessable tasks:
Task: Ticket kiosk pricing function(Write a pseudocode function which calculates the price of a ticket order according to the price table)
Task: Ticket kiosk interface program(Write a pseudocode program which the user will interact with to place a ticket order)
Task: ISBN Validation program(Write a pseudocode program which performs following task)

Please see attached document

C++ Web Application

I am assigning you a project to track COVID-19 in the state of NJ according to the following initial criteria: (Please see the following link to give you an idea:
https://coronavirus.jhu.edu/map.html <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcoronavirus.jhu.edu%2Fmap.html&data=02%7C01%7Cpatel4%40student.fdu.edu%7C81c5948f08564baca6cf08d7e55a2c71%7C3224fad94bcc4d47ae9886ea3c6b3b13%7C1%7C0%7C637230047756785621&sdata=TJLo2CoGPXjMdoVPOPpQD0CAOA8p3i%2FUAk0papcScFg%3D&reserved=0>
The application must be written in C++ as a Web based application!
There has to an integration with NJ Map.
The application must take into consideration all health facilities in the state and tracking COVID-19 patients
The application should provide statistics in terms of death rate and the recovery rate
There has to be an update every 1 – 5 minutes using external feeder systems.
More options and modifications can be considered as you progress in this C++ project.
Please provide your feedback ASAP! You may use the techniques of Waterfall (iterations) software development model.

Web Design Assignment 1

Use only HTML/CSS. Attached below are the resources needed. Code accordingly.

Take note:
– Google fonts to be used: Literata (Regular, Medium, Bold) and its pairing Roboto or Source Sans Pro
– mouse able to hover over each category and an orange line appears

Additional (if applicable within your ability):
– Geometric line to animate when user is scrolling down the page.