2.Greetings. I need help asap when it comes to a computer science project that I have to get done soon.
...
. I'm really close to completing it and I'm really stuck on this one situation and I don't know how to solve it. So right now I'm making a guessing game and every time you play the program tells the user how many guesses it took for them to get the answer. And what I need to do is to make sure that I get and isolate the lowest amount of guess and put it into the statistics function so that way it can print out the lowest amount of guesses that I got. Right now it isn't working and I really don't know why as it seems to be mostly adding up all the guesses until the last few. Here's my code:
#include
#include
#include
#include
void haiku(){
printf("Welcome to the game.\n");
printf("Guess a number within range.\n");
printf("Win cool prizes here.\n\n");
}
int compare(int guessiso){
int lowestvalue=0;
int biggervalue=0;
if(guessisooperand){
printf("It's lower.\n");
count++;
isolatedcount++;
}
else if(user0){
lowguess=compare(x);
x=one_game(count);
count=x;
printf("Do you want to play again?\n");
scanf("%d",&usertwo);
userthree=usertwo;
gamecount++;
}
statistics(gamecount,x,lowguess);
}
View More
4.I just need someone to look over my paper for anatomy and to just let me know what I need
...
t or add. I'll attach the questions, my rubric, as well as my answers I made. It would really help me out please.
The questions:
1.) Choose two somatosensory receptors. Please include a description of each receptor, what they sense, and which part of the brain processes the information from the receptor.
2.) Provide a discussion of the thyroid gland. Include the following:
Description of the thyroid gland's structure and location.
Description of the cells of the thyroid gland.
Description of the hormones secreted by the thyroid gland and their functions.
Description of how thyroid hormones are controlled by hormones secreted by the hypothalamus and anterior pituitary gland.
Description of how the feedback system works in the cases of high or low thyroid hormone levels.
3. Describe the cardiac cycle. Include descriptions of the 3 phases, the pressure changes in each of the heart's chambers, valves are open and closed, and blood flows during each step.
My answer: 1.) Exteroceptor - receives external stimuli from outside of the body. An example, the skin (Thermoreceptors) detects the temperature of the outside area of the body.
Interceptor - receives stimuli from inside of the body. An example would be blood pressure as well as blood oxygen levels.
2.) Thyroid Gland is located near the front lower part of the neck, beneath Adam's apple. Its structure includes Thyroid Epithelial that form follicles filled with colloid - a protein-rich reservoir of the materials needed for thyroid hormone production. The cells are responsible for releasing hormones that control metabolism (Energy levels). The thyroid gland releases triiodothyronine (T3) and thyroxine (T4). These hormones regulate weight, energy levels, internal temperature, skin, and growth. When the hypothalamus and pituitary function well, they can detect when hormone levels are low, which causes them to produce more TRH and TSH, which stimulates the thyroid to produce hormones. When the hormone levels exceed their limit, they then have less TRH and TSH, which results in reduced hormone production by the thyroid. Feedback is when a product feeds back into its initial cycle. The Feedback includes both positive and negative feedback. Positive Feedback is when a product provides back to increase production: an example, milk production by a mother for her baby. As the baby suckles, nerve messages from the nipple cause the pituitary gland to secrete prolactin. Prolactin, in turn, stimulates the mammary glands to produce milk, so the baby suckles more. Which causes more prolactin to be secreted and more milk to is made. Negative Feedback is when a product feeds back decreases production; it brings down show if they increase past their limit. It also controls insulin secretion by the pancreas.
3.) The Cardiac Cycle takes place from the beginning of a heartbeat to the next. It contains two periods: One is when the heart muscle relaxes and refills with blood, called diastole, following a time when it begins contraction and pumping of blood, systole. Once emptied, the heart then relaxes and expands to receive another inrush of blood coming back from the lungs and other areas of the body. The atrioventricular valves remain open while the semilunar valves are closed. During the middle part of the diastole, a small amount of blood flows into the ventricles. The blood flows from the veins and passes the atria fills the ventricles. The pressure in both ventricles is close to zero as a result.
View More
6.Please check options and pictures within the file attached.
If the questions can be answered within a free demo session
...
hin a free demo session as I have my answers, but just want to confirm them, that would be greatly appreciated.
Question 1:
A block of mass M = 0.10 kg is attached to one end of a spring with spring constant k = 100 N/m . The other end of the spring is attached to a fixed wall. The block is pushed against the spring, compressing it a distance x = 0.04 m . The block is then released from rest, and the block-spring system travels along a horizontal, rough track. Data collected from a motion detector are used to create a graph of the kinetic energy K and spring potential energy Us of the system as a function of the block's position as the spring expands. How can the student determine the amount of mechanical energy dissipated by friction as the spring expanded to its natural spring length?
Question 2:
The Atwood’s machine shown consists of two blocks connected by a light string that passes over a pulley of negligible mass and negligible friction. The blocks are released from rest, and m2 is greater than m1. Assume that the reference line of zero gravitational potential energy is the floor. Which of the following best represents the total gravitational potential energy U and total kinetic energy K of the block-block-Earth system as a function of the height h of block m1?
Question 3:
A 2 kg block is placed at the top of an incline and released from rest near Earth’s surface and unknown distance H above the ground. The angle θ between the ground and the incline is also unknown. Frictional forces between the block and the incline are considered to be negligible. The block eventually slides to the bottom of the incline after 0.75 s. The block’s velocity v as a function of time t is shown in the graph starting from the instant it is released. How could a student use the graph to determine the total energy of the block-Earth system?
Question 4:
A block slides across a flat, horizontal surface to the right. For each choice, the arrows represent velocity vectors of the block at successive intervals of time. Which of the following diagrams represents the situation in which the block loses kinetic energy?
View More
7.Question 1: What is a player’s « reaction function » in a Bertrand game ?
Question 2: What is a subgame
...
subgame perfect Nash equilibrium?
Question 3: In which situations should we need the mixed extension of a game?
Question 4: Find, if any, all Nash equilibria of the following famous matrix game:
L R
U (2,0) (3,3)
D (3,4) (1,2)
Question 5: What is the difference between a separating equilibrium and a pooling equilibrium
in Bayesian games?
Question 6: Give another name for, if it exists, the intersection of the players’ best-response
« functions » in a game?
Question 7: assuming we only deal with pure strategies, the Prisoner’s Dilemma is a situation
with:
No Nash equilibrium One sub-optimal Nash equilibrium
One sub-optimal dominant profile No dominant profile
Question 8: If it exists, a pure Nash equilibrium is always a profile of dominant strategies:
True False
Question 9: All games have at least one pure strategy Nash equilibrium:
True False
Question 10: If a tree game has a backward induction equilibrium then it must also be a Nash
equilibrium of all of its subgames:
Tr
2/2
Question 11: The mixed Nash equilibrium payoffs are always strictly smaller than the pure
Nash equilibrium payoffs:
True False
Question 12: Which of the following statements about dominant/dominated strategies is/are
true?
I. A dominant strategy dominates a dominated strategy in 2x2 games.
II. A dominated strategy must be dominated by a dominant strategy in all games.
III. A profile of dominant strategies must be a pure strategy Nash equilibrium.
IV. A dominated strategy must be dominated by a dominant strategy in 2x2 games.
I, II and IV only I, II and III only II and III only
I and IV only I, III and IV only I and II only
Question 13: A pure strategy Nash equilibrium is a special case of a mixed strategy Nash
equilibrium:
True False
Question 14: Consider the following 2x2 matrix game:
L R
U (3,2) (2,4)
D (-1,4) (4,3)
The number of pure and mixed Nash equilibria in the above game is:
0 1
2 3
Exercise (corresponding to questions 15 to 20 below): assume a medical doctor (M)
prescribes either drug A or drug B to a patient (P), who complies (C) or not (NC) with each of
this treatment. In case of compliance, controlled by an authority in charge of health services
quality, the physician is rewarded at a level of 1 for drug A and 2 for drug B. In case of noncompliance, the physician is « punished » at -1 level for non-compliance of the patient with
drug A and at -2 level for non-compliance with drug B. As for the compliant patient, drug A
should give him back 2 years of life saved and drug B, only 1 year of life saved. When noncompliant with drug A, the same patient wins 3 years of life (due to avoiding unexpected
allergic shock for instance), and when non-compliant with drug B, the patient loses 3 years of
life.
Question 15: You will draw the corresponding matrix of the simultaneous doctor-patient game.
Question 16: Find, if any, the profile(s) of dominant strategies of this game.
Question 17: Find, if any, the pure strategy Nash equilibrium/equilibria of this game.
Question 18: Find, if any, the mixed strategy Nash equilibrium/equilibria of this game.
Questions 19 and 20: Now the doctor prescribes first, then the patient complies or not: draw
the corresponding extensive-form game (= question 19) AND find the subgame perfect Nash
equilibrium/equilibria (=
View More
18.- I was very sick for a while so I don't really know what I am doing * This homework
...
eation of several BST functions * We have to use Valgrind * We have to create a memory struct that provides a compare function for insertion * The above needs to contain two fields of unsigned int, representing memory address and size int memory_addr_cmp(const void* x, const void* y){ //TODO return 0; } By the instructions: "This function takes two arguments, const void* x and const void* y, you will need to cast both of them to type "memory*", and make comparisons. If x is less than y, return -1. If x is greater than y, return 1. If they are equal, return 0;" Also per the instructions, concerning the BST functions "Note, in particular, that there are two separate structus - the node struct that describes information for a single node in the tree, and a bst struct, that holds the root pointer and a function pointer to the comparison function being used for this tree. When you first create the tree, you pass in the comparison function, and this will be used for all functions that need it thereafter. Therefore, after that, you don't need to specify the comparison function to bst-level functions. The stored function pointer is then passed to the node-level functions." So then we have to create allocation and initialization functions for both the BST and one for the node. * nod_insert, BST_insert then inorder_traversal
View More
19.Hi, I've been trying to figure out what should be the simplest of formulas for over an hour now. Take
...
e a look at this spreadsheet so I can properly explain:
https://docs.google.com/spreadsheets/d/1lEJIPiSZJk9LYUTSA4oeDwyLXCVd18Zdewm6gnjxcXo/edit?usp=sharing
Ok, so for the sake of simplicity We'll just go with row two here. Cell A2 represents the hours worked freelancing, where B2 is for the minutes of the recorded time frame. C2 is the net amount earned in that time. Over in cell N10 I need to figure out an equation using the =SUM() function (treats it as a normal math problem) where it prints the hourly income based on those three integers. I'll admit i was never great at math, but in my defense I've been up since 6 am yesterday (currently 3 pm) and have been running solely on caffiene and nicotine haha... The sheet is editable and I can see any changes you make in realtime. Is there any way you could help me out on this one? It's for a work report type thing.
View More
23.I have a function and I can't figure out how to increase the circumference
private List CreateCircle(float
...
r3> CreateCircle(float zValue, int points)
{
var vertices = new List();
float degrees = 0f;
float degreeChange = twoPi / points;
for (var i = 0; i < points; i++)
{
// Adding to degrees changes the rotation of the circles - adding nothing creates a straight tube
float x = (2f * Mathf.PI) * Mathf.Sin(degrees);
float y = (2f * Mathf.PI) * Mathf.Sin(degrees);
//Mathf.Sin(degrees + (GlobalVariables.tunnelDepth/2))
//Mathf.Cos(degrees + (GlobalVariables.tunnelDepth / 3))
vertices.Add(new Vector3(x, y, zValue));
degrees += degreeChange;
}
return vertices;
}
View More
26.Hi! I need help with my Netlogo homework, where I need to have turtles create an image of a tree.
...
sically, Tree 1 is just a vertical line, Tree 2 is that line plus two branches, Tree 3 is Tree 2 but with two additional branches on each of the original ones, and so on. Please help! I don't understand how recursions are supposed to be used with this and how to call a previous tree function. Below are additional instructions my teacher gave me.
draw-tree3 [ levels blen bangle]
levels : number of levels
blen : length of each branch
bangle : angle of the branches
The branch length should decrease as the function calls itself. This does NOT mean you decrease a variable, it means that just like fib(n-1) or fib(n-2) you decrease the parameter as you pass it to the next copy.
----Your slider is the STARTING value, the parameter can be changed every time your function is called.
Have the branch decay by multiplying by 0.85 before passing it to the next recursive call.
-When this works, try making the branch decay a slider from 0.1 to 0.9 in increments of 0.01
View More