Code CODO

Chapter:- Basic [JAVA SCRIPT]

Basic Programming in Java Script

(1). Write a programe to display your name.

(2). Write a programe to display your first & last name in different line.

(3). Write a programe to display your name & age in different line using one output statement.

(4). Write a programe to find the addition of two numbers.

(5). Write a programe to accept five subject numbers and find their sum and average.

(6). Write a programe to accept two numbers and swap them using third variable.

(7). Write a programe to accept two numbers and swap them without using third variable.

(8). Write a programe to accept two numbers and swap them without using third variable and '+','-' operator.

(9). Write a program to accept length and Breadth of a rectangle and find area and perimeter of a rectangle.

(10). Write a program to accept radius of circle and find area and circumference of a circle.

(11). Write a program to accept the value of one side of a square and find the area and perimeter of a square.

(12). Write a program to accept the temperature in centigrade degree and find the temperature in farenheit degree.

(13). Write a program to accept the temperature in farenheit degree and find the temperature in centigrade degree.

(14). Write a program to accept the basic salary of an employee and find the HRA, DA, TA, PF, GS, NP from the from the following criteria: HRA = 10% of basic salary; DA = 5% of basic salary; TA = 15% of basic salary; PF = 20% of basic salary; GS=HRA+DA+TA+BASIC SALARY; NP=GS-PF.

(15). Write a program to accept any number and find there Square & Cube value.

(16). Write a program to accept the principal amount, rate of interest and time and find there simple interest.