public class Circle {
// the private data members
private double radius;
private double area;
private double diameter;
public void setRadius(double r)
{
radius = r;
}
public double getRadius()
{
return radius;
}
public double computeDiameter()
{
return radius * 2;
}
public double computeArea()
{
return ((radius * radius) * 3.14);
}
}
Answer:
C. 4
Explanation:
typedef enum{
red,orange,yellow,green,blue
}
color_t;
defines an enumeration type color_t with the values red,orange,yellow,green,blue.
If we print out the values of these individual elements they will be as follows:
red : 0
orange : 1
yellow: 2
green: 3
blue: 4
Note that the integer values are dependent on the position in the definition.
Explanation:
video projector is an image projector that receives a video signal and projects the corresponding image on a projection screen using a lens system.
Using a multimedia projector, you can show a DVD, video, slide show or television program on a large screen with color and sound. Multimedia projectors allow for presentations that can be used for work functions, classroom instruction or enjoyment of films and television at home.