Java please. No "hard coding" please. Need to ask for the file and load the sample file information into the class.
There is a complete theory about how queues work. In this problem create a limited model to study the order in which a bunch of customers will be attended by their cashiers on a supermarket. The conditions for the experiment are:
• Each cashier spends the same amount of time with each customer (this is just an exercise, not real life).
• There will be a defined number of queues but never less than 2 and never more than 5.
• There is a variable number of customers, never less than 1 and never more than 20 and they are identified by a letter (A, B, C, …)
• The customers are distributed randomly among the different queues. • If two customers are served at the same time, we would consider that they will be ordered following the queue number they are at (first will be customer in queue 1, second customer in queue 2)
Write a program to give the order in which the customers are attended, for example:
• There are 4 queues:
• Cashier number 1 spends 3 minutes on each customer
• Cashier number 2 spends 2 minutes on each customer
• Cashier number 3 spends 4 minutes on each customer
• Cashier number 4 spends 1 minutes on each customer
• Customers are distributed as follows:
• Queue 1 (Cashier 1): Customer A, customer E, customer I
• Queue 2 (Cashier 2): B, F, J, N
• Queue 3 (Cashier 3): C, G, L
• Queue 4 (Cashier 4): D, H, M, O, P, Q
With this input the customers will have been served in the following order and timing:
D (after 1 minute)
B (after 2 minutes on queue 2)
H (after 2 minutes on queue 4)
A (after 3 minutes on queue 1)
M (after 3 minutes on queue 4)
F (after 4 minutes on queue 2)
C (after 4 minutes on queue 3)
O (after 4 minutes on queue 4)
P (after 5 minutes)
E (after 6 minutes on queue 1)
J (after 6 minutes on queue 2)
Q (after 6 minutes on queue 4)
N (after 8 minutes on queue 2)
G (after 8 minutes on queue 3)
I (after 9 minutes)
L (after 12 minutes)
The input from a data file will have the number of queues on the first line, followed by the information for each queue, first the time spent by the cashier on a customer, the number of customers on a queue and then the order of the customers separated by a space.
Output to the screen the list of served customers ordered by the time spent in the queue separated by spaces.
Must use a queue data structure.
Refer to the sample output below.
Sample File: the following information is on the queues.txt file
4
3 3 A E I
2 4 B F J N
4 3 C G L
1 6 D H M O P Q
Sample Run:
Enter file name: queues.txt
The list ordered by time spent: D B H A M F C O P E J Q N G I L
In: Computer Science
High Kite is one of the foremost performance kite makers in Australia. The company has always prepared a budget that is calculated using only one estimated volume of sales. You recently joined the company as a junior accountant. You are required to set up a spreadsheet for sensitivity analysis in the budgeting process. This year it appears that the company may not meet expectations, which could result in a loss. Top manager is concerned that the company will incur a loss again next year, and he wants to develop a budget that will easily reflect changes in the assumptions.
The senior accountant provided you with the following data about the year 2021’s planned operations:
|
Direct labour requirement and rate: |
||
|
Assembly |
Packaging |
|
|
Hours per kite |
0.6 |
0.2 |
|
Rate per hour |
$36.00 |
$24.00 |
|
Use of direct materials in $ per kite: |
||
|
Nylon |
$12.00 |
|
|
Ribs |
$4.00 |
|
|
String |
$2.00 |
|
Direct materials inventory (in $): |
||
|
Expected inventories, 1 January |
Desired inventories, 31 December |
|
|
Nylon |
$5,000 |
$5,200 |
|
Ribs |
$4,200 |
$4,500 |
|
Strings |
$1,000 |
$1,200 |
|
Finished goods inventory (in units): |
||
|
Expected inventories, 1 January |
Desired inventories, 31 December |
|
|
Units |
4000 |
4300 |
|
Sales forecast: |
|
|
Selling price |
$115 |
|
Volume of sales (in units): |
62000 |
Required:
a) Prepare a sales budget (in dollars) for 2021.
b) Prepare a production budget (in units) for 2021.
c). Prepare a direct material purchases budget for all the required materials (in dollars) for 2021.
d) Prepare a direct labour budget (in dollars) for 2021.
e). Prepare a budgeted income statement for the year ending December 31, 2021. You are provided the following budgets: (1) Manufacturing overhead budget shows expected costs to be 100% of direct labour cost, (2) selling and administrative expenses are expected to be 12% of the expected sales revenue, and (3) expected interest expense is $200,000. The company’s income tax rate is expected to be 30% of its income before tax.
The top manager would like to prepare a budget for cash flows on a monthly basis so that they can plan short-term investments and borrowings.
The company’s sales are highest during the spring and summer. Sales are fairly even within each quarter (sales are even within 3 months of each quarter), but sales vary across quarters as follows:
|
Distribution of sales |
||
|
January - March |
30% |
|
|
April - June |
20% |
|
|
July - September |
10% |
|
|
October - December |
40% |
Payments from customers are usually received as follows:
|
Monthly payment from customers: |
|
|
Pay during the month goods are received |
60% |
|
Pay the next month |
38% |
|
Bad debts |
2% |
f) Prepare monthly budgets for cash receipts for 2021. (Hint: you may have to present a table of monthly sales, receipts of the month and from the prior month, and the monthly total receipts.)
In: Accounting
Comprehensive Problem 4 a-g
Kristin Malone opened Kristin’s Maids Cleaning Service on July 1, 2019. During July, the company completed the following transactions.
Need help with posting adjusting entries
| July | 1 | Stockholders invested $17,000 cash in the business in exchange for common stock. | |
| 1 | Purchased a used truck for $11,000, paying $2,800 cash and the balance on account. | ||
| 3 | Purchased cleaning supplies for $900 on account. | ||
| 5 | Paid $1,644 on a 1-year insurance policy, effective July 1. | ||
| 12 | Billed customers $3,700 for cleaning services. | ||
| 18 | Paid $1,100 of amount owed on truck, and $260 of amount owed on cleaning supplies. | ||
| 20 | Paid $1,800 for employee salaries. | ||
| 21 | Collected $1,700 from customers billed on July 12. | ||
| 25 | Billed customers $1,600 for cleaning services. | ||
| 31 | Paid gasoline for the month on the truck, $300. | ||
| 31 | Declared and paid a $500 cash dividend. |
| (c) | Enter the following adjustments | |||
| (1) | Unbilled fees for services performed at July 31 were $1,500. | |||
| (2) | Depreciation on equipment for the month was $200. | |||
| (3) | One-twelfth of the insurance expired. | |||
| (4) | An inventory count shows $100 of cleaning supplies on hand at July 31. | |||
| (5) | Accrued but unpaid employee salaries were $600. | |||
Post adjusting entries
In: Accounting
Define a "major customer" of a company. What information must be disclosed about the major customers? Why is the disclosure of this information important? Are the names disclosed? Should they be?
In: Accounting
In: Statistics and Probability
74
Productive efficiency means that the firm is producing at the lowest cost possible.
True or False
75
Which formula below best describes human behavior?
Multiple Choice
MC = MR
E > 1
E = 1
MB = MC
76
Costco, Wal-Mart, and Target probably control over 70 percent of the market share in the large superstore discount retailing industry. The ‘kinked’ demand curve is used to explain this industry is all part of the Monopolistic Competition market structure.
True or False
77
Suppose that Lockheed Martin (the military defense contractor) invented a very sophisticated fighter jet. If they could only sell this advanced plane exclusively to the U.S. government, then the U.S. government would be classified as a monopsony buyer.
True or False
In: Economics
In: Economics
If a school district takes a random sample of 74 Math SAT scores and finds that the average is 490, and knowing that the population standard deviation of Math SAT scores is intended to be 100. Find a 99% confidence interval for the mean math SAT score for this district.
≤μ≤
In: Statistics and Probability
Catherine Colonic, 74 years of age, is a male patient who was admitted to the surgical unit after undergoing a laparascopic right hemicolectomy.
The patient has several small abdominal incisions and a clear dressing over each site. The incisions are well approximated and the staples are dry and intact.
There is a Jackson-Pratt drain intact with minimal serous sanguineous drainage present.
The patient has a Salem sump tube connected to low continuous wall suction that is draining a small amount of brown liquid. The patient has no bowel sounds. The Foley catheter has a small amount of dark amber-colored urine without sediments. The patient has sequential compression device (SCD) in place.
The nurse performs an assessment and notes that the patient’s breath sounds are decreased bilaterally in the bases and the patient has inspiratory crackles. The patient’s cardiac assessment is within normal limits. The patient is receiving O2 at 2 L per nasal cannula with a pulse oximetry reading of 95%. The vital signs include: blood pressure, 100/50 mm Hg; heart rate 110 bpm; respiratory rate 16 breaths/min; and the patient is afebrile. The patient is confused as to place and time.
Exercise 2: Postop Nursing Management
Anthony Abscess is admitted to the hospital for surgical incision and drainage (I&D) and packing of an abscess on his right calf, which resulted from a farm machinery accident. The right calf has an area 3 cm × 2.5 cm, which is red, warm and hard to touch, and edematous.
In: Nursing
Rita Schmidt, 74 years of age, is a female patient who was admitted to the surgical unit after undergoing removal of a section of the colon for colorectal cancer. The patient has a colostomy on her left (descending colon) abdomen. The patient has several small abdominal incisions and a clear dressing over each site. The incisions are well approximated and the staples are dry and intact. There is a Jackson--Pratt drain intact with minimal serous sanguineous drainage present. The colostomy is not functioning at this time. The patient has a Salem sump tube connected to low continuous wall suction that is draining a small amount of brown liquid. The patient has no bowel sounds. The Foley catheter has a small amount of dark amber-colored urine without sediments. The patient has a sequential compression device (SCD) in place. The nurse performs an assessment and notes that the patient’s breath sounds are decreased bilaterally in the bases and the patient has inspiratory crackles. The patient’s cardiac assessment is within normal limits. The patient is receiving O2 at 2 L per nasal cannula with a pulse oximetry reading of 95%. The vital signs include: blood pressure, 100/50 mm Hg; heart rate, 110 bpm; respiratory rate, 16 breaths/min; and the patient is afebrile. The patient is confused as to place and time.
Perform a complete assessment addressing each system. Under ASSESSMENT for each system list the findings in the case study (both normal& abnormal). Under CRITICAL THINKING list (1) factors which may be contributing to the findings in ASSESSMENT (2) your interpretation of what these findings mean is happening physiologically (3) nursing interventions (independent or dependent) you want to implement as a result of (1) & (2) (28 POINTS/4 FOR EACH SYSTEM)
SYSTEM ASSESSMENT CRITICAL THINKING
|
Neuro |
||
|
Resp |
||
|
Cardiac |
||
|
GI |
. |
|
|
GU |
||
|
Integumentary |
||
|
Pain |
In: Nursing