07-05-2014, 01:26 AM
CS101 - Introduction to Computing Assignment No. 03 Due Date 11th July 2014
You are required to develop a web page which will create an array of strings and then it will sort the array in ascending and descending orders. The number of elements of the array will be specific by the user at run time.
Detailed Description:
1. You are required to develop a web page as shown below:
1.jpg (Size: 32.55 KB / Downloads: 165)
2. User will specify the number of array elements in the text field and then click on “Take Input” button. This process will create an array of specified number in the text field and also take input from user in those elements. Example is shown in the figure below:
2.jpg (Size: 49.67 KB / Downloads: 165)
3. After taking inputs, if the user clicks on “Ascending” button, then the entered values should be sorted and displayed in ascending order and if user clicks on “Descending” button, then it should be sorted in descending order. Example is shown in the figures below assuming that the inputs are “Table”, “Chair”, “Door”, “Fan”, and “House”.
3.jpg (Size: 27.91 KB / Downloads: 166)
Hints:
You can make this assignment by making some modifications in the example program given in Lecture 26
Event handlers and functions are the core concepts for solving this assignment
NOTE:
You have to modify the font size of the output array otherwise marks will be deducted.
