Questions
C# (Tic-Tac-Toe) Create class TicTacToe that will enable you to write a complete app to play...

C# (Tic-Tac-Toe) Create class TicTacToe that will enable you to write a complete app to play the game of Tic-Tac-Toe. The class contains a private 3-by-3 rectangular array of integers. The constructor should initialize the empty board to all 0s. Allow two human players. Wherever the first player moves, place a 1 in the specified square, and place a 2 wherever the second player moves. Each move must be to an empty square. After each move, determine whether the game has been won and whether it’s a draw. If you feel ambitious, modify your app so that the computer makes the moves for one of the players. Also, allow the player to specify whether he or she wants to go first or second. If you feel exceptionally ambitious, develop an app that will play three-dimensional Tic-Tac-Toe on a 4-by-4-by-4 board. (Use Console Clear)

In: Computer Science

Maglie Company manufactures two video game consoles: handheld and home. The handheld consoles are smaller and...

Maglie Company manufactures two video game consoles: handheld and home. The handheld consoles are smaller and less expensive than the home consoles. The company only recently began producing the home model. Since the introduction of the new product, profits have been steadily declining. Management believes that the accounting system is not accurately allocating costs to products, particularly because sales of the new product have been increasing.

Management has asked you to investigate the cost allocation problem. You find that manufacturing overhead is currently assigned to products based on their direct labor costs. For your investigation, you have data from last year. Manufacturing overhead was $1,273,000 based on production of 340,000 handheld consoles and 106,000 home consoles. Direct labor and direct materials costs were as follows:

Handheld Home Total
Direct labor $ 1,213,250 $ 378,000 $ 1,591,250
Materials 770,000 708,000 1,478,000

Management has determined that overhead costs are caused by three cost drivers. These drivers and their costs for last year are as follows:

Activity Level
Cost Driver Costs Assigned Handheld Home Total
Number of production runs $ 495,000 35 10 45
Quality tests performed 570,000 13 17 30
Shipping orders processed 208,000 100 60 160
Total overhead $ 1,273,000

Required:

a. How much overhead will be assigned to each product if these three cost drivers are used to allocate overhead? What is the total cost per unit produced for each product? (Round "Total cost per unit" to 2 decimal places.)

b. How much overhead will be assigned to each product if direct labor cost is used to allocate overhead? What is the total cost per unit produced for each product? (Do not round intermediate calculations. Round "Total cost per unit" to 2 decimal places.)

In: Accounting

You work on a unit that focuses on pre liver transplants. The patients on your unit...

You work on a unit that focuses on pre liver transplants. The patients on your unit are either being evaluated for the organ transplant list or have been on the list for months or even years and are in the last stages of this disease. Patients in the latter category are in frequent need of blood transfusions and platelets. They would often become very ill and some would die before receiving a new liver. Liver failure is not per se caused like, say, cancer. Often there is a culpability component attached to it. For example, hepatitis is a major cause of liver failure and hepatitis can result from heavy drinking and drug use. One evening you are scheduled to work, you are assigned to a 35 year old patient named Paul. He is being evaluated for a liver transplant. His liver failure was related to hepatitis due to heavy drinking. It was also stated on his kardex that he is a prison inmate. He was assigned 3 guards at all times, 2 in the room, and one at the door. After looking at public record, it turns out he is facing life in prison because he was found guilty of murdering his girlfriend. The cost of the evaluation and liver surgery is generally around $120,000.00. In addition to the cost of surgery, a patient that receives an organ will be on lifelong antirejection medications that are costly also. It turns out that Paul is a match for a liver that has just come in, but another patient is also a match. This other patient is a 67-year-old retired nurse named Nancy. She has no criminal past or history of health problems. She was being evaluated at the same time as Paul for a liver transplant. So both she and Paul were evaluated and found to be a match the same time. Of course, given the law and medical polices, it is not up to you to make the decision which patient gets the liver. With that said, use the resolvedd method to decide who you think should receive the liver based only on the ethical principles we discussed in class. Step (1) In 35 words or more, describe at least two possible solutions to the ethical case study. Step (2) In 50 words or more, describe the consequences and outcomes that would result from the solutions you selected. Step (3) In 75 words or more identify the ethical principles/values that affirm or violate each of the solutions you selected and explain how they affirm or violate your solutions Step (4) In 75 words or more select and justify one of the solutions you think is the best solution to the question posed in the case study.

