There are 3 problem each with its own marks. Total above 75 marks is considered as PASS.
1. (50) Write a Java program to calculate the trianular function as follows:
Cos(x)=1 - 2!/x 2 + 4!/x4 - 6!/x6 ...
Write a complete Java program that uses a for loop to compute the sum of the even numbers and the sum of the odd numbers between 1 and 50.
3. (20) Rewrite the following for loop using a while expression.
for(i=0; i<=10; i++)