You are on page 1of 5

I BCA (2014-15)

9/4/2005 Mr. Dave Clausen 2


Find the AREA of a circle/triangle
CArea=3.14*r*r / TArea=1/2(H*B)
Calculate the simple interest with the given principle(P), rate(R),
and time(T).
(P*T*R)/100
Find average of four numbers
(N1+N2+N3+N4)/4
Find the AREA of a triangle with given three sides
Semi Perimeter S=(A+B+C)/2
Area = sqrt(S*(S-A) *(S-B) *(S-C))
Convert temperature in Fahrenheit to Celsius
C=(F-32)*5/9
Input amount in total paise and find the number of Rupees and
Paise in that
9/4/2005 Mr. Dave Clausen 3
Find largest of two numbers

Check the total amount purchased by customer and if the
amount exceeds Rs. 5000 give 15% of discount in amount
purchased.

Calculate the total commission of a salesman given that if the
sale is more than Rs 1000 he gets a commission of 15%
otherwise a commission of 10%.
9/4/2005 Mr. Dave Clausen 4
Find the smallest of three/four given numbers
Input an examination mark and test it for the award of a grade.
The mark is a whole number between 1 and 100. Grades are
awarded according to the following criteria:
>= 80 Distinction ; >= 60 First Class
>= 40 Pass ; < 40 fail
Determine voter eligibility and display one of three messages.
The messages and criteria are as following.
Message Criteria
You are too young to vote Person is younger then 18 years old
You can vote Person at least 18 years old and is
register to vote
You must register before you
can vote
Person is at least 18 years old but is
not registered to vote

You might also like