Lectures List
capscom technology computer course almora

Java script assignments

  1. Create an external java script file and import with in html file.
  2. Write java script program to display user name and program must be internal and write at the end.
  3. Write java script program to display your college name with <h1> tag.
  4. Write java script program to display your permanent address with <font> tag.
  5. Write java script program to display your favourite car name with marquee tag.
  6. Write java script program to display your bio data using external js file.
  7. Write java script program to display your favourite city name using backtick(`).
  8. Write java script program to display your name, father name, date of birth, mobile number using single write() method and backtick.

Program based upon variables declaration and initialization

  1. Create a program to declare and initialize variables for given formulas and also print them.
    1. Circle
      1. area= πr2
      2. perimeter = 2*π*r
    2. Square
      1. area= side * side
      2. perimeter = 4*side
    3. Rectangle
      1. area= length * width
      2. perimeter= 2*(length + width)
    4. Right angle triangle
      1. area= (base*height)/2
      2. perimeter= side1+side2+side3
    5. Volume
      1. Cube
        1. v=a3
      2. Cylinder
        1. v=b*h
      3. Cone
        1. v= b*h/3
      4. Sphere
        1. v=4πr3
  2. Swap two number using third variable.
  3. Swap two number without using third variable.
  4. Find of number of rupees note of 2000, 500, 200 in given amount.
  5. Program to calculate simple interest.
  6. Check number is even or odd.
  7. Check person is eligible for vote or not.
  8. Check two number are equal or not.
  9. Find out largest number in given two number.
  10. Check given year is leap year or not.
  11. Check given number is divided by 5 or not.
  12. Check given number is divided by 5 or 7.
  13. Check given number is divided by 11 and 17.
  14. Check two variables are not equal.
  15. Display name of days corresponding digit 1-7.
  16. Display name of months corresponding digit 1-12.
  17. Check student is pass or not in given three subject marks, where passing marks must be greater than 33.
  18. Find out grade of student in 10th class.
    • A - where % is greater than 90
    • B - where % is greater than 80
    • C - where % is greater than 70
    • D - where % is greater than or equal 60
    • E - where % is less than 60
  19. Calculate addition, subtraction, multiplication and division by selecting choices from 1-4 using switch statement.
  20. Check number is even or odd using conditional statement.
  21. Find out largest number is given three number.

For loop programs

  1. Display numbers for given range.
    1. 1 to 100
    2. 100 to 1
    3. -10 to 10
    4. 10 to -10
    5. -10 to -20
  2. Display only even numbers in given range (1-100)
  3. Display only odd numbers in given range(32 - 64)
  4. Program to count, calculate sum and multiplication in given range(1-7)
  5. Check number is prime or not.
  6. Find out factorial of given number.
  7. Display table of a given number.

while loop programs


  1. Display numbers for given range.
    1. 1 to 100
    2. 100 to 1
    3. -10 to 10
    4. 10 to -10
    5. -10 to -20
  2. Display only even numbers in given range (1-100)
  3. Display only odd numbers in given range(32 - 64)
  4. Program to count, calculate sum and multiplication in given range(1-7)
  5. Check number is prime or not.
  6. Find out factorial of given number.
  7. Display table of a given number.
  8. Display digits of a given number.
  9. Count, calculate sum and multiplication of digits available in given number.
  10. Check number is palimdrome number(11, 121, 1221) of not.
  11. Check number is armstrong number(1, 153) or not.
  12. Check number is special number (1, 145) or not.

do-while loop programs


  1. Display numbers for given range.
    1. 1 to 100
    2. 100 to 1
    3. -10 to 10
    4. 10 to -10
    5. -10 to -20
  2. Display only even numbers in given range (1-100)
  3. Display only odd numbers in given range(32 - 64)
  4. Program to count, calculate sum and multiplication in given range(1-7)
  5. Check number is prime or not.
  6. Find out factorial of given number.
  7. Display table of a given number.

Nested loop programs


  1. Display all prime numbers from 1 to 100.
  2. Display table of numbers from 1 to 10.

Pattern Programs(Nested loop programs)

111
222
333

 

123
123
123

 

666
666
666

123 456 789

987 654 321

**** **** **** ****

 

*
**
***
****

 

****
***
**
*

 

   *
  **
 ***
****

 

****
 ***
  **
   *

 

   *
  ***
 *****
*******

 

*******
 *****
  ***
   *

Program based upon arrays

  1. Store given numbers in an array and print them, 45, 7 , 0, 90, -90, 89, 34, -45, 60
  2. Calculate count, sum of given array numbers 45, 7 , 0, 90, -90, 89, 34, -45, 60.
  3. Print only even numbers of given array 45, 7 , 0, 90, 91, 41, 80, -90, 89, 34, -45, 60.
  4. Print only numbers that are divided by 5 from given array 45, 7 , 0, 90, 91, 41, 80, -90, 89, 34, -45, 60.
  5. Print only numbers that are divided by both 5  and 11 from given array 45, 7 , 0, 90, 91, 41, 80, -90, 89, 34, -45, 60.
  6. Print only numbers that are special number from given array 45, 7 , 0, 90, 91, 41, 145, 80, -90, 89, 34, -45, 60.
  7. Print only numbers that are palimdrome number from given array 45, 7 , 0, 90, 91, 41, 80, -90, 89, 34, -45, 60, 11.
  8. Print only numbers that are armstrong number from given array 45, 7 , 0, 90, 91, 41, 1,80, -90, 89, 34, -45, 60, 153.
  9. Find position and index of 8 in given array 91, 41, 145, 80, -90,8, 90, 91.
  10. Find mode of 10 in given array 45, 7 , 10, 90, 91, 41, 145, 80, 10, 89, 34, -45, 10
  11. Find average of numbers given in an array 7 , 0, 90, 91, 41, 145, 80, -90.
  12. Store and display given array
    1 0 0
    0 1 0
    0 0 1
  13. Store and display given array
    10 20 30 40
    50 60 70 80
  14. Display only first row numbers of given array
    1 5 0
    6 1 2
    9 0 8
  15. Display only second row numbers of given array
    1 5 0
    6 1 2
    9 0 8
  16. Display only third row numbers of given array
    1 5 0
    6 1 2
    9 0 8
  17. Display only first column numbers of given array
    1 5 0
    6 1 2
    9 0 8
  18. Display only second column numbers of given array
    1 5 0
    6 1 2
    9 0 8
  19. Display only third column numbers of given array
    1 5 0
    6 1 2
    9 0 8
  20. Display only left diagonal numbers of given array i.e {1, 1, 8}
    1 5 0
    6 1 2
    9 0 8
  21. Display only right diagonal numbers of given array i.e {0, 1, 9}
    1 5 0
    6 1 2
    9 0 8
  22. Calculate sum of given two array
    1 5 
    6 1

    1 2
    9 0
  23. Subtract first array from second array.
    1 5 
    6 1

    1 2
    9 0
  24. Transpose given array
    1 2     
    9 0

    1 9
    2 0

Program based upon basic functions

  1. Create a function that displays the user name.
  2. Create a function that checks number is even or odd.
  3. Create a function that adds prefix '0' on a single-digit number using parameterized function.
  4. Create a function that calculates the sum of two numbers using non parameterized function.
  5. Create a function that displays a number from 1 to 10 with the help of a while loop.
  6. Create a function that returns a greater number.
  7. Create a function that return even number for all the given array numbers {1, 45, 5, 6, 68, 90, 102, 0, 90}
Author/Written by: Mr Hemant Singh (Founder)
Terms & Conditions CAPSCOM TECHNOLOGY Pvt. Ltd. का बेहतर रूप से संचालन करने के लिए यहॉ कुछ नियमें और शर्ते लागू है अगर आप कैप्सकॉम टैक्नोलॉजी में पढ़ रहे है तो यह आप पर लागू होता है।