Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Write a Java application which accepts input of 6 sets of student details such as name, school, genderand year level. The program must process and store this data inside an appropriate data object and...

1 answer below »
Write a Java application which accepts input of 6 sets of student details such as name, school, genderand year level. The program must process and store this data inside an appropriate data object and inone of 3 queues –
a. Queue A which is for year 12 students onlyb. Queue B which is for year 11 students onlyc. Queue C which is for all other students
Answered Same Day Mar 27, 2020

Solution

Ujjawal answered on Mar 31 2020
135 Votes
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;
**
* Driver class of application
*
*
public class StudentDriver {
    /**
     * Main method
     *
     * @param args
     *
    public static void main(String[] args) {
        BufferedReader reader = null;
        
initialize queues
        Queue queueA = new LinkedList();
        Queue queueB = new LinkedList();
        Queue queueC = new LinkedList();
        
initialize reade
        reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            
iterate for 6 times
            for (int i = 0; i < 6; i++) {
                
read student details
                System.out.println("Enter student name");
                String name = reader.readLine();
                System.out.println("Enter school");
                String...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here