They have a magnificent team. These people are always kind and willing to listen to your concerns or issues. Better yet, your assignment is always ready before the time, they usually send you a draft to double-check before they finalize your paper.
605.201 Introduction to Programming Using Java Assignment 11
1.Write a program that uses one of the Map classes to implement a
contact list. Contact information should include first name, last name, a phone number and an email address. The list should be stored on your computer’s file system and entries sorted alphabetically according to a person’s last name. The program should prompt the user for the name of the file where the information is stored, and allow the user to add a contact from the list, delete a contact from the list, and display the entire contact list. This program counts 65% of the Correctness grade.
2.A print queue is a list of documents, called jobs, waiting to be printed.
Each job is assigned an integer job number and an estimated print
time, in seconds. If a job arrives and the printer is currently printing
another job, the job waits in the print queue. This type of waiting line iscalled a first-in-first-out (FIFO) or first-come-first-serve (FCFS) waiting li ne model or queue. The Java
class is a pretty good class for implementing a waiting line model like this in code.
Write a program that uses a
object to store a list of print jobs in a FIFO queue. We will assume that each job has a unique job number that is assigned sequentially, and that the print time is randomly distributed between 10 seconds and 1000 seconds. These two data elements should be defined as part of a Jobclass. The program should prompt the user to either add a job to the queue or to quit. When a user adds a job, the program assigns a job number and randomly generates a print time for the job. When the user quits, the program will display the jobs (i.e., the job id and print time) in the queue, in the order in which they were added.
For this exercise, you can use the java.util.Random
class to generate random numbers, as follows:
Random rnGenerator = new Random( rnSeed );
// creates a Random object
printTime = rnGenerator
.nextInt(991) + 10;
// next int in range 10-1000
The first statement above instantiates a Random
object called rnGenerator. The constructor argument
is called a random number seed. It is of type long, and is used to help ensure that the same sequence of random numbers is generated each time the program is run…which is helpful for test purposes. The nextInt()method returns a random integer in the range 0 to 999.This program counts 35% of the Correctness grade.
Submit the source code and screen shots of each program’s output in a zip file named as follows: Assignment11 followed by an underscore (_) followed by your first name initial, followed by your last name, followed by your course section number. For example, if your name is Jane Smith and you are in section 81 your zip file would be Assignment11_jsmith81.zip.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more