In: Nursing

Perform one correlation between two independent variables, such as Age and Relationship with Coworkers. Perform the...

Perform one correlation between two independent variables, such as Age and Relationship with Coworkers. Perform the second correlation on an independent variable (such as Relationship with Direct Supervisor) and the dependent variable (such as Workplace Happiness Rating.

Gender Age Supervisor Telecommute Coworkers Happiness Engagement Overall Rating
1 29 1 1 2 7 8 15
2 32 4 1 3 9 10 19
1 39 1 1 1 4 5 8
1 25 2 1 2 5 8 13
1 27 1 1 1 5 4 9
2 33 3 1 2 7 8 15
2 36 3 1 2 8 7 15
1 28 3 1 3 9 8 17
1 34 3 2 3 8 8 16
2 32 2 1 2 6 8 14

In: Statistics and Probability

To be indifferent between two combinations of goods is to: a. receive the same amount of...

To be indifferent between two combinations of goods is to:

a. receive the same amount of utility from the two combinations.

b. make a determination about which combination provides more utility.

c. have a budget constraint that runs through both combinations.

d. pay the same price for the two combinations.

Question 2

How much a consumer values two goods relative to one another can be seen by looking at:

Select one:

a. the slope of the consumer's indifference curves.

b. the intersection of any two indifference curves.

c. the intersection of the budget constraint and an indifference curve.

d. the slope of the consumer's budget constraint.

Question 3

Which of the following is NOT necessarily true about indifference curves?

Select one:

a. Indifference curves further from the origin represent greater levels of utility.

b. Indifference curves slope downward.

c. Indifference curves cannot intersect each other.

d. Indifference curves are always symmetrical.

Question 4

The budget constraint shows how:

Select one:

a. the consumer values two goods relative to one another.

b. the market values two goods relative to one another.

c. quantity demanded goes up when income goes up.

d. quantity demanded goes down when a price goes up.

Question 5

A combination of goods where an indifference curve intersects the budget constraint:

Select one:

a. costs less than any other point on your budget constraint.

b. must cost more than at least one other point on your budget constraint.

c. provides more utility than any other point on your budget constraint.

d. must provide less utility than at least one other point on your budget constraint.

Question 6

Professor Girante says that the way we make choices about what to buy depends on how our dreams and wants meet reality. Our dreams and wants are represented by _______ and reality is represented by _______.

Select one:

a. our incomes and the prices we face; our preferences

b. our indifference curves; our budget constraint

c. our preferences; our indifference curves

d. our budget constraint; our incomes and the prices we face

Question 7

Which of the following is correct?

Select one:

a. Marginal utility from espresso is equal to total utility from espresso divided by the number of espressos.

b. Total utility from espresso is equal to the marginal utility of the last espresso.

c. Marginal utilty from espresso is equal to the sum of the total utility after each espresso.

d. Total utility from espresso is equal to the sum of the marginal utilities of each espresso.

Question 8

Why does Professor Girante mention that Starbucks offers over 80,000 combinations of drinks?

Select one:

a. To show how producers contribute to the difficulty that consumers have making decisions.

b. To show how Starbucks uses bundling and tying to maximize profits.

c. To show the supposed variety that consumers think they enjoy is just an illusion.

d. To show the incredible number of choices that consumers face every day.

Question 9

The budget constraint is:

Select one:

a. upward-sloping because a greater budget means more consumption.

b. bowed-inward because preferences change as consumption changes.

c. a straight line because the price ratio is constant.

d. downward-sloping because of the law of demand.

Question 10

Select one:

a. the affordable combinations of goods from the unaffordable combinations of goods.

b. the units of the good on the horizontal axis from the units of the good on the vertical axis.

c. combinations of goods according to how much utility, or satisfaction, they provide.

d. those combinations of goods that provide utility from those combinations that do not.

question 11

The law of demand arises from:

Select one:

a. the law of supply.

b. every producer analyzing the different choices they have and deciding what to produce.

c. every consumer analyzing the different choices they have and deciding what to buy.

d. the law of market equilibrium.

Question 12

An indifference map is:

Select one:

a. a set of indifference curves each representing different levels of utility.

b. the underlying price and income data that makes up an indifference curve.

c. another name for an indifference curve.

d. a diagram that shows both an indifference curve and a budget constraint.

Question 13

As you move down and to the right along an indifference curve:

Select one:

a. the marginal rate of substitution rises.

b. the price ratio falls

c. the price ratio rises.

d. the marginal rate of substitution falls.

Question 14

Your income is:

Select one:

a. determined entirely by factors not under your control.

b. determined entirely by factors under your control.

c. determined both by factors under your control and factors not under your control.

d. essentially a random variable from the perspective of economists.

When we graph a budget constraint, we put _______ on the vertical axis and _______ on the horizontal axis.

Question 15

Select one:

a. the quantity of one good; the price of another good

b. the price of one good; the quantity of another good

c. the price of one good; the price of another good

d. the quantity of one good; the quantity of another good

In: Economics

A goal of financial literacy for children is to learn how to manage money wisely. One...

A goal of financial literacy for children is to learn how to manage money wisely. One question is: How much money do children have to manage? A recent study by Schnur Educational Research Associates randomly sampled 15 children between 8 and 10 years old and 18 children between 11 and 14 years old and recorded their monthly allowance. Is it reasonable to conclude that the mean allowance received by children between 11 and 14 years is more than the allowance received by children between 8 and 10 years? Use the 0.01 significance level. What is the p-value?

8–10 Years 11–14 Years 8–10 Years 11–14 Years
26 49 26 41
33 44 25 38
30 42 27 44
26 38 29 39
34 39 34 50
26 41 32 49
27 39 41
27 38 42
30 38 30

Click here for the Excel Data File

  1. State the decision rule: H0: μ8-10 Year oldsμ11-14 Year oldsH1: μ8-10 Year olds <μ11-14 Year olds. (Negative value should be indicated by a minus sign. Round your answer to 3 decimal places.)

  1. Compute the value of the test statistic. (Negative value should be indicated by a minus sign. Round your answer to 3 decimal places.)

In: Statistics and Probability

In 2011, Netflix changed the prices of their services. They used to offer two services (one...

In 2011, Netflix changed the prices of their services. They used to offer two services (one DVD at a time through the mail and unlimited streaming) for one prices (about $9) That month, they split the services and started charging about $8 per service ($16 total). That’s pretty large price hike in one fell swoop. There were critics and dooms-day sayers.

People assumed that Netflix profits would drop as people “streamed” away (pun entirely intended). But the company didn’t fold as man thought it might. It’s all about elasticity. Yes, Netflix lost subscribers – lots of them, but remaining customers paid more per service- mostly dropping the less profitable DVD in the mail service. Was it a good move? What happened to their profits? What does this say about knowing the price elasticity of demand for your product? Did Netflix understand the elasticity of demand for their product?

In: Economics

Use LinkedList build-in class (java.util.LinkedList) to write a Java program that has: A. Method to print...

Use LinkedList build-in class (java.util.LinkedList) to write a Java program that has:
A. Method to print all elements of a linked list in order. B. Method to print all elements of a linked list in reverse order. C. Method to print all elements of a linked list in order starting from specific position. D. Method to join two linked lists into the first list in the parameters. E. Method to clone a linked list. The copy list has to be returned as an output of the method. F. Method to search and return position of an element in the list. Return -999 if it is not exist. G. Method to compare between two linked lists. Return true if they are equal. H. Method to convert a linked list into an array. The method should return the array as an output. I. test method to : 1. Append {12, 44, 11, 2, 201, 2200, 332, 5, 112} to the end of list1. 2. Print all elements in list1. 3. Print all elements in list1starting at position 4. 4. Insert the specified element at position 2 in list1. 5. Print all elements in reverse order for list1. 6. Insert 99 into list1 at the first position and 777 at the last position. 7. Print the second largest element in list1 and print its position. 8. Remove element 201 from list1. 9. Remove first and last element from list1. 10. Print all elements in list1. 11. Swap positions between 11 and 2200 in the linked list 12. Append {45, 56, 67, 78, 89} to the end of a linked list list2. 13. Clone list1 to list3. 14. Compare between list1 and list2. 15. Compare between list1 and list3. 16. Join list1 and list2 to list1 17. Print all elements in list1. 18. Check if 99, 777 and 11 are exists in list1. Each as separate case. 19. Convert list1 into array1. Then print array1 20. Remove all the elements from list3.

In: Computer Science

USING THE TABE BELOW, PART1 COMPLETE THE TABLE. PLOT "APP" AND 'MPP" in one diagram. AT...

USING THE TABE BELOW,

PART1

  1. COMPLETE THE TABLE.
  2. PLOT "APP" AND 'MPP" in one diagram.
  3. AT WHICH LEVEL OF LABOR DOES "LAW OF DIMINISHING RETURN" START TO APPEAR?
  4. AT WHICH. LEVEL OF LABOR DOES MPP CURVE CROSS THE APP CURVE?
  5. IN THE BEGINING , AS LABOR INCREASES, DOES APP INCREASE OR DECREASE? BY USING ONE PARAGRAPH, BRIEFLY EXPLAIN WHY.

L Q APP. MPP

0 0 NA NA

1 40. ? ?

2 90 ? ?

3. 150 ? ?

4 200 ? ?

5 240 ? ?

6 270 ? ?

7 290 ? ?

8 300. ? ?

part 2

1.complete the table.'

2.plot ATC, AVC, and MC in one diagram.

3.At which level of output (except Q=1), does MC curve cross the AVC curve?

4.Approximately, at which level of output, does MC curve cross the ATC curve?

5.Does ATC lie above AVC in your diagram, that is, ATC >AVC at each output level? why or why not?

6.Eventually, as output increases, does ATC increase or decrease? By using one paragraph, briefly explain why.

Q TFC TVC TC AFC AVC ATC MC

0 ? ? 30 NA. NA NA. NA

1 ? ? 50 ? ? ? ?

2 ? ? 58 ? ? ? ?

3 ? ? 65 ? ? ? ?

4 ? ? 70 ? ? ? ?

5 ? ? 80 ? ? ? ?

6 ? ? 95 ? ? ? ?

7 ? ? 115 ? ? ? ?

8 ? ? 140 ? ? ? ?

9 ? ? 170 ? ? ? ?

In: Economics

C++ DO not use arrays to write this program. Write a program that repeatedly generates three...

C++ DO not use arrays to write this program.

Write a program that repeatedly generates three random integers in the range [1, 100] and continues as follows:

  • If the right-most digit of all the three integers is equal, the program displays them in ascending order on the screen and continues. If the generated integers have different right-most digits, they are not displayed and the program continues. The program terminates once the right-most digits of all the three random numbers are equal to 0. For example, assuming:
    • the first three random integers are: 98, 23, 48
    • the second three random integers are: 45, 5, 75
    • the third three random integers are: 4, 95, 33
    • the fourth three random integers are: 11, 61, 21
    • the fifth three random integers are: 100, 20, 40 ---------> The program terminates as all the three numbers end with 0

The output will be:

5, 45, 75

11, 21, 61

20, 40, 100

Please notice that all the numbers are not displayed at the end of the program. Every line is displayed in one iteration and the last line is displayed in the last iteration of your loop.

  • If the very first set of numbers generated all end with zero, for example, the first three integers are: 50, 40, 10, after the program shows these three numbers in ascending order, it also displays: "... are your lucky numbers."

So, the output would be:

10, 40, 50 are your lucky numbers.

California College

In: Computer Science