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. 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.
In: Computer Science
What types of research projects can you think of Cognitive Science?
For example, an example of a very famous research project is Dr. Rosalind Picard's Affective computing and autism project. Can you think of 5 research projects that are Cognitive Science and Artificial Intelligence/Machine Learning research projects? Please include the name of the professor and the name of the university where the research project is being conducted.
Cognitive Science:
Studying in scientific way about human thoughts, learning and mental organization.
What types of research projects can you think of Cognitive Science?
Research projects which explains human thoughts, learning and mental organization in deep and scientific way.
5 research projects:
| Research project | Professor | Name of the university |
| 1.Modelling the Human Cortex in Three Dimesions | Esther Kuehn | Max Planck Institute for Human Cognitive and Brain Sciences, Germany |
|
2.Neurons That Update Representations of the Future |
Peggy series | University of Edinburgh, Informatics, UK |
| 3.The Regulatory Role of the Human Mediodorsal Thalamus | Giulio Pergola | University of Bari Aldo Moro, Italy |
| 4.Studying Implicit Social Cognition with Noninvasive Brain Stimulation | Maddalena Marini | Harvard University, Cambridge, USA |
| 5.Face Space Representations in Deep Convolutional Neural Networks |
Alice J. O’Toole |
The University of Texas at Dallas, USA |
This is the type of example I am looking for: Automated ‘coach’ could help with social interactions
New software system from MIT could help people improve their conversational and interview skills.
Teaching Social Skills: Using his expertise in computer science, machine learning, and artificial intelligence, Ehsan Hoque, assistant professor of computer science, has since created an automated conversation assistant that senses body language and emotion.
The biggest problem with this example is that sometimes there is very little info on these projects.
In: Psychology
|
KHP mass measurements |
Titration of KHP with NaOH |
|||||
|
Initial (g) |
Final (g) |
Total (g) |
Initial NaOH vol. (mL) |
Final NaOH vol. (mL) |
Total NaOH sol’n (mL) |
NaOH molarity (molarity) |
|
73.9473 |
74.1675 |
0.2202 |
1.69 |
22.32 |
20.63 |
0.0523 |
|
97.6215 |
97.8296 |
0.2081 |
3.76 |
23.32 |
19.56 |
0.0521 |
|
95.8243 |
96.0261 |
0.2018 |
1.23 |
20.62 |
19.39 |
0.0510 |
From the sample volume and distances to the first and second equivalence points, calculate the molarities of hydrochloric and phosphoric acids in the sample. GIve uncertainties for the calculated molarities. How well do the replicated tritrations agree?
In: Chemistry
Which type of compound is an electrolyte if it is soluble in water?
a) an ionic compound soluble in water
b) a nonpolar molecular compund not soluble in water
c) a polar molecular covalent compound that is not a strong acid and does not ionize in water
2. When an electrolyte is dissolved in water, which of the following can carry the electric current in the aqueous solution?
a) water molecules b) cations c) anions d) both cations and anions
3. Which of the following are weak electrolytes?
a) molecular covalent compounds that are weak acids and ionize slightly in water
b) molecular covalent compounds that are weak bases and ionize slightly in water
c) both of these
In: Chemistry
Which type of compound is an electrolyte if it is soluble in water?
a) an ionic compound soluble in water
b) a nonpolar molecular compund not soluble in water
c) a polar molecular covalent compound that is not a strong acid and does not ionize in water
2. When an electrolyte is dissolved in water, which of the following can carry the electric current in the aqueous solution?
a) water molecules b) cations c) anions d) both cations and anions
3. Which of the following are weak electrolytes?
a) molecular covalent compounds that are weak acids and ionize slightly in water
b) molecular covalent compounds that are weak bases and ionize slightly in water
c) both of these
In: Chemistry
Ch 2-
ch 3
In: Biology
A View of Life and its Chemical Basis.
1. Explain the
basic characteristics that are common to all living things. 2.
Describe the levels of organization of life. 3. Distinguish among
the three domains of life and kingdoms. 4. Explain the process of
natural selection. 5. Identify the components of the scientific
method. 6. Contrast ionic and covalent bonds. 7. Explain how the
properties of water make life possible. 8. Recognize the importance
of functional groups in determining the chemical properties of an
organic molecule. 9. Summarize the categories of the main
macromolecules and provide examples of their diverse biological
functions: carbohydrates, lipids, proteins and nucleic
acids.
In: Biology
2. This extraction involves acid/base chemistry. Some amines (like carboxylic acids) are not very water soluble, but that property can change because of their basicity (or acidity). Which of the following could be added to an amine in order to make it more water soluble? (NOTE: look up relevant pKa and/or pKb values)
NaOEt
H2O
NaHSO4
H2
3. Benzoic acid is dissolved in a solution of sodium hydroxide. Half of the solution is added to a separatory funnel and combined with diethyl ether. The funnel is shaken vigorously. The ether now contains : a) sodium benzoate b) benzoic acid c) nothing d) sodium hydroxide
In: Chemistry
In: Physics
In: Biology