Make a program that will input hour, convert it into minutes and seconds. Display the minutes
and seconds respectively. Your program will be terminated if you input zero in the hour.
Ex. Hour = 2
Minutes = 120
Seconds = 7200
Make a program that will input Kilometer, convert it into meter and display the converted
meter. Your program will be terminated if you input zero in the kilometer.
Make a program that will input a number and identify if it is ODD or EVEN. Your program will have
an option to have another entry or not.
The Area of a Circle = pi *(r*r). Where pi=3.1415 and r=Radius, Make a program that will
input Radius and compute and display the Area. Your program will be terminated if input zero
in the radius.
Make a program that will input Dollar currency, convert it into peso. Peso= dollar
currency*50.00 pesos, Display the peso equivalent. Your program will be terminated if the
inputted Dollar currency = 0.
Using mid-point circle drawing algorithm, draw a circle with radius of 8 units.
Perform a 30° clockwise rotation of a triangle A ( 2, 2 ), B ( 3, 3 ), C ( 6, 5 ) about the
origin.
Use the Cohen-Sutherland out code algorithm to clip two lines P1(40, 15) – P2(75 ⋅
45) and P3(70 ⋅ 20 ) − P4(100, 10) against a window A(50,10), B(80, 10).C(80, 40)
and D(50, 40).
Using mid-point circle drawing algorithm, draw a circle with radius of 8 units, along
the circle octant in the 1st quadrant from x = 0 to x = y.
Digitize a line from ( 10, 12 ) to ( 20, 18 ) using Bresenham's Line drawing algorithm
Create class Student which contains database of rollNo, name, height, weight & percentage using
constructor and also display this database of 3 student using a method called display(). Then destroy the
objects when they are no longer needed.