Need the following program in Python:
Create a program that calculates the estimated duration of a trip in hours and minutes. This should include an estimated date/time of departure and an estimated date/time of arrival.
|
Arrival Time Estimator Enter date of departure (YYYY-MM-DD): 2016-11-23 Enter time of departure (HH:MM AM/PM): 10:30 AM Enter miles: 200 Enter miles per hour: 65 Estimated travel time Hours: 3 Minutes: 5 Estimated date of arrival: 2016-11-23 Estimated time of arrival: 01:35 PM Continue? (y/n): y Enter date of departure (YYYY-MM-DD): 2016-11-29 Enter time of departure (HH:MM AM/PM): 11:15 PM Enter miles: 500 Enter miles per hour: 80 Estimated travel time Hours: 6 Minutes: 20 Estimated date of arrival: 2016-11-30 Estimated time of arrival: 05:35 AM Continue? (y/n): n Bye! |
Specifications
In: Computer Science
Should attorneys be allowed to use their discretion in selecting jurors? Does the risk of discrimination and jury manipulation that appears in the use of peremptory challenges outweigh the value of giving the attorneys discretion to exclude jurors who might be leaning toward the opposition? Can we have a system of fair trials without the peremptory challenge? Explain
In: Psychology
In C++
Extra credit This is the formula for the future worth of an investment over time with consistent additional monthly payments and a steady rate of return. This can give you a bonus of 200 points. You will not be penalized if you do not do this nor will you be penalized if it is incorrect. This is a challenging problem because of all the mathematics involved. Let’s see how good you really are. FV = PV (1+ r/k) nk +PMT * [ (1+r/k) nk −1] * (1+ r/k) r/k FV : future value PV : initial value R : interest rate K : regular periodic investments • Annually, • Semi-annually, • Quarterly, • Monthly PMT: payment (installments) N : years Problem: You wish to start putting money away for your retirement (far-fetched, huh) anyway, how much would you have after 45 years if you started with an initial payment (PV) of $1000.00 and invested $250 (K) monthly. The dividend payments are 6% (R)and you invest $250 a month for the next 45 years. Your investment has an annual rate of return (R) of 6%.
Show how you would break this problem down into pieces (your pseudo code).
Then show your source code and display your initial investment, rate of return, length of time, monthly payments into the account and the final outcome. Show how much money you invested and what the final amount is, you’ll be surprised. HINT: try doing this problem manually first
In: Computer Science
2. What is the Neolithic Demographic Transition (NDT)? Explain what happened, why it happened, and how it is connected to the Neolithic Revolution.
In: Other
Often organizations are faced with the necessity of changing the direction or focus of their organization – due to competition, due to new technology, due to environmental issues, regulations, etc. In these situations, uncomfortable changes are sometimes required.
a) Would younger or older employees be more likely to embrace change?
b) Would successful or less successful organizations be more likely to embrace change?
c) One element in reinforcing change within an organization is to replace people and hire outsiders. Even if done with a great deal of care and understanding, this can often come across as a somewhat cruel undertaking. Why is it necessary?
In: Operations Management
Which benefits are of greatest value to your employer. Provide a justification for why you believe these benefits are of greatest value to employers (Pick at least 3)
In: Operations Management
Subject - Religion 1100-005
Describe in a religion of your choosing a bit about its historical origins and how, from those origins, information about ultimate being is revealed to that religion’s followers. Especially note a founder and weather this revealing U.B. is primarily a prophet, a sage or an incarnation. Given such descriptions, what does one learn about the religion’s Ultimate Being? Is it more relational, more mysterious, more transcendent or immanent? Generally, show how the kind of origins we find in the religion’s history is coherent with its concept of ultimate being. You may also argue that the religion’s origins are not very consistent with its Ultimate Being concept.
In: Psychology
A pair of narrow slits is positioned 1.90 m from a screen and illuminated with light made up of two wavelengths 556.00 nm and 507.60 nm.
First a filter is used to block the 507.60 nm light from reaching the screen. The resulting interference maxima are found to be separated by s = 1.60 mm.
a) What is in meters the separation of the slits?
We now remove that filter and place
a filter that blocks the 556.00 nm light.
b) What is in mm the obtained fringe separation?
We remove both filters.
c) What is in meters the separation on the screen of first bright maxima due to both wavelengths?
d) What is in meters the separation on the screen of fourth bright maxima due to both wavelengths?
In: Physics
Which do you think is more threatened in the U.S. today: individuals’ right to the free exercise of religion OR individuals’ right to due process and equal protection under the law? Explain.
In: Psychology
1) For the following Business Cycle Phases listed (Provide objectives and at least two deliverables from each phase)
SUBJECT : MODERN PROJECT MANAGEMENT
In: Operations Management
Before this class, what had you used Excel for? Do you know how to do something now that could have improved your previous creations?
In: Accounting
Practitioners measured spiritual well-being (SWB) in a sample of 16 adults who were alcoholic before and following treatment for alcoholism.
| Change in
SWB Following Treatment |
|
|---|---|
|
+11 |
−1 |
|
+10 |
−6 |
|
−8 |
+13 |
|
+20 |
−5 |
|
+12 |
−2 |
|
−3 |
+7 |
|
+14 |
+15 |
|
+9 |
−4 |
Use the normal approximation for the Wilcoxon signed-ranks T
test to analyze the data above. (Round your answer to two decimal
places.)
z =
State whether to retain or reject the null hypothesis. (Assume
alpha equal to 0.05.)
In: Math
A researcher working for an insurance company that sells life insurance would like to use regression analysis to predict life expectancy of his clients. He knows that there are several factors that contribute to life expectancy: some are genetic, some are related to life style, some are related to biological factors, and some are related to environment (access to health care, cleanliness of air, etc.) . He selects these candidate variables to develop his regression equation: gender, number of cigarettes smoked per day, cholesterol level, systolic blood pressure, and height-to-weight index: (actual weight / appropriate weight given gender, build, and height) * 100. Use the datasheet life expectancy in datasetsRM.xls to develop a regression equation to predict how long a person should live (for gender: 0=female, 1=male): 1. First, plot each non-categorical predictor variable against the dependent variable (age of death) and examine the plot to see if the relationship is linear. What’s your assessment? 2. Perform a multiple regression analysis and write up the results of your regression analysis in APA style. 3. For a male who does not smoke cigarettes at all, has a systolic blood pressure of 130, a height-to-weight index of 110, and a cholesterol level of 200, what is his life expectancy? NumCigsDay WtHtIndex Gender Cholesterol BloodPres AgeOfDeath 0 98 0 179 120 90 0 90 0 186 100 98 0 140 0 190 130 90 3 96 0 191 120 87 0 120 0 200 120 90 0 100 0 187 120 94 0 130 0 190 110 96 4 92 0 191 110 83 5 110 0 200 110 79 5 193 0 210 120 79 10 107 0 215 130 77 0 117 0 227 140 80 0 128 0 240 130 99 15 179 0 230 150 68 10 150 0 240 160 70 5 100 0 245 120 79 8 112 0 260 130 76 10 150 0 275 140 67 8 121 0 280 130 72 0 90 1 210 120 85 0 100 1 187 100 94 0 130 1 179 130 88 10 92 1 183 120 72 0 119 1 184 120 89 0 110 1 189 120 80 2 120 1 192 110 87 6 100 1 196 110 69 4 140 1 204 110 73 10 128 1 215 120 65 0 107 1 216 140 85 0 98 1 219 130 75 8 119 1 220 140 68 3 117 1 222 130 89 11 193 1 232 150 62 12 179 1 245 160 66 8 150 1 246 120 78 12 96 1 261 130 67 0 121 1 269 130 70 8 112 1 279 140 64 0 150 1 280 130 74
In: Math
Grayson is in the 24 percent tax rate bracket and has sold the following stocks in 2018: (Loss amounts should be indicated by a minus sign.) Description Date Purchased Basis Date Sold Amount Realized Stock A 1/23/1994 $ 7,650 7/22/2018 $ 4,820 Stock B 4/10/2018 14,800 9/13/2018 18,490 Stock C 8/23/2016 11,750 10/12/2018 16,660 Stock D 5/19/2008 5,550 10/12/2018 13,000 Stock E 8/20/2018 7,580 11/14/2018 3,700 a. What is Grayson’s net short-term capital gain or loss from these transactions?
In: Accounting
In: Computer Science