In: Advanced Math
1 point) A truck starts from rest and accelerates at 1?/?2 . 6 s later, a car accelerates from rest at the same starting point with an acceleration of 2.7m/s2 .
a) Where and when does the car catch the truck?
m from the starting point
at seconds from the moment the truck started to accelerate.
b) What are their velocities when they meet?
The truck : m/s
The car : m/s
In: Physics
The Fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8,.... Formally, it can be expressed as:
fib0 = 0
fib1 = 1
fibn = fibn-1 + fibn-2
Write a multithreaded C++ program that generates the Fibonacci series using the pthread library. This program should work as follows: The user will enter on the command line the number of Fibonacci numbers that the program will generate. The program will then create a separate thread that will generate the Fibonacci numbers placing the sequence in a data structure that is shared by the threads (a vector is probably the most convenient data structure). Note that the thread function should be iterative when calculating fibonacci (can be recursive, but maybe difficult to implement). When the thread finishes execution, the parent thread will output the sequence generated by the child thread. Because the parent thread cannot begin outputting the Fibonacci sequence until the child thread finishes, this will require having the parent thread wait for the child thread to finish, using the techniques described in lectures pertaining to threads. Note that the vector should only have those many terms as the user wanted.
The name of this program must be fibonacci.cpp
In: Computer Science
Reply to the following discussion post 1 and 2 in your own words:
Discussion 1
From my perspective fractional jet ownership has many advantages. The biggest advantage is customer service. The air crew allows the owners to do whatever they want, including smoking on board and/or bringing your pet. Another advantage is flying anywhere you want with only 4-10-hour notice. Furthermore, the pilot accommodates the owners fears such as turbulence or flying over water by taking an alternative route. The plane is also stocked with the owner’s favorite snacks and drinks before the owner even boards the plane. In addition, the owner can sell their portion of the plane after five years of use. The disadvantages of fractional jet ownership are mainly the cost. It costs $600,000 plus $20,000 a month for operating expenses. Another disadvantage is the owners are only allowed 50 flying hours each year. Furthermore, fractional jet owners cannot customize the look or interior of the plane.
I think fractional ownership is a wise decision in the perspective of a company CEO and a potential shareholder. I think this because of the easy access and convenience to flying. CEOs and potential shareholders have busy schedules and may need to be in different places of the world with little time in-between. They cannot wait for the next flight that a local airline offers. They also can work comfortably on the plane and even hold meetings with important business personnel while in the air. Fractional jet ownership for CEO’s and shareholders allow more work to get done in less time.
If I owned a fraction of a Jet, the first place my fiancé and I would visit is Venice, Italy. The reason that would be the first place is because experts are saying that Venice can be destroyed within a few years due to the water level rising. I can’t say any OM concepts influenced my destination decision. I have always wanted to visit there because I love boats and they drive boats everywhere. We also really enjoy Italian food.
Discussion 2
My first question was "how much does this cost?" because it sounds awesome. I found an article from last year that states that the minimum cost would be $550,000 for 50 flight hours, plus monthly management fees which include maintenance, fuel, catering, etc. The monthly management fee for the smallest aircraft is $9600 (Forbes, 2017). It is clear that one needs to be very wealthy in order to be part of this ride-sharing service, which would be a disadvantage from my perspective.. ha! I also think that not being able to fire the crew if any issues arise is a disadvantage... that would make for some awkward flights. As far as the advantages, well, of course that the entire service is an advantage. The ability to fly anywhere with your family and friends is awesome. Also, I think that the fact that one does not have to worry about managing the crew, or providing the right maintenance to the airplane is also an advantage.
I really think that this is a genius business idea. From the perspective of the CEO, he/she is able to charge multiple people to provide the service, maintenance, management of the employees, etc. and they only have to own a limited amount of planes. People who own these planes are not always using them anyway, so this idea of sharing the planes is perfect to make a bit more money and also be able to please customers that might not necessarily have enough money to have their own plane.
From the perspective of a potential shareholder, I think that this is a wise decision because the investment is less risky than having your own plane. Also, like I already mentioned, the management, maintenance, etc. is taken care of for you. I like the way the business is described in the article. It sounds like the company will always have your back whenever you need it. If I had the money, I would definitely consider it.
I have not been to Europe yet, and my wife always wanted me to propose in Paris, so that would probably be my first destination. It would be awesome to be able to say "let's go to France for the weekend". After that, I would like to visit some other beautiful countries such as Italy, Greece, Australia... maybe even Egypt. Having the flexibility (and money) to own the fraction of a jet would be amazing. I do not think any OM concepts influenced my decision... but the inventory management of those flight hours would certainly go by really fast.
In: Operations Management
The Fibonacci sequence is the series of integers
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 . . .
See the pattern? Each element in the series is the sum of the preceding two elements. Here is a recursive formula for calculating the nth number of the sequence:
Fib(N) = {N, if N = 0 or 1
Fib(N - 2) + Fib(N - 1), if N > 1
a) Write a recursive method fibonacci that returns the nth Fibonacci number when passed the argument n.
b) Write a non recursive version of the method fibonacci.
c) Write a driver to test your two versions of the method fi‐
bonacci.
d) Compare the recursive and iterative versions for
efficiency.
(Use words, not O( ) notation.)
Use Java programming.
In: Computer Science
PHP
1. Create a new PHP document (nit Objective 1)
2. Write a comment similar to the following: "This is my first PHP document, which displays some data in the web browser"(Unit Objective 1)
3. Assign your name as a string value into the variable labeled myName (Unit Objective 2)
4. Assign 53870 numeric value into the variable named randomNumber (Unit Objective 2)
5. ssign the name of the web browser and operating system of the user accessing the file into the variable named userAgent (Unit Objective 2)
6. Assign the file name of the currently running script into the variable named fileName (Unit Objective 3)
7. Assign the IP address from which the user is viewing the current page into the variable named ipAddress (Unit Objective 3)
8. Use echo command in order to display some informative descriptions followed by the values of myNem, randomNumber, userAgent, fileName, and ipAddress variables in the web browser. Each informative description and the value pair whould be displayed on a separate line (Unit Objective 4)
9. Save the file as myFirstPHP.php
10. Create a folder within the public_html folder in your account in people.ysu.edu, name this folder as "e_commerce".
11. Create another folder within the "e_commerce" folder you just created, and name this folder as "Assignment_1", and upload "myFirstPHP.php" file into the "Assignment_1" folder.
12. Attach "myFirstPHP.php" file to your response to this assignment, and submit it.
In: Computer Science
In: Computer Science
In: Anatomy and Physiology
Question 1
a) For the data in Homework 2, Question 1
|
Size (Xi) |
12 |
15 |
18 |
21 |
24 |
27 |
|
Price (Yi) |
60 |
85 |
75 |
105 |
120 |
110 |
a) calculate the ANOVA table. Use the ANOVA Table to conduct an F-Test to see if the model is significant (use α = 0.05)
b) Give a 95% confidence interval for the mean sale price for 2000 sq. ft. houses.
c) Give a 95% prediction interval for the sale price of an individual 2000 sq. ft. house.
d) For the data in Homework 2, Question 2 calculate the ANOVA table for the data. Use the ANOVA Table to conduct an F-Test to see if the model is significant (use α = 0.05) (data provided below)
|
dollars |
satisfaction |
|
11 |
6 |
|
18 |
8 |
|
17 |
10 |
|
15 |
4 |
|
9 |
9 |
|
5 |
6 |
|
12 |
3 |
|
19 |
5 |
|
22 |
2 |
|
25 |
10 |
Thank you so much! Just want to check my answers.
In: Statistics and Probability
Programs 1 and 2 (Line Scan Conversion)
1.Write a function to draw a line using the Basic line drawing algorithm.
The following is a function header example:
Basic-alg( int x0, int y0, int x1, int y1 )
Use this function to draw N lines (N is provided by the user) at positions (i.e., end coordinates) determined by a random number generator.
2.Write a function to draw a line using the "Bresenham" algorithm.
The following is a header example:brz ( int x0, int y0, int x1, int y1 )Use this function to draw N lines(N is provided by the user) at positions(i.e., end coordinates)determined by a random number generator.
NOTES:
Each of the line functions must handle all types of lines (horizontal, vertical,and all other line orientations)
In: Computer Science