Consider three different processors P1, P2, and P3, executing the same instruction set. P1 has a clock cycle time of 300 picosecond and a CPI (clock cycles per instruction) of 1.5. P2 has a clock cycle time of 400 picosecond and a CPI of 1.0. P3 has a clock cycle time of 250 picosecond and a CPI of 2.0. P1 is running a program with 10 instructions. P2 is running a different program with 20 instructions. P3 is running a program with 15 instructions.
Which processor has the highest performance? By how much does the fastest processor faster than the slowest processor? What are the CPU execution times for the three processors running their assigned programs? Please be sure to show and explain the detailed steps of how you arrived at your answer in your submission.
-Note: I have seen several instances of this question, however there seems to be confusion as to why the answers are being given in Seconds - and not Pico-Seconds. This is where my confusion lies.
Thanks
In: Computer Science
(Using Random Class) The following UML Class Diagram describes the java Random class:
java.util.Random
+Random()
+Random(seed: long)
+nextInt(): int
+nextInt(n: int): int
+nextLong(): long
+nextDouble(): double
+nextFloat(): float
+nextBoolean(): boolean
Constructs a Random object with the current time as its
seed.
Constructs a Random object with a specified seed.
Returns a random int value.
Returns a random int value between 0 and n (exclusive).
Returns a random long value.
Returns a random double value between 0.0 and 1.0
(exclusive).
Returns a random float value between 0.0F and 1.0F
(exclusive).
Returns a random boolean value.
Using this class, do the following:
1. Generate and display 20 random numbers of type integer in the
range 0 to 50.
2. Generate and display 20 random numbers of type integer with seed
3 in the range 0 to 1000.
3. Generate and display 20 random numbers of type double in the
range 10 to 50.
In: Computer Science
BJ. is a 5-year-old boy who has suffered from repeated upper respiratory infections since he was 16 months old. At 4 years of age, he was diagnosed with allergic asthma. The following winter, at age 5, he was admitted to the hospital twice for acute asthma with a secondary bacterial pulmonary infection.
At the second admission, a complete blood count, sputum culture, and immune status work-up were ordered.
Laboratory Data
Assay Patient Results Reference Range
Hemoglobin 13.5 g/dL 11.5-14.5 g/dL
Hematocrit 40% 33-43%
Total WBC count 16.2 x 109/L 4-12 x 109/L
Lymphocyte Count 4.3 x 109/L 2.7-5.4
T lymphocytes 2.4 x 109/L 2.7-5.3
B lymphocytes 1.0 x 109/L 0.6-1.4
1. What is the etiology of this patient’s recurring infections? Explain your answer.
In: Anatomy and Physiology
2. What is the sample size, n, for a 95% confidence interval on the mean, if we know that the process’ standard error is 3.2 units, and we want to allow at most 1.0 units for our error?
3. Let’s say that you just randomly pulled 32 widgets from your production line and you determined that you need a sample size of 46 widgets, However, you get delayed in being able to pull another bunch of widgets from the line until the start of the next day. How many widgets should you now pull for your analysis?
4. What is the sample size, n, for a 98% confidence interval on the mean, if we know that the process’ standard error is 3.2 units, and we want to allow at most 0.5 units for our error?
5. What is the sample size, n, for a 95% confidence interval on the mean, if we know that the process’ standard error is 3.2 units, and we want to allow at most 0.5 units for our error?
In: Math
Question 1
Calculate the Hydraulic Radius for a trapezoidal channel that has a bottom width of 4 feet, side slopes, s = 20, a Manning’s n value of 0.012, and bottom slope of 1.5%, and a depth of flow of 1 foot.
| a. |
0.54 ft |
|
| b. |
1.3 ft |
|
| c. |
2.1 ft |
|
| d. |
2.9 ft |
|
| e. |
3.7 ft |
2 points
Question 2
A trapezoidal channel that has a bottom width of 4 feet, side slopes 2:1 (H:V) and bottom slope of 1.0%. Calculate the Froude Number for a flow of 77,000 GPM. Assume (n = 0.025).
| a. |
0.12 |
|
| b. |
0.35 |
|
| c. |
0.55 |
|
| d. |
0.77 |
|
| e. |
1.07 |
2 points
Question 3
A rough concrete (n = 0.018) rectangular channel that has a bottom width of 3.0 feet and bottom slope of 1.31%. Calculate the normal depth for a flow of 68 cfs.
| a. |
1.5 ft. |
|
| b. |
2.0 ft. |
|
| c. |
2.5 ft. |
|
| d. |
3.0 ft. |
|
| e. |
3.5 ft. |
In: Civil Engineering
1) A hydraulic shovel with a bottom-dump bucket with a heaped bucket volume of 10 m3 is excavating tough clay. The swing angle is 103 degrees and the job efficiency is 0.85 + (8/100). Calculate the shovel production in BCM.
2) Estimate the time required to load 408 m3 of gravel from a stockpile into trucks using a clamshell having a heaped bucket capacity of 0.57 m3. Estimated cycle time is 20s. Swing depth factor = 1.0. Job efficiency is estimated to be 58 min/h.
3) A small hydraulic excavator will be used to dig a trench in hard clay. The trench size is 0.76 m wide by 1.50 + (58/100) m deep. The excavator bucket available is 0.76 m wide and has a heaped capacity of 0.50 + (8/100) m3. The maximum digging depth of the excavator is 4.90 m. The average swing angle is expected to be 75° and the job efficiency is 78 %. Estimate the hourly trench production in BCM and in linear meters of trench.
In: Civil Engineering
2. Which gas has the lowest density at 25 °C and 1 atm?
Select one:
a. O2
b. Ar
c. N2
d. F2
e. C3H8
4. If the volume of a confined gas is expanded to four times the original volume while its temperature remains constant, what change will be observed?
Select one:
a. The pressure of the gas will decrease to 1/4 its original value.
b. The pressure of the gas will decrease to 1/2 its original value.
c. The pressure of the gas will remain unchanged.
d. The pressure of the gas will increase to twice its original value.
e. The pressure of the gas will increase to four times its original value.
5. 36.6 L of He gas at STP is pumped into a 10.0-L tank containing 1.0 atm of O2 at 25 °C. What is the total pressure in a tank at 25 °C?
Select one:
a. 2.0 atm
b. 5.0 atm
c. 5.4 atm
d. 8.0 atm
e. 8.8 atm
In: Chemistry
Write a program in C to perform the following:
Item Price/unit units sold Total
1 33.45 2 66.9
2 435.22 5 2176.1
3 55.12 100 551.2
.. … … …
____________________________________________
Total store sale: ??????
Requirement
In: Computer Science
***Please show the math! Thank you!
Assume that security returns are generated by the single-index model,
Ri = αi +
βiRM + ei
where Ri is the excess return for security
i and RM is the market’s excess
return. The risk-free rate is 3%. Suppose also that there are three
securities A, B, and C, characterized by
the following data:
| Security | βi | E(Ri) | σ(ei) | ||
| A | 1.0 | 10 | % | 23 | % |
| B | 1.3 | 13 | 9 | ||
| C | 1.6 | 16 | 18 | ||
a. If σM = 20%, calculate the variance of returns of securities A, B, and C.
|
b. Now assume that there are an infinite number of assets with return characteristics identical to those of A, B, and C, respectively. What will be the mean and variance of excess returns for securities A, B, and C? (Enter the variance answers as a percent squared and mean as a percentage. Do not round intermediate calculations. Round your answers to the nearest whole number.)
|
|||||||||||||||||
In: Finance
4. Suppose that the following processes arrive for execution at the times indicated. Each process will run for the amount of time listed. In answering the questions, use non-preemptive scheduling, and base all decisions on the information you have at the time the decision must be made.
Process Arrival Time Burst Time
P1 0.0 8
P2 0.4 4
P3 1.0 1
a. What is the average turnaround time for these processes with the FCFS scheduling algorithm?
b. What is the average turnaround time for these processes with the SJF scheduling algorithm?
c. The SJF algorithm is supposed to improve performance, but notice that we chose to run process P1 at time 0 because we did not know that two shorter processes would arrive soon. Compute what the
average turnaround time will be if the CPU is left idle for the first 1 unit and then SJF scheduling is used. Remember that processes P1 and P2 are waiting during this idle time, so their waiting time may increase. This algorithm could be known as future-knowledge scheduling.
In: Computer Science