Client Side Scripting Language

Webdesign Programs




Program [1]

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


View Solution


Program [2]

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.


View Solution


Program [3]

Define a function max() that takes two numbers as arguments and returns the largest of them. Use the if-then-else construct available in Javascript. 


View Solution


Program [4]

Write a JavaScript that calculates the squares and cubes of the numbers from 0 to 10 and outputs HTML text that displays the resulting values in an HTML table format. 



View Solution


Program [5]

Write a JavaScript to design a simple calculator to perform the following operations: sum, product, difference and quotient.




View Solution


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Website development Company in Allahabad Sarkari Exam Quiz