1. Trading volume on the New York Stock Exchange has been growing in recent years. For the first two weeks of January 1998, the average daily volume was 646 million shares (Barron’s, January 1998). The probability distribution of daily volume is approximately normal with a standard deviation of about 100 million shares.
a. What is the probability trading volume will be less than 400 million shares?
b. What percentage of the time does the trading volume exceed 800 million shares?
2. Suppose that the average client charge per hour for lawyers in the state of Iowa for out-of-court work is $125. Suppose further that a random telephone sample of 25 lawyers in Iowa is taken. If the population standard deviation is $50,
In: Statistics and Probability
Matlab
The following matrix describes Injury Severity Score (ISS, unitless) and hospital stay (days). Row 1 is the ISS and row 2 is the hospital stay.
[64,35,50,46,59,41,27,39,66;
8,2,5,5,4,3,1,4,6].
Create a script that plots stay in hospital vs ISS. Label the plot and all axis. Display to the command window a message with the mean ISS score, and the mean days in hospital. (i.e. “The mean ISS score is 30”, not just x = 30).
Use the sort(x) to arrange a vector in ascending order
Question: On the plot select “Tools” -> “Basic Fitting”. A window will pop up for line fitting. Select the box “linear”. Press the right arrow button to get the coefficient values for linear fit. What is the estimated stay for a patient with a ISS of 55?
Make note of the formula as it will be used later.
Calculating ISS for an individual involves taking scores from an Abbreviated Injury Scale (AIS) from 0 – 5 for six different body areas head, face, chest, abdomen, extremities, and external. The three body areas with the highest score have their AIS squared and are added together to produce an ISS for individual.
In: Electrical Engineering
Problem Description There are bunnies standing in a line, numbered 1, 2, ...n. The odd bunnies (1, 3, ..) have the normal 2 ears. The even bunnies (2, 4, ..) are genetic mutations and have 3 ears. Write a GUI program which uses a recursive method, earCount(), to calculate the number of "ears" in the bunny line. The user will supply the number of bunnies in the line. Specifications Your program will consist of 2 Textboxes and a Button, each should be labeled appropriately. The user will enter an integer in one Textbox, press the Button, and the number of ears will be shown in the other Textbox. The second Textbox should be readonly. Do not use loops or multiplication in your program. Error Checking Inputs User input should be an integer. Give feedback if it is not and ask them to reenter. Use a Try-Catch blocks where you deem appropriate. Commenting Use the generated flower box in BlueJ to provide a description of the Class and your name. Example: A single line comment followed by statements to create an instance of JTextField, and call setEditable method is fine. Significant variables descriptions. No “loop” variables. a, b, c, x, y, z, etc.
In: Computer Science
Present and Future Values of Single Cash Flows for Different Periods Find the following values, using the equations, and then work the problems using a financial calculator to check your answers. Disregard rounding differences. (Hint: If you are using a financial calculator, you can enter the known values and then press the appropriate key to find the unknown variable. Then, without clearing the TVM register, you can "override" the variable that changes by simply entering a new value for it and then pressing the key for the unknown variable to obtain the second answer. This procedure can be used in parts b and d, and in many other situations, to see how changes in input variables affect the output variable.) An initial $300 compounded for 1 year at 4%. Round your answers to the nearest cent. $ 678.51 An initial $300 compounded for 2 years at 4%. Round your answers to the nearest cent. $ 912.46 The present value of $300 due in 1 year at a discount rate of 4%. Round your answers to the nearest cent. $ 368.45 The present value of $300 due in 2 years at a discount rate of 4%. Round your answers to the nearest cent. $ 273.98
In: Finance
15. Two horizontal forces (5N)i-(10N)j and (7N)i+(12N)j are acting on an object. What is direction of object’s acceleration?
a. in positive x direction
b. in negative x direction
c. in positive y direction
d. in negative y direction
e. 450 from positive x direction.
f. 450 from negative x direction.
16. You press a book of mass m against vertical wall with a force F big enough to prevent book from sliding.
1.1 What force acts against possible direction of sliding of a book?
a. Gravity
b. Normal force
c. Force of friction
d. Force F.
1.2 What is magnitude and direction of normal force?
a. mg perpendicular to the wall
b. mg vertically up
c. F vertically up
d. F perpendicular to the wall.
e. Impossible to answer from the information given.
1.3 What is magnitude of force of friction in given situation?
a. mg
b. F
c. slightly less than mg
d. slightly greater than mg
e. Impossible to answer from the information given.
In: Physics
Q3- The newly appointed mayor of XYZ Town noticed that in the recent enacted budget of the city’s General Fund, revenue exceed expenditure by 15,000 SAR. Later that year, after a hurricane caused a large amount of damage, she ordered the city’s finance office to write a check for 15,000 SAR from the General Fund to an emergency relief fund. Because of unexpected nature of the hurricane, no appropriation had been made to cover this transaction. When confronted by the press, she pointed out that the state’s balance budget require only that the General Fund “break- even” and that she could not, in good conscience, allow the city to retain idle resources when people needed help. What, if anything, did the mayor do wrong? Explain.
In: Accounting
Subgame-perfect Nash Equilibria
Consider the situation where the journalist J can either write a
nice or a harsh article about a politician Z. Further suppose that
the politician Z has managed to implement a
so-called media tribunal according to which he can decide to punish
or not to punish J whenever J writes harshly about him. J would
really love to write harshly about Z as long as he can get away
without any punishment. However, J would rather write a nice
article about Z than being punished. Z would really love to read a
nice article about himself. However, in the situation where an
harsh article had been written he would rather refrain from
punishing J in order to avoid international criticism about him
restricting the freedom of the press.
In: Economics
***C PROGRAMMING***
Roman Numerals:
I = 1
V = 5
X = 10
L = 50
C = 100
D = 500
M = 1000
Use % for modulus division.
Step 1
For example:
Number/Numeral Number/Numeral
1 = I 26 = XXVI
2 = II 27 = XXVII
3 = III 28 = XXVIII
4 = IV 29 = XXIX
5 = V 30 = XXX
.
.
.
25 = XXV 50 = L
Press any key to continue?
In: Computer Science
C language <stdio.h> ONLY USE double and const int
Write a program to convert Celsius temperature to Fahrenheit temperature. The formula for converting Celsius temperature into Fahrenheit temperature is:
F = (9 / 5) * C + 32
Create integer constants for the 3 numbers in the formula (9, 5, and 32). Follow the 3 steps in the Information Processing Cycle - Input, Processing, and Output. Convert the 9 to a double when converting the temperature (use type casting). Have a blank line in the output between the formula and the input. Display the converted temperature to 1 decimal place (and don't forget the ending period).
Have a blank line at the end of your program to separate the last line of output from your program from the "Press any key to continue . . .", and do this for all programs that you write.
Example Run #1:
(bold type is what is entered by the user)
Fahrenheit temperature is converted from Celsius temperature by
the formula:
F = (9 / 5) * C + 32
Enter the Celsius temperature: 28
The converted Fahrenheit temperature is xx.x degrees.
The example run shows EXACTLY how your program input and output will look.
In: Computer Science
You are required to write an interactive program that prompts the user for two integers X and Y and performs the following tasks:
Program requirements:
- The program should run as many times as the users wish
- The program should be fully documented.
- You must submit a hard copy of the source and a properly labeled output.
- You should submit a digital copy of source code (in class).
- Test your program for different values using different set of data that the users provide. .
NOTES: be sure to use basic functions of C++
(Not scan function)
USE: functions such as: using name space std, declare a main, int, loops, cin, cout, endl
be sure to comment within the program what is taking place and scentences such as:
"The sum of X and Y is:"
"The product of X and Y is:"
"The Larger number is:" (X or Y)
"Would you like to continue? (Press Y or yes or N for no. If No then program exits)
In: Computer Science