Answer:
1) The value of x will be 6.
2) The value of y will be 7.
Explanation:
1) The value of x will be 6.
The enum values are labeled by default from 1. This means that Sun = 1, Mon = 2, Tue = 3 and so on.
So, x = Mon = 2 and y = Sat = 6
x increases up to y = 6 in the while loop.
and then y also increments by 1.
2)So the value of y = 7.
You will need actual printf("Sun") or printf("Mon") for printing the actual text for the enum.
Answer:
c. Elasticity
Explanation:
When referring to Cloud Servers this capability is known as Elasticity. It basically describes how able and efficient a server is to automatically implement resources and remove resources in order meet the specific amount of demand at any given moment. Many times a server will not have much demand but will still have all the resources being used by the server. Being able to remove these unused resources so that they are available for other usage is what makes the servers elastic.
Answer:
The codes below implement the problem statements
Explanation:
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
int a=2;
int b=5;
computePercent(a,b);
computePercent(b,a);
}
}
<u>
</u>
<u>Part(b)
</u>
import java.util.*;
public class Percentages {
public static void computePercent (int a,int b)
{
System.out.println(a+" is "+(a*100/b)+"% of "+b);
}
public static void main(String []args)
{
Scanner s= new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
computePercent(a,b);
computePercent(b,a);
}
}
Yani cnm bu senin kararin istegidiin gibi davran
Basarilar