Number of check-in persons should be less

Assignment Help JAVA Programming
Reference no: EM133214610

You need to use HTML, CSS, JavaSript, PHP, and MySQL

The booking webpage asks customers to fill in a booking form that collects a series of customer information including customer name, email address, phone number, check-in date (suppose all customers only book night), room type, and number of check-in persons. Before you submit the data to the server, you need to use JavaScript to check the validity of the input information. The specific requirements are listed as below:

  • A valid consumer name should have both first name and last name, and they should be separated by a space (e.g., "Ray Xie");
    A valid email address should have the "@" character;
    A valid phone number should contain 10 digits and should start with "04";
    Check-in date should be collected with a calendar date format;
    Number of check-in persons should be less than or equal to the maximum number that a type of room can accommodate.
    o Standard twin room and executive twin room can accommodate at most 2 persons;
    o Superior suite room, deluxe suite room, and executive suite room can accommodate at most 3 persons;
    o Presidential suite can accommodate at most 5 persons;
    If any data is invalid, you need to prevent the data from being sent to the server and ask customers to re-enter the data. Please note that you MUST use JavaScript to check the validity of form input. After the validity check, the form input will be sent to the server. You need to use PHP to connect to a pre-created database named "SOF102_A1", and check whether there is a capacity for the nominated room for the check-in date.
    If there is still capacity, you need to store the registration information in the database. Then, display "The below booking has been successful!" and display the booking details following.
    Otherwise, display "Sorry! There is no available room!" and ask customers to re-enter new booking information.

Reference no: EM133214610

Questions Cloud

Explain how statistics is used to formally define risk : Explain how statistics is used to formally define risk in risk assessment process. Discuss at least two statistical tools that can be employed to measure risk
Write a javascript function to add the books : Write a JavaScript function to add the following books in the library collection for author John Grisham. The number in the parentheses is the year of publicati
Make a program to make a class called shapeobject : make a program to make a class called ShapeObject and this class contains the below,
Discuss plans for upholding four aspects of professionalism : Discuss your plans for upholding the four aspects of professionalism-sense of identity, purpose to engage in DAP, commitment to ethical teaching
Number of check-in persons should be less : The booking webpage asks customers to fill in a booking form that collects a series of customer information including customer name, email address, phone number
Create a class called fuelqueue : The Class version should be able to manage 5(Five) pumps parallelly. Create a class called FuelQueue and another class called passenger. (The menu and its optio
Create a powerpoint about an organization : Create a PowerPoint about an organization that is using their business analytics capabilities to successfully drive innovation
Perform user management tasks : Make a bash script to perform user management tasks as outlined below and provide the example for each question
Is having this many choices a good thing for consumers : Consider the number of product choices available in the U.S. consumer market. Is having this many choices a good thing for consumers? Why or why not

Reviews

Write a Review

JAVA Programming Questions & Answers

  Record managing system application

Build a student record managing system application

  Write an applet that includes a pie chart

Write an applet that includes a pie chart. Use a news article with statistics that are good candidates for a pie chart: for example, political candidate preferences; percentages of those for, against, or undecided about a ballot measure; and so for..

  Program that computes and prints the value of 6!/5! using

Write a Java program that computes and prints the  value of 6!/5! using Scanner.

  Create an unsorted array list with 100 random items in it

Create an unsorted array list with 100 random items in it and then perform a linear search on the array list looking for an item that is present in the list.

  Program that initializes an array with ten random integers

Write a JAVA program that initializes an array with ten random integers and then prints four lines of output, containing

  Network asset register project

Network Asset Register Project Create a class to store information on Network infrastructure assets. The name of the class is: NetworkInfrastructureAsset

  Develop a java program

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs.

  Add all the necessary exception declarations

Add all the necessary exception declarations to remove the compile-time errors

  What does the brute force method do exactly

What does the brute force method do exactly? Why does the computer win every time if the word is JAVA?

  Declare an array of double type

Declare an array of double type, with size 10. Use a regular for loop to generate 10 random double type variables and fill them into the array.

  Develop a program that will handle a golfer and his scores

develop a program that will handle a Golfer and his scores. The program will be comprised of two classes: a Golfer class that will manage all the golfer's scores and a Score class.This is a class designed to represent a golfer including his name, hom..

  World data query system - determine users desired continent

CS1110 World Data Query System - alls getContinent to determine user's desired continent. Searches data to find ALL matching countries in that target continent

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