Answer:
import java.util.Scanner;
public class num6 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter number of guest");
int totalGuest = in.nextInt();
System.out.println("Enter number of slices per guest");
int slicesPerGuest = in.nextInt();
System.out.println("How many Slices are on a pizza");
int slicesPerPizza = in.nextInt(); // Assume each pizza has 5 slices
double pizzasNeeded;
//Calculating the pizza Needed
int totalslicesNeeded = totalGuest * slicesPerGuest;
pizzasNeeded = totalslicesNeeded/slicesPerPizza;
System.out.println(pizzasNeeded);
}
}
Explanation:
In this program User is required to enter values for the variables totalGuest, slicesPerGuest and slicesPerPizza
First calculate the totalSlices needed by totalGuest * slicesPerGuest;
The calculate number of pizzas needed by totalslicesNeeded/slicesPerPizza;
Answer:
Information technology can be used to promote opportunities for knowledge dissemination.
Explanation:
It can help the teachers and students have up-to-date information and knowledge. The accurate and right information is necessary for effective teaching and learning; and information technology
Answer:
SAN
Explanation:
A Storage Area Network (SAN) is a high-speed sub network of shared storage devices. A SAN's architecture works in a way that makes all storage devices available to all servers on a LAN or WAN. As more storage devices are added to a SAN, they too will be accessible from any server in the larger network.
Answer:
Following are the description to the given points:
Explanation:
To resolve basic design restrictions, EBNF has also been developed.This principle was its lack of support can identify repeatings easily. It implies that popular BNF models, like the description of a sequence of replicable elements, are complicated and rely on contra intuitive logical math.
To set a list of words divided by commas (e.g. john, coffee, logic) for instance, we would like to say something like "a list is a word accompanied by a few commas or terms." Through EBNF, they may say so. However, there have been no "many" alternatives in the standard BNF format. So, to describe something such as "a list is a term or a number accompanied by a pair with notation and script," you have to say the same thing. Which functions, although it is difficult, as it specifies a variety of lists instead of a specific list.
Essentially, "john, coffee, logic is John's list, accompanied by coffees or, and logic" would be the earlier link. That's why in Option (a):
The return statement in Java is:
return ('”‘ (~[“] | ” [”e‘])*);
In option (c), it is the valid statement.