Answer to Question #279858 in Java | JSP | JSF for John

Question #279858

Write a program that will automate the actual process of classroom. The user must input the section name, student names, and the number of chairs. Each chair must be divided into 5 columns only (per example below). Each student names to be entered must be a randomly assigned particularly chair number.



1
Expert's answer
2021-12-15T07:00:05-0500


package classroom;


import java.util.Scanner;




public class Classroom {




 
    public static void main(String[] args) {
  
 
 Scanner scan = new Scanner(System.in);
        System.out.println("Enter number of chairs: ");
        int number_chairs = scan.nextInt();
        int chairsPerRow = number_chairs /5;
        
        System.out.println("Enter student name: ");
         String student_names = scan.nextLine();
        
        
    }
    
}

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

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog