60 323
Assignments Done
98%
Successfully Done
In April 2018

Answer to Question #45396 in Java | JSP | JSF for fel

Question #45396
A group of students have been told to get into teams of a specific size for their class work. design and implement a program that prompts for the number of students in the group and the size of the teams to be formed, and display how many teams can be formed and how many students are left without a team.
Expert's answer
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);
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
18.09.14, 17:29

Dear visitor, 
please use panel for submitting new questions

Felly
12.09.14, 19:15

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

Ask Your question

Submit
Privacy policy Terms and Conditions