Lab Assignment
Write a Java program that implements a queue in a hospital. I want your program to ask the user to enter the number of patients then enter the patient number starting from 110 till the end of the queue then print number of patients waiting in the queue.
Suppose you have a queue D containing the numbers (1,2,3,4,5,6,7,8), in this order. Suppose further that you have an initially empty Stack S. Give a code fragment that uses S, to store the elements in the order (8,7,6,5,4,3,2,1) in D.
Q. What values are returned during the following sequence of queue operations, if executed on an initially empty queue?
enqueue(5), enqueue(3), dequeue(),
enqueue(2), enqueue(8), dequeue(), dequeue(), enqueue(9), enqueue(1),
dequeue(), enqueue(7), enqueue(6), dequeue(), dequeue(), enqueue(4),
dequeue(), dequeue().
In: Computer Science
When the whole COVID-19 pandemic is over, who will emerge better off? Who will have lost? Some struggle, but some thrive during this crisis. You can find relevant articlesregarding business opportunities and threats arising from COVID-19 crisis, and share with the class. Please be sure to add your own insights and comments and draw clear links to the course content.
In: Operations Management
Play the estampie. Is it danceable? What element of music is the most important for dancing?
In: Psychology
Sub: cloud computing
Based on below scenario answer the question
With DTGOV’s client portfolio expanding to include public-sector
organizations, many of it cloud computing policies have become
unsuitable and require modification. Considering that public-sector
organizations frequently handle strategic information, security
safeguards needs to be established to protect data manipulation and
to establish a means of auditing activities that may impact
government operations.
What security measures would have been implemented by DTGOV to
resolve this?
In: Computer Science
Write a program in java that asks the name of the buyer and the number of shares bought. Your program must then calculate and display the following. sold stock/shares to the general public at the rate of $24.89 per share. Theres a 2 percent (2%) commission for the transaction.
Outputs need
Amount paid for buying the stock ($)
Amount paid for the commission ($)
Total amount ($)
In: Computer Science
Subject: cloud computing
Based on below case, answer the question
The migration of applications to ATN’s new PaaS platform was successful, but also raised a number of new concerns pertaining to the responsiveness and availability of PaaS-hosted IT resource. ATN intends to move more applications to a PaaS platform, but decides to do so by establishing a second PaaS environment with a different cloud provider. This will allow them to compare cloud providers during a three month assessment period. Discuss on what different features the organization will consider when planning to make a comparison
In: Computer Science
In: Operations Management
1. A research study was conducted to examine the clinical efficacy of a new antidepressant. Depressed patients were randomly assigned to one of three groups: a placebo group, a group that received a moderate dose of the drug, and a group that received a high dose of the drug. After four weeks of treatment, the patients completed the Beck Depression Inventory. The higher the score, the more depressed the patient. The data are presented below. Use the Microsoft Excel "Anova Single-Factor" Data Analysis tool to conduct a 1-way ANOVA test for the data in the following table:
Placebo | Moderate Dose | High Dose |
42 | 22 | 10 |
52 | 19 | 14 |
39 | 8 | 12 |
33 | 23 | 19 |
41 | 31 | 10 |
In: Operations Management
In: Economics
In: Accounting
In this hypothetical case study, a new rapid test kit nicknamed Alpha is being reviewed. The sensitivity of Alpha is 93.0% (0.93) and the specificity is 96.0% (0.96). Assume that the actual prevalence of the Zika antibody among the United States population of blood donors is 4% (0.04) and that of the hurricane disaster relief volunteers returning from Puerto Rico is 20.0% (0.20).
Construct a separate 2 x 2 table, to calculate the PPV and NPV for a population of 2,500 volunteers who aided in the recent hurricane relief efforts in the Caribbean.
If sensitivity and specificity remain constant, what is the relationship of prevalence to predictive-value positive and predictive-value negative? (Hint: Think if one increases, decreases, or stays the same.)
In: Math
Consider the TV shows you watched as kids. What was the gender of the characters? What did each character do? What role did the characters have in the show? Were there more male or female characters? How prominent are female roles? Are female characters positive or negative? Are there differences among the various types of shows you watched? What messages do these shows send to girls and to boys?
In: Psychology
King City Specialty Bikes (KCSB) produces high-end bicycles. Costs to manufacture and market the bicycles at last year's volume level of 2,050 bicycles per month are shown in the following table:
Variable manufacturing per unit | $226.00 |
Total fixed manufacturing | $266,500 |
Variable nonmanufacturing per unit | $54.00 |
Total fixed nonmanufacturing | $282,900 |
KCSB expects to produce and sell 2,250 bicycles per month in the coming year. The bicycles sell for $610 each.
KCSB receives a proposal from an outside contractor who, for $160 per bicycle, will assemble 900 bicycles per month and ship them directly to KCSB's customers as orders are received from KCSB's sales force. KCSB would provide the materials for each bicycle, but the outside contractor would assemble, box, and ship the bicycles. The variable manufacturing costs would be reduced by 45% for the 900 bicycles assembled by the outside contractor, and variable nonmanufacturing costs for the 900 bicycles would be cut by 60%.
KCSB's marketing manager thinks that it could sell 75 specialty racing bicycles per month for $6,000 each, and its production manager thinks that it could use the idle resources to produce each of these bicycles for variable manufacturing costs of $4,900 per bicycle and variable nonmanufacturing costs of $450 per bicycle.
If KCSB accepts the proposal, it would be able to save $26,650 of fixed manufacturing costs; fixed nonmanufacturing costs would be unchanged.
REQUIRED [Note: Round unit cost computations to the nearest cent]
What is the difference in KCSB's monthly costs between accepting the proposal and rejecting the proposal? (Note: If the costs of accepting the proposal are less than the costs of rejecting it, enter the difference as a positive number; if the accept costs are more than the reject costs, enter the difference as a negative number.)
In: Accounting
Although an insurance adjuster is highly skilled and experienced she sometimes lacks confidence in her abilities, particularly on new assignments. She seems to believe that any new accomplishments are due more to luck than her own expertise. Moreover, her work involves interacting with clients who are sometimes aggressive or hostile. This is a stressful situation to most insurance adjusters, including this employee.
Use path-goal theory to identify and describe the best leadership style or styles that this employee's immediate supervisor should use to improve her effectiveness as an insurance adjuster. Explain why this/these style(s) is/are appropriate in this situation.
In: Operations Management
short answer questions
In: Operations Management