Wednesday, November 01, 2006

Activity Number 1 for Computer Programming

ACTIVITY NO. 1


1. Create a program that asks for a distance in kilometers and converts it into its metric equivalent.
2. Write a program that asks the user to enter the radius of a circle and then computes for its area. Recall that the formula to compute for the area is AREA=PI x R2, where R is the radius. The output must be similar to this: The area of the circle with radius 2 cm is 12.56 cm2.
3. Create a program that converts a Fahrenheit measure to a Celsius measure (C=5/9 x (F-32)).
4. Write a program that will compute and display the midterm grade of a student. The midterm grade is equal to one-third of the minor A exam and two thirds of the midterm exam.
5. Create a program that will input a number in kilowatt and display its equivalent measure in watts.
6. Create a program that will compute and display the area of a square. Recall that the formula to compute for the area is AREA=S2 where S is the side of the square.
7. Make a program that will convert an inputted number in inches (in.) and display its equivalent measure in feet (ft.).
8. Create a program that will get as input from the user the base and height of as triangle. Compute and display the area of the rectangle.
9. Write a program that inputs two real numbers then exchanges their values.
10. Make a program that will accept a number in square meters (m2) and display its equivalent measure in hectares (has). Hint: 10, 000 m2=1 ha

4 Comments:

At November 7, 2006 at 1:37 AM, Blogger junil said...

sir.....dili man diay pede mailisdan ang background sa blogger??????

pero...nice man sir kay parehas gamay sa friendster
hehehehehhehehe

 
At November 15, 2006 at 10:50 PM, Blogger Adela Lhuz said...

This comment has been removed by a blog administrator.

 
At November 15, 2006 at 10:54 PM, Blogger Adela Lhuz said...

Sir Thank you sa pagtudlo kadtong about sa float, wala jud ko kahibalo ato. sir sori jud kau sir kay wala pajud ko ka cope-up sa ato lessons.... But i will try my very best na mugukod sa ako classmates... Tnx

 
At October 12, 2010 at 11:01 PM, Anonymous Anonymous said...

Excuse, it is cleared

 

Post a Comment

<< Home