Answer:
Input example:
select the funcion: 1
write the 1sd number2
write the 2nd number1
value is 2.000000
Explanation:
#include <stdio.h>
main()
{
//define the variables as float
float a, b, c, e;
char d;
while (1)
{
//input values
printf("select the function: ");
scanf("%c",&d);
printf("write the 1sd number");
scanf("%f",&a);
getchar();
printf("write the 2nd number");
scanf("%f",&b);
getchar();
if (d=='%')
{
a=a*b/100;
}
if (d=='*')
{
a=a*b;
}
if (d=='+')
{
a=a+b;
}
if (d=='/')
{
a=a/b;
}
if (d=='-')
{
a=a-b;
}
printf("value is %f \n",a);
}
printf("final value is %f",a);
getchar();
}
Answer:
jspService()
Explanation:
These are the steps in JSP life cycle-
1. We have to convert JSP page to Servlet.
2.Then we compile the JSP page which convert it into test.java
3. In test.java ,we load the classes(test.class) in container.
4. Object(instance) is created in container .
5. Then, we initialize the init() method at the time of servlet generation.
6. After the initialization,for the requests we use _jspService() method to serve the incoming requests from JSP.
7. When the work of JSP is completed, we remove it from container by the help of jspDestroy() method.
There is no jspService() method in the JSP life cycle.
Answer:
public static void drawGraphics (Graphics g, int width, int height) {
int r = Math.round(width/2);
int x = 45;
int y = 30;
g.setColor(Color.RED);
g.fillRect(x, y, width, height);
g.setColor(Color.BLUE);
g.fillOval(Math.round(x/2), Math.round(y/2), r, r);
}
Explanation:
The Java method "drawGraphics" of the Graphics class accepts draws a square with the "fillRect()" method of the Graphics class object and at its center, a circular path is drawn as well.
Answer:
Answer D is correct :
Explanation:
Configure an autoresponder email to send as a completion action when the \Request a Demo\ form has been submitted.
Answer:
Golden Freddy is the scariest in my opinion