Questions
Write a class (and a client class to test it) that encapsulates a tic-tac-toe board. A...

Write a class (and a client class to test it) that encapsulates a tic-tac-toe board. A tic-tac-toe board looks like a table of three rows and three columns partially or completely filled with the characters X and O. At any point, a cell of that table could be empty or could contain an X or an O. You should have one instance variable, a two-dimensional array of values representing the tic-tac-toe board.

This game should involve one human player vs. the computer (aka, it should be a one player game). At the start of each game, randomly select if the computer will play X or O and who (i.e. human or computer) will make the first move.

Your default constructor should instantiate the array so that it represents an empty board.

You should include the following methods:

a method that generates a valid play by the computer and displays the board after each play.

a method that requests a valid play from the human and displays the board after each play.

a method to display the tic-tac-toe board.

a method checking if a player has won based on the contents of the board; this method takes no parameter. It returns X if the "X player" has won, O if the "O player" has won, T if the game was a tie. A player wins if he or she has placed an X (or an O) in all cells in a row, all cells in a column, or all cells in one of the diagonals.

NOTE: Be sure to display the board after each move. You must provide clear prompts for the human player to select a space on the tic-tac-toe board.

Input Validation: Verify that all moves by the human player are to a valid space on the tic-tac-toe board. An incorrect choice should not halt or terminate the game. Also, no human vs. human mode should be included in the program. Just Human vs. the Computer is what the game should only involve.

In: Computer Science

The human heart has four chambers (two atria and two ventricles). In the human foetus, there...

The human heart has four chambers (two atria and two ventricles). In the human foetus, there is an opening between the right and left atria, and they function as one atrium. This opening closes after the birth. In some cases, it does not close completely. In most of these cases, this incomplete closure remains undetected throughout life. If a large opening occurs between the right and left ventricles, as seen in normal reptiles, children with this condition cannot survive without surgical intervention.

Please answer the following sub-questions separately.

1)What is the name of the opening between the right and left atria?(1 mark)

2)In rare cases, an infant with this incomplete closure shows a clinical sign. What is the most likely sign?(1 mark)

3)Briefly explain the pathophysiological process that leads to this clinical sign.

4)How many chambers does the frog usually have? (0.5 mark)

5)Briefly explain the circulation system of the fish including the anatomy of its heart.(1.5 mark)

6)Some fish or reptiles can be larger than human infants. Generate your own hypothesis and explain why the human requires a four-chambered heart (two atria and two ventricles).

In: Biology

Describe some human activity that results in fluxes of carbon to the atmosphere. Describe human activity...

Describe some human activity that results in fluxes of carbon to the atmosphere. Describe human activity that results in movement of carbon from the atmosphere to the land. How do these changes compare to other fluxes in the Carbon cycle and why are they causing an imbalance to the global carbon cycle?

In: Biology

1-Fill in the blank: Efficient human to human transmission (spread) is required for an influenza virus...

1-Fill in the blank: Efficient human to human transmission (spread) is required for an

influenza virus to cause a(n) _________.

2-true or False: Mutations of the CCR5 gene can confer a resistance to infection with HIV?

3-What role does the full length RNA and fragmented RNA play during norovirus replication?

4-Describe the Kaplan criteria for a norovirus infection ?

In: Biology

The science of ergonomics studies the influence of "human factors” in technology, i.e., how human beings...

The science of ergonomics studies the influence of "human factors” in technology, i.e., how human beings relate to and work with machines. With the widespread use of computers for data processing, computer scientists and psychologists are getting together to study human factors. One typical study investigated the productivity of secretaries with different word processing programs. An identical task was given to 18 secretaries, randomly allocated to three groups. Group 1 used a primarily menu-driven program. Group 2 used a command-driven program, and Group 3 used a mixture of both approaches. MINITAB produced the following ANOVA. Use it to answer the questions below. One-way ANOVA: Group1, Group2, Group3

Source

DF   

SS MS

F   

Factor 1 0.97336 0.97336 2026.95
Error 18 0.00864 0.00048
Total 19 0.98200

S = 0.02191 R-Sq = 99.1% R-Sq(adj) = 99.1% ?0.01 /(1,18) = 8.2854

A. Test the Null Hypothesis that the true mean time is the same for all three groups. As always, clearly state the null and alternative hypotheses. Use a 0.01 level of significance. Show clearly how you make your decision. What conclusion would you arrive at? Make sure you use wording that would make your Statistic teacher happy and then phrase your answer so that a “friend” would understand what your conclusions are.

In: Statistics and Probability

1. A computer is an example of human capital. T/F 2. Human capital refers to the...

