Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
A company has six hiring positions with more people wanting jobs than the number of available positions. The company managers decide in order to give more people an opportunity to make money; they will allow people to work in three-month intervals. The first six people on the waiting list will be hired in the order that they are on the waiting list. The first six people will keep these positions for three months. At the end of three months, the manager will roll a dice to determine the number of people who will lose their jobs. The company will use the policy of last-hired-first-fired. For example, if the dice roll is 3, the last 3 people hired will lose their jobs to the first 3 people on the waiting list. People losing their jobs will be placed on the back of the waiting list in the order that they are fired. This process will continue for every three-month interval.
Write a program to simulate this process. Use the following guidelines. - Use a stack to represent the list of workers. - Use a queue to represent the list of people waiting to work. - Simulate a manager rolling a dice by randomly generating a number 1 through 6. Note: Use the C++ function - rand(). (To use this function you may need to include <stdlib.h> or <cstdlib>.) - At the end of each three-month interval, show the dice value, the worker's list in the order from last hired to first hired, the waiting list in order of first to last. - Ask the user if they want the see the workers list and the waiting list at the end of the next three months. Program ends if the user does not want to see any more.
Sample input: Ask the user for the number of people needing jobs. This number must be greater than 6. Using that number, randomly generate the list of ID numbers for the workers. An ID number should be greater than or equal to 100 and less than 1000. Make sure no two workers have the same ID. (Hint: Use the following to generate an ID number: ID = 100 + rand()% 900.)
Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.
Write a method, getFirstLine, that is passed a String argument and that returns the first line.
Solve the programming problem
It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.
Create a class HugeInteger which uses a 25-element array of didgits to store integers as large as 25 digits. Provide services inputHugeInteger, otputHugeInteger.
Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk
Create an application which allows a user to input a price until suiatble sentinel value is entered. Output is a price of each item on each day,one through seven.
Calculate hit ratio for program that loops 10 times from locations 0 - 64.
Write a program which randomly fills in 0s and 1s into TicTacToe board, prints board.
Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:
Add method union to interface BagInterface for ADT bag which returns as new bag the union of bag receiving call to method and bag which is the method's one argument.
Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd