import java.util.Scanner;
public class GroupsCounter {
public static void main(String[] agrc) {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter the number of students");
int numberOfStudents = sc.nextInt();
System.out.println("Please enter the group capacity");
int groupCapacity = sc.nextInt();
System.out.println("Number of possible groups " + numberOfStudents / groupCapacity);
}
}
Comments
Dear visitor, please use panel for submitting new questions
Write a program to take an order for a computer system. The basic system costs 375.99. the user then has to choose from a 38 cm screen(costing 75.99) or a 43 cm screen (costing 99.99).the following extras are optional. Item price DVD/CD writer 65.99 printer 125.00 The program should allow the user to select from these extras and then display the final cost of the order.
Leave a comment