Instructions
A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer’s final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. Write a program in Python that uses this method to calculate a contestant’s score. It should include the following functions:
The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the scores to drop.
Input Validation: Do not accept judge scores lower than 0 and higher than 10.
General Restrictions:
In: Computer Science
[Aerospace Engineering]
1. Aerodynamics :
(a) how to find zero lift line of a wing and airfoil?
(b) how do we relate this with climb angle(gamma), pitch angle(theta), angle of incidence, and Angle of Attack(Alpha)
(c) why during climb Theta is not considered as Angle of attack since the aircraft moves with respect to x-axis? or is that with respect to thrust direction?
(d) then can we classify Angle of Attack to be similar with Angle of Incidence if the aircraft flies along the direction of thrust?
2. Flight Mechanics :
a) what is the differences between stick-fixed and stick-free? (including explanation on each)
b) consider that the aircraft flies in autopilot mode, is that considered as stick-fixed,free, or neither?
c) Consider Horizontal stabiliser on conventional aircraft, how to find these variables? given
C_LT = 2*phi*Alpha_Teffective + a2(eta) +a3(beta), ; C_LT is known, Aileron hinge location x1/c = 0.65 and Trim Tab hinge at x2/c = 0.8
C_H = b1*Alpha_Teffective + b2(eta) + a2(beta), ;beta = Trim tab deflection angle; eta = Elevator deflection angle
In: Mechanical Engineering
Choose three different norms from the list below:
Norm Violation Options:
Standing too close to someone when talking
Standing too far away when talking
Failing to make eye contact during a conversation
Failing to reply to social greetings such as “hello,” “goodbye,” or
saying “thank you”
Taking food off of another person’s plate in a social setting
Standing too close to someone you do not know well in an elevator
or in a line
Failing to practice good personal grooming or hygiene habits
(usually best on a weekend)
Dressing up or down in a way that does not match the
work/social/home/public occasion
*************************************************************************************************************************
Which norm violations you selected and why.
Where, when, and with whom you violated the norms.
What took place while you were violating the norm.
The reaction of those who witnessed the norm violation.
Explain why norms an important part of social structure.
Explain why some norms are more important for the social order than
others.
Explain why a better understanding of norms can make you a better
employee, co-worker or boss.
In: Psychology
The defendants are approximately 80 tenants of a 300-unit luxury apartment building on the upper east side of Manhattan. The monthly rents in the all-glass-enclosed building, which won several architectural awards, were very high. The landlord brought a summary proceeding against the tenants to recover rent when they engaged in a rent strike in protest against what they viewed as deteriorating conditions and services. Among other things, the evidence showed that during the period in question, the elevator system made tenants and their guests wait interminable lengths of time, the elevators skipped floors and opened on the wrong floors, a stench emanated from garbage stored near the garage and mice appeared in that area, fixtures were missing in public areas, water seeped into mailboxes, the air conditioning in the lobby was inoperative, and air conditioners in individual units leaked. The defendant-tenants sought abatement of rent for breach of the implied warranty of habitability. Did the landlord breach the implied warranty of habitability? Solow v. Wellner, 150 Misc.2d 642, 569 N.Y.S.2d 882, 1991 N.Y. Misc. 169 (Civil Court of the City of New York)
In: Operations Management
(Cost of a short-term bank loan) Jimmy Hale is the owner and operator of the grain elevator in Brownfield, Texas, where he has lived for most of his 62 years. The rains during the spring have been the best in a decade, and Mr. Hale is expecting a bumper wheat crop. This has prompted him to rethink his current financing sources. He now believes he will need an additional $220,000 for the 3-month period ending with the close of the harvest season. After meeting with his banker, Mr. Hale is puzzling over what the additional financing will actually cost. The banker quoted him a rate of 2 percent over prime (which is currently 8 percent) and also requested that the firm increase its current bank balance of $4,000 up to 22 percent of the loan.
a. If interest and principal are all repaid at the end of the 3-month loan term, what is the annual percentage rate on the loan offer made by Mr. Hale's bank?
b. If the bank were to offer to lower the rate to prime if interest is discounted, should Mr. Hale accept this alternative? Note: Assume a 30-day month and 360-day year.
In: Finance
Marika wants to estimate how many coffees sold per week at the coffee shops and cafes in and around the University. She plans to do this by taking a sample of the coffee shops cafes and asking them how many coffees they have sold in the last week. There are 16 coffee shops and cafes (A to P).
|
Store |
Number of seats |
Number of coffees sold in week (yi) |
|
A |
8 |
455 |
|
B |
24 |
3512 |
|
C |
15 |
1129 |
|
D |
58 |
6424 |
|
E |
4 |
265 |
|
F |
90 |
8530 |
|
G |
31 |
3560 |
|
H |
11 |
567 |
|
I |
35 |
2633 |
|
J |
5 |
699 |
|
K |
14 |
756 |
|
L |
52 |
8267 |
|
M |
36 |
1742 |
|
N |
160 |
13440 |
|
O |
7 |
654 |
|
P |
5 |
656 |
Using number of seats as an auxiliary variable, describe how Marika could take a random sample of the coffee shops and cafes with replacement with the probability of selection proportional to number of seats. Marika can use pencil and paper or has basic skills with a spreadsheet, but does not know R.
In: Statistics and Probability
The demand curve in the product market for a football team is given by:
P (Q) = 200 − 30Q
where Q is the number of wins for the team and P is the price they can charge. There are 30 teams and each team has a monopoly in the product market.
The production function for each team is given by:
Q(L) = 2L
where l is the amount of ‘talent’ that the hire. The aggregate supply curve for talent is:w(L) = 22+L
First assume that the labor market is perfectly
competitive.
1. What is the MRPl for each team?
2. What is the aggregate demand curve for talent (i.e., the MRPL
for all teams)?
3. What is the equilibrium wage and amount of talent hired? How
much talent will each team hire? 4. What is the profit for teams?
What is the surplus for players?
Now suppose that the league acts as a monopsony:
5. What is the MFC (marginal factor cost)?
6. What is the equilibrium wage and amount of talent hired? How
much talent will each team hire? 7. What is the profit for teams?
What is the surplus for players?
Now suppose that the league acts as a monopsony and the players form a players union:
What is the all-or-nothing demand curve for talent? What is the all-or-nothing supply curve?
What is the wage that gives all surplus to teams?
What is the wage that gives all surplus to the players?
Suppose the players and teams have an equal bargaining power. What is the equilibrium wage? What is player surplus and team profit?
In: Economics
PYTHON GAME OF PIG
The game of Pig is a simple two player dice game in which the first player to reach 100 or more points wins. Players take turns. On each turn a player rolls a six-sided die. After each roll: a) If the player rolls a 1 then the player gets no new points and it becomes the other player’s turn. b) If the player rolls 2-6 then they can either roll again or hold. If the player holds the sum of all rolls is added to their score and the turn passes to the other player.
Write a program that plays the game of Pig where one player is human and the other is the computer. When it is the human’s turn the program should show the score of both players and the previous roll. Allow the human to input “r” for roll again and “h” for hold.
When it is the computer’s turn you need not do any prompting. Simply keep rolling until the computer has earned 20 or more points and then hold. If the computer rolls a 1 at any time then the turn is lost and no points are added to the score. If at any point the computer has enough points to win the game then the computer holds and the game ends. Allow the human player to roll first. A random roll can be simulated with a call to random.randint(1,6) which generates a uniform random number in [1,6]. Make sure to import the random module (ie. import random).
* **The key thing is that I want help writing this program without the use of function definitions like def print_pizza_area(): ... I would also appreciate comments describing the steps if possible.
In: Computer Science
C++ Please
For this assignment, you will write a program that lets the user play against the computer in a variation of the popular blackjack car game. In this variation of the game, two-six sided dice are used instead of cards. The dice are rolled, and the player tries to beat the computer's hidden total without going over 21.
Here are some suggestions for the game's design:
You will need to create 2 class files for this assignment.
In: Computer Science
Sequential (Step) Method of Support Department Cost Allocation
Valron Company has two support departments, Human Resources and General Factory, and two producing departments, Fabricating and Assembly.
Support Departments |
Producing Departments | |||
| Human Resources |
General Factory |
Fabricating | Assembly | |
| Direct costs | $160,000 | $340,000 | $114,600 | $93,000 |
| Normal activity: | ||||
| Number of employees | — | 60 | 80 | 170 |
| Square footage | 1,000 | — | 5,700 | 13,300 |
The costs of the Human Resources Department are allocated on the basis of number of employees, and the costs of General Factory are allocated on the basis of square footage. Now assume that Valron Company uses the sequential method to allocate support department costs. The support departments are ranked in order of highest cost to lowest cost.
Required:
1. Calculate the allocation ratios (rounded to four significant digits) for the four departments using the sequential method. If an amount is zero, enter "0". Use the rounded values for subsequent calculations.
| Proportion of Driver Used by | ||||
| Human Resources | General Factory | Fabricating | Assembly | |
| Human Resources | ||||
| General Factory | ||||
2. Using the sequential method, allocate the costs of the Human Resources and General Factory departments to the Fabricating and Assembly departments. If an amount is zero, enter"0".
| Support Departments | Producing Departments | ||||
| Human Resources | General Factory | Fabricating | Assembly | ||
| Direct costs | $ | $ | $ | $ | |
| Allocate: | |||||
| General Factory | |||||
| Human Resources | |||||
| Total after allocation | $ | $ | $ | $ | |
In: Accounting