The coordinates of an object moving in the xy plane vary with time according to the equations x = −5.08 sin ωt and y = 4.00 − 5.08 cos ωt, where ω is a constant, x and y are in meters, and t is in seconds.
(a) Determine the components of velocity of the object at t = 0. (Use the following as necessary: ω.) v with arrow = m/s
(b) Determine the components of the acceleration of the object at t = 0. (Use the following as necessary: ω.) a with arrow = m/s2
(c) Write expressions for the position vector, the velocity vector, and the acceleration vector of the object at any time t > 0. (Use the following as necessary: omega for ω and t.) r with arrow = m v with arrow = m/s a with arrow = m/s2
(d) Describe the path of the object in an xy plot.
In: Physics
Usually, Djikstra’s shortest-path algorithm is not used on
graphs with negative-weight edges because it may fail and give us
an incorrect answer. However, sometimes Djikstra’s will give us the
correct answer even if the graph has negative edges.
You are given graph G with at least one negative edge, and a source
s. Write an algorithm that tests whether Djikstra’s algorithm will
give the correct shortest paths from s. If it does, return the
shortest paths. If not, return ‘no.’ The time complexity should not
be longer than that of Djiksta’s algorithm itself, which is Θ(|E| +
|V | log |V |).
(Hint: First, use Djikstra’s algorithm to come up with candidate
paths. Then, write an algorithm to verify whether they are in fact
the shortest paths from s.)
In: Computer Science
A parallel plate capacitor with plate separation d is connected to a battery. The capacitor is fully charged to Q Coulombs and a voltage of V. (C is the capacitance and U is the stored energy.) Answer the following questions regarding the capacitor charged by a battery.
For each statement below, select True or False.
1. With the capacitor connected to the battery, increasing d increases U.
2. After being disconnected from the battery, inserting a dielectric with κ will decrease V.
3. With the capacitor connected to the battery, decreasing d decreases Q.
4. After being disconnected from the battery, inserting a dielectric with κ will increase U.
5. After being disconnected from the battery, inserting a dielectric with κ will decrease C.
6. After being disconnected from the battery, decreasing d increases C.
In: Physics
PRG/280 Week Three Assignment – Input Types and Form Designation
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="MyStyle.css">
</head>
<body>
<nav>
<a href="GroceryHome.html">Home</a> |
<a href="Products.html">Products</a> |
<a href="AboutUs.html">About Us</a> |
<a href="Contact.html">Contact</a>
</nav>
<header>
<h1> My Contact Page</h1>
</header>
<article>
Thank you for your interest in our grocery store. We offer delivery or call-ahead pickup services. Please provide your contact information, and indicate your family's food preferences.
</article> <p>
<form action="#" method="post" id="form1">
<div class="div1">
<label for="fname1" >First Name:</label><br>
<input type="text" name="firstname1" id="fname1"><br>
<label for="lname1" >Last Name:</label><br>
<input type="text" name="lastname1" id="lname1"><br>
<label for="phone1" >Phone (i.e. 123-456-7890):</label><br>
<input type="text" name="phone1" id="phone1" placeholder="123-456-7890" ><br>
<label for="email1" >Email:</label><br>
<input type="text" name="email1" id="email1" placeholder="abc@xyz"><br>
<label for="contactpreference1" >Prefered contact method?</label><br>
<input type="radio" name="contactpreference1" value="phone" checked> Phone
<input type="radio" name="contactpreference1" value="email"> Email
<br><br>
<input type="submit" id="Submit1" value="Submit" onclick=" validateMyPage()" />
</div>
</form>
In: Computer Science
Please include all classes including driver.
IN JAVA
Suppose that there is a big farm in California that supplies the majority of the Grocery stores in the twin cities with vegetables and fruits. The stores submit their orders and receive the shipment a week later. Based on the size of the orders, the farm management decides on the size of the truck to load.
Create a Produce class that have an instance variable of type String for the name, appropriate constructors, appropriate accessor and mutator methods, and a public toString() method. Then create a Fruit and a Vegetable class that are derived from Produce. These classes should have constructors that take the name as a String, the price (this is the price per box) as a double, the quantity as an integer, and invoke the appropriate constructor from the base class to set the name. Also, they should override toString method to display the name of the produce, the price, and its type. For instance, Mango is a Fruit and Cauliflower is a Vegetable.
Finally, create a class called TruckOfProduce that will keep track of the boxes of Vegetables and Fruits added in to the truck. This class should use an array of Produce to store both vegetables and fruits. Also, it should have the following:
• Constructor that accepts an integer to initialize the array of Produce
• addProduce method that adds either fruit or vegetable to the array
• search method that accepts a name string, which can be either the name of a fruit or vegetable, and returns true if the name exists. Otherwise, it returns false.
• remove method that accepts a produce object and returns true if the produce is found and removed successfully. Otherwise, it returns false.
• computeTotal method that will return the total cost of all the produce in the truck.
• toString method that returns all the produce from in the truck.
• ensureCapacity method this is a void method. When this method is called it will double the size of the array and copy all the content of the smaller array in to this bigger array.
For instance, one could initialize the array to hold 1000 boxes of vegetables and fruits. What will happen if you try to add one more box (1001)? Of course, you will get an ArrayIndexOutOfBound error. So, thing about ensureCapacity as the method that will solve ArrayIndexOutBound error.
Then wrap it up with the driver class that tests all methods and displays the name of the produce, the price, and its type.
In: Computer Science
Grant Company acquired 40% of the voting stock of Jake
Corporation on January 1, 2016, for $50,000,000. Basis differences
were attributed entirely to goodwill. During the 5-year period from
January 1, 2016 through December 31, 2020, Jake reported total net
income of $23,000,000 and paid $8,000,000 in dividends. During
2021, Jake reported net income of $3,000,000 and paid $800,000 in
dividends.
Required:
a. Calculate the balance in Investment in Jake, reported on Grant’s
December 31, 2020 balance sheet.
b. Calculate the balance in Investment in Jake, reported on Grant’s December 31, 2021 balance sheet.
In: Accounting
|
| a) |
Prepare the journal entry to record the issuance of the bonds and the related bond issue costs incurred on January 1, 2016. |
| (b) |
Prepare a bond amortization schedule up to and including January 1, 2017, using the effective-interest method. |
In: Accounting
1. Assume that you held a Treasury note that makes coupon payments on May 15 and November 15. The number of days between each coupon payment is 184. Suppose you sold the bond on June 27, 2016. If the number of days between May 15 and June 27 is 43, the bond carried a coupon rate of 3.875% and matures as of May 15, 2026 ($1,000 par value),
a) What would have been the settlement (dirty) price on June 27, 2016 if the bond was priced to yield 4.0369%?
b) What was the accrued interest?
c) What was the market price (quoted on the Wall Street Journal)?
In: Finance
Net Cash Flow From Operating Activities
The following are accounting items taken from Tyrone Shoelaces Company's records for 2016:
Net income, $22,700
Payment for purchase of land, $4,000
Payment for retirement of bonds, $6,000
Depreciation expense, $7,800
Receipt from issuance of common stock, $7,000
Patent amortization expense, $3,700
Increase in accounts receivable, $4,300
Payment of dividends, $5,000
Decrease in accounts payable, $2,700
Required:
Prepare the net cash flow from operating activities section of Tyrone's 2016 statement of cash flows using the indirect method. Use a minus sign for any negative amounts.
In: Accounting
Stellar Company’s net income for 2017 is $45,200. The only potentially dilutive securities outstanding were 800 options issued during 2016, each exercisable for one share at $6. None has been exercised, and 10,100 shares of common were outstanding during 2017. The average market price of Stellar’s stock during 2017 was $25.
(a) Compute diluted earnings per share.
(b) Assume the same facts as those assumed for part (a), except that the 800 options were issued on October 1, 2017 (rather than in 2016). The average market price during the last 3 months of 2017 was $25.
In: Accounting