Visitor.java MusuemFine Palindrom PalindromeMatrixSearch PersonServer PrimeGraph ProducerConsumerWithMonitors Pstreams QuickSort Replication Scoreinformation Sem SimulationBus TectWindStream Problems Javadoc Declaration Console X Chat Coverage <terminated> MusuemCoarse [Java Application) /Users/oabushama/p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.fu Visitor 21 left seat number :5 Visitor 49 got seat number :9 Visitor 26 got seat number :2 Visitor 31 got seat number : 1 Visitor 31 left seat number : 1 Visitor 45 got seat number :5 Visitor 45 left seat number :5 Visitor 14 got seat number :3 Visitor 42 got seat number : 6 バイラルナン 13 1oft naat number C
Added by Tara H.
Close
Step 1
Step 1: Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 80 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Purpose To gain experience working with a Queue of Customers Getting Started Use your Node.java and Queue.java and run SimulationUsingQueueOfCustomers.java. Your output should be similar to the Sample Run without changes Changes Express Server Add an express server to handle customers with a 'work to do' value of <= 60 and update the output to reflect which server is handling a customer Your output should be similar to the Sample Run with Express Server added Multiple Servers Change regularServer to an array of 10 servers and increase the probability of arrival based on 300 customers per hour. (Express server should still be included in this one) Your output should be similar to the Sample Run with Express Server added, 10 servers, and increased to 300 customers per hour Submit the whole NetBeans project and include all files in a zip file. Remember projects will not be accepted late. You will have two mains. SimulationUsingQueueOfCustomersExpress.java - used to test the express server. SimulationUsingQueueOfCustomersMultiple.java – used to test the multiple regular servers and includes the express server.
Akash M.
Goals: Practice abstract classes & polymorphism. Description: A college department needs a system for obtaining total hours for all the people involved in its program. They have a record of all the professors, teaching assistants, and students with the name of the course and total hours for each course as follows: Professor Isaac Newton Physics 6 TA Marie Curie Physics 6 Professor Isaac Newton Calculus 4 Student Amy Adams Calculus 4 Student Will Smith Calculus 4 Student Brad Pitt Physics 6 Student Will Smith Physics 6 Professor Dmitri Mendeleev Chemistry 6 TA Carl Gauss Calculus 4 Student Amy Adams Economics 3 Professor Adam Smith Economics 3 TA Marie Curie Chemistry 6 Student Brad Pitt Chemistry 6 Student Will Smith Chemistry 6 end Out of all hours for each course, the professor attends only lecture hours, TA conducts lab hours and students must attend all hours. The number of lab and lecture hours is based on the total hours of the course: if total hours > 4 then lab hours = 2, otherwise lab hours = 1 lecture hours = total hours - lab hours. Therefore for the following scenario: Professor Isaac Newton Physics 6 TA Marie Curie Physics 6 Student Brad Pitt Physics 6 the professor has 4 hours, TA has 2, and the student has all 6. Write a program using abstract classes to represent people and a proper class hierarchy to represent professors, TAs and students. The program should scan the full record above all at once and produce a printout of all the people with their total hours through the use of polymorphism. Every person must be mentioned in the printout only once. The printout should be of the following format: Title (Professor/TA/Student) FirstName LastName TotalHours Do not use ArrayList.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD