Client Side Scripting Language
Create a webpage and write a program in Java script to show the reservation system of XYZ train. Assume total 3 different routes (each route is containing 3 different trains with 5 seats capacity each). The document should contain a form with radio buttons that allows user to select route and then drop down box for train selection. The page also allows to select date and time for which reservation has to be booked. On reservation for a particular train it should prompt a message for successful entry otherwise unavailability.
The program should display the output as
(i) Total number of reservation by system.
(ii) Reservation per train.
(iii) Reservation per route
Create a webpage and write a program in java script to show the result of student attendance on weekly basis for xyz subject. A total of 5 classes can be conducted in a week. The document should contain a form with radio buttons that allows teacher to select status of absence or presence for 5 students of a class. The page also allows to select date and time for which attendance is to be marked. On submitting attendance for a particular day it should prompt a message for successful entry. The program should display the output as :
(i) total number of classes attended out of total number of classes conducted for each student
(ii) %age of attendance
(iii) Buttons should be enabled and disabled as per conditions.
Define a function max() that takes two numbers as arguments and returns the largest of