Assignment Description
JavaScript Practical for CMSACOR11P
This assignment involves developing event-driven JavaScript programs to solve a series of practical tasks, including table generation, calculations, and data analysis. The tasks are designed to deepen understanding of JavaScript fundamentals, such as loops, conditionals, and functions. Each program will prompt the user for input, perform the required operations, and display results using alerts or other interactive methods. By completing these exercises, I will gain hands-on experience with JavaScript programming techniques essential for client-side web development.
To navigate through this JavaScript Practical Assignment webpage, start on this homepage where you’ll find the Description and Questions tabs. The Description section provides an overview of the assignment and its objectives. To access specific questions and view solutions, simply click on the Questions. This will direct you to a separate page where each question is presented along with its solution.
Assignment Questions
Q1
Print a table of numbers from 5 to 15 and their squares and cubes using alert.
Q2
Print the largest of three numbers.
Q3
Find the factorial of a number n.
Q4
Enter a list of positive numbers terminated by Zero. Find the sum and average of these numbers.
Q5
A person deposits Rs 1000 in a fixed account yielding 5% interest. Compute the amount in the account at the end of each year for n years.
Q6
Read n numbers. Count the number of negative numbers, positive numbers and zeros in the list.
Q7
Input a string and use String Copy function.
Q8
Without using string function reverse a string.
Q9
Take a list of random numbers and bubble sort the list.
Q10
Take a list of random numbers and sort the list using selection sort.
Q11
Using searching algorithm search a number from the list.
Q12
Merge two given list.
Q13
Take an input and find if the data exists in the list.
Q14
Take input of user id and password and give access after proper authentication.