1. A computer is an example of human capital. T/F

2. Human capital refers to the physical tools and equipment that workers use on their jobs to enhance their productivity. T/F

3. Since measurable factors such as years of experience and years of education explain less than half of the variation in wages, ability, effort, and chance must play a significant role in determining wages. T/F

4. The poverty rate is the percentage of the population whose family income falls below the poverty line. T/F

5. The poverty rate is an absolute level of income set by the federal government for each family size. A family with income below this rate is deemed to be in poverty. T/F

6. The economic life cycle describes how young people usually have higher savings rates than middle-aged people. T/F

In: Economics

What is your personal beliefs about the nature of human behavior, the basic tenets of human...

What is your personal beliefs about the nature of human behavior, the basic tenets of human needs, and the principles and approaches of counseling that you believe to most effectively address such behavior and needs? Include your beliefs about the therapeutic relationship, personal strengths, and characteristics that you bring to such a relationship and ethical guidelines that you consider important to adhere to within such a relationship.

In: Psychology

Consider the following predicates: HUMAN(x) – x is a human being AFRICANAMERICAN(x) – x is an...

  1. Consider the following predicates:

HUMAN(x) – x is a human being

AFRICANAMERICAN(x) – x is an African-American

STUDENT(x) – x is a UMW student

LIKES(p,h) – person p likes hobby h

COURSE(c) - c is a UMW course

REQUIRED(c,s) – c is a required course for student s

NFLTEAM(x) – x is an NFL team

SUPERBOWL(a, n, y) – teams a and n played in the Superbowl in year y

SUPERBOWLWIN(a, y) – team a won the Superbowl in year y

WEARING(p,i) – person p is wearing item i

HIDING(p, f) – person p is concealing fact f from the population at large

DAYFEELSLIKE(d, t) – on day d, I feel like doing activity t

PRESIDENT(x) – x is, or was, President of the United States

Write expressions in predicate logic for each of the following sentences using only the predicates listed above.

  1. “There is a course at UMW that every student must take.”
  2. “Not every NFL team has made it to the Superbowl.”
  3. “Some people like skateboarding and knitting.”
  4. “If you wear sunglasses, you’re hiding something.”
  5. “Some days, I feel like singing – and on those days, I never feel like crying.”
  6. “Barack Obama is the only African-American president in U.S. history.”
  7. “There has never been an NFL team that has won the Superbowl 4 years in a row

In: Computer Science

1N - Part 1 In a functioning human eye, light enters the human eye through the...

1N - Part 1

In a functioning human eye, light enters the human eye through the lense and reaches the retina. What does the retina interpret or record the light as and what type of message does it convert it into?

1N - Part 2

In regard to the above, where does the retina send the message it converts light into to, and through which nerve does it send it?

1N - Part 3

If a person’s eye is damaged in a way that obstructs light from reaching the retina, what impact can this have on their sight?

1N - Part 4

Briefly explain how the sense of sight contributes to a person’s sense of equilibrium?

1N - Part 5

What are the hair-like structures in the nasal cavity that contribute to the human sense of smell called?

1N - Part 6

In regard to the above, explain what these hair-like structures do when they sense odour in order to allow humans to have a sense of smell?

1N - Part 7

What other sense does human’s sense of smell enhance?

1N - Part 8

Which part of the ear is made up of the pinna and the external auditory canal?

1N - Part 9

Briefly explain the role/function of the pinna and the external auditory canal play in the human sense of hearing?

In: Anatomy and Physiology

Making Human Resource Decisions Scenario: You are the Director of Human Resources for your company. The...

Making Human Resource Decisions

Scenario:

You are the Director of Human Resources for your company. The CEO has just informed you that the financial state of the company is dire, and as a result, he is approaching the managers of each department and asking them to reduce personnel costs. The company makes its profits primarily on services such as business consulting, cloud-based storage for large companies, and other small miscellaneous business products. The industry has become highly competitive and sales are down. There is not enough revenue at this point to pay all of the salespeople.

You are charged with devising a plan to determine how personnel costs will be reduced. After much deliberation, you decide on three options. Because this is a management dilemma, none of these options are optimal. Further, cost/ benefit analysis has a role in the decision making process, but as you are dealing with people, this type of analysis is complicated and subjective.

Options:

  1.  Lay off employees and use them only as needed on a project or change employment structure (i.e. move some employees to independent contractors)

  2.  Reduce salaries across the board

  3.  Reduce hours and/or benefits for lower-level staff

Instructions:

Choose one of the above options and defend this decision. Use concepts from the chapter to defend your decision.

In: Operations Management