Design and construct a computer program in one of the approved languages (C++) that will illustrate the use of a fourth-order explicit Runge-Kutta method of your own design. In other words, you will first have to solve the Runge-Kutta equations of condition for the coefficients of a fourth-order Runge-Kutta method. See the Mathematica notebook on solving the equations for 4th order RK method. That notebook can be found at rk4Solution.nb . PLEASE DO NOT USE a[1] = 1/2 or a[2] = 1/2. In general, you should pick a[1] and a[2] to be distinct values greater than zero and less than one. Then, you will use these coefficients in a computer program to solve the ordinary differential equation below. Be sure to follow the documentation and programming style policies of the Computer Science Department.
The initial value problem to be solved is the following: x'(t) = 3 x2 cos(5 t) subject to the initial condition: x(0) = 1.0 Obtain a numerical solution to this problem over the range from t=0.0 to t=2.0 for seven different values of the stepsize, h=0.1, 0.05 , 0.025 , 0.0125 , 0.00625 , 0.003125 , and 0.0015625 . In other words, make seven runs with 20, 40, 80, 160, 320, 640, and 1280 steps, respectively. For each run, print out the value of h, then a table of t and x, and then the error at t=2. You may use the following very precise value for your "true answer" in order to compute the error at t=2: 0.753913186469598763502963347. The true solution of this differential equation resembles the following plot of x(t) as a function of t.
In: Computer Science
A 100 g bullet traveling in the x-direction at 100 m/s strikes a
1 kg wooden block at
rest. After the collision, wooden block splits into two parts [.2
kg and .8 kg] and the
bullet is observed traveling at a speed of 50 m/s in the
x-direction. Assume that the
wooden pieces are traveling in the x-y plane and the .8 kg piece is
traveling 30 degrees to the
right of the x-direction. If the kinetic energies of the wooden
pieces are equal after the
collision,
i) In which direction is the .2 kg piece moving?
ii) What are the velocities of the two wooden pieces?
iii) How much kinetic energy is lost during the collision?
In: Physics
Upriver Parts manufactures two products, V-1 and V-2, at its
River Plant. Selected data for an average month for the two
products follow.
| V-1 | V-2 | |||||
| Units produced | 10,000 | 1,000 | ||||
| Direct materials cost per unit | $ | 2 | $ | 4 | ||
| Machine hours per unit | 1 | 2 | ||||
| Production runs per month | 80 | 40 | ||||
Production at the plant is automated and any labor cost is included
in overhead. Data on manufacturing overhead at the plant
follow.
| Machine depreciation | $ | 51,000 | |
| Setup labor | 24,000 | ||
| Material handling | 15,600 | ||
| Total | $ | 90,600 | |
Required:
a. Compute the unit costs for the two products
V-1 and V-2 using the current costing system at Upriver (using
machine hours as the allocation basis). (Do not round
intermediate calculations. Round your answers to 2 decimal
places.)
b. Compute the unit costs for the two products V-1
and V-2 using the proposed ABC system at Upriver. (Do not
round intermediate calculations. Round your answers to 2 decimal
places.)
Unit Cost
V-1 V-2
a.Using current costing system
b.Using proposed ABC system
In: Accounting
| id | manufacturer | model | displ | year | cyl | trans | drv | cty | hwy | fl | class |
| 1 | audi | a4 | 1.8 | 1999 | 4 | auto(l5) | f | 18 | 29 | p | compact |
| 2 | audi | a4 | 1.8 | 1999 | 4 | manual(m5) | f | 21 | 29 | p | compact |
| 3 | audi | a4 | 2 | 2008 | 4 | manual(m6) | f | 20 | 31 | p | compact |
| 4 | audi | a4 | 2 | 2008 | 4 | auto(av) | f | 21 | 30 | p | compact |
| 5 | audi | a4 | 2.8 | 1999 | 6 | auto(l5) | f | 16 | 26 | p | compact |
| 6 | audi | a4 | 2.8 | 1999 | 6 | manual(m5) | f | 18 | 26 | p | compact |
| 7 | audi | a4 | 3.1 | 2008 | 6 | auto(av) | f | 18 | 27 | p | compact |
| 8 | audi | a4 quattro | 1.8 | 1999 | 4 | manual(m5) | 4 | 18 | 26 | p | compact |
| 9 | audi | a4 quattro | 1.8 | 1999 | 4 | auto(l5) | 4 | 16 | 25 | p | compact |
| 10 | audi | a4 quattro | 2 | 2008 | 4 | manual(m6) | 4 | 20 | 28 | p | compact |
| 11 | audi | a4 quattro | 2 | 2008 | 4 | auto(s6) | 4 | 19 | 27 | p | compact |
| 12 | audi | a4 quattro | 2.8 | 1999 | 6 | auto(l5) | 4 | 15 | 25 | p | compact |
Output file should contain the calculation output for: o Python
code properly runs and calculates the average city mileage for all
vehicles (avg_city) – 15 pts o Python code properly runs and
calculates the average highway mileage for all vehicles (avg_hwy) –
15 pts o Python code properly runs and calculates the average
highway mileage of all Ford vehicles (ford_hwy) – 20 pts o Python
code properly runs and calculates the average city mileage of all
SUV vehicles (suv_city) – 20 pts • Only iterate through mpg.csv
once, minus 10 points for each loop through mpg.csv more than
once
In: Computer Science
In: Biology
A sample of 44 observations is selected from a normal population. The sample mean is 46, and the population standard deviation is 7. Conduct the following test of hypothesis using the 0.01 significance level.
H0: μ = 50
H1: μ ≠ 50
One-tailed test
Two-tailed test
Reject H0 if −2.576 < z < 2.576
Reject H0 if z < −2.576 or z > 2.576
Fail to reject H0
Reject H0
There is a _____ % chance of finding a z value this large by "sampling error" when H0 is true.
rev: 01_21_2018_QC_CS-114345
In: Statistics and Probability
public static java.lang.String removerec(java.lang.String s)
Returns a string similar to the given string with all runs of consecutive, repeated characters removed. For example,
Parameters:
s - given string
Returns:
string created from s by removing runs of the same character
In: Computer Science
Given below are seven observations collected in a regression
study on two variables, x (independent variable) and y (dependent
variable)
|
|||||||||||||||||
a. develop the least squares estimated regression equation
b. At 95% confidence, perform a t test and determine whether or not the slope is significantly different from 0
c.Compute the coefficient of determination
d. Develop the 95% confidence interval for the mean value of y* and 95% prediction interval for individual value of y* when x*=5
In: Statistics and Probability
1.
Which of the following is not a stakeholder in a business?
|
employees |
||
|
suppliers |
||
|
customers |
||
|
competitors |
2.
Which of the following does NOT describe managerial accounting?
|
not generally released to the public |
||
|
various formats are used |
||
|
used for the SEC filings |
||
|
used primarily for internal making |
3.
Jones company makes two products A & B. Here is some financial information about those products.
A B Combined total cost of cost drivers
Direct labor $45,000 $35,000
Direct materials $40,000 $30,000
Cost drivers
Set ups 6 4 $10,000
Inspections 4 6 $5,000
Test Runs 12 8 $25,000
Units produced 1000 1000
Using ABC Costing for overhead, what is the total cost for product A?
|
$107000 |
||
|
$108000 |
||
|
$33000 |
||
|
$106,500 |
In: Accounting
The table below shows the number of cars sold last month by seven employees at Concord Motors and their number of years of sales experience.
| Experience | Sales |
| 1 | 8 |
| 2 | 6 |
| 2 | 7 |
| 4 | 14 |
| 5 | 9 |
| 6 | 13 |
| 8 | 10 |
Analyze this data (what is correlation coefficient, slope for regression equation, y intercept for regression equation, standard error of estimate).
In: Statistics and Probability