Java Script Basic Programs

1.     WAP to display your name.

2.     WAP to accept two numbers and find thair addition.

3.    WAP to accept 5 subject numbers and find their sum and average.

4.     WAP to accept length and breadth of a rectangle and find the area and perimeter of a rectangle.

5.     WAP to accept radius of circle and find area and circumference of a circle.

6.     WAP to accept the value of one side of a square and find the area and perimeter of square.

7.     WAP to accept the temperature in centigrade degree and find the temperature in Fahrenheit degree.

8.     WAP to accept the basic salary of an employee and find the HRA, DA, TA, PF, GS, NP 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

9.     WAP to accept any number and find their square and cube value.

10.     WAP to calculate the simple interest where principle is 5000, rate is 10 and time is 2.

11.     A computer manufacturing company announces a special offer to their customers on purchasing Laptops and the Printers accordingly: On Laptop: Discount-15%         On Printers: Discount- 10% WAP to calculate the discount, if customer purchases a Laptop and a printer.

12.     A shopkeeper offer 10% discount on the printed price of a digital camera. However, a customer has to pay 6% sales tax on the remaining amount.   Write a   program  to calculate the amount to be paid by the customer, taking printed price as input.