Recreational and elite runners targeting a certain race distance are often interested in the average pace...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Recreational and elite runners targeting a certain race distance are often interested in the average pace they are required to run to reach a certain time goal. Complete the below function required_pace that takes a runner's goal time (expressed in hours, minutes and seconds) and race distance (expressed in kilometres) as inputs and returns the required average pace (expressed in hours, minutes and seconds per kilometre) required to finish precisely in the goal time. Your code must use MATLAB's floor function. Consult the MATLAB documentation on the floor function if you need help using this function. Example: If a runner's goal is to run 33 mins and 3 secs for a 10km race the pace required is 3 mins and 18.3 secs per km. In this case, the code: time = [0,33,31; % [hrs,mins, secs] distance = 10; % kms pace = required_pace(time, distance); should return: pace = 10,3,18.3] % (hrs,mins, secs] per km Function e A Save C Reset E MATLAB Documentation 1 function pace = required_pace(time,distance) Recreational and elite runners targeting a certain race distance are often interested in the average pace they are required to run to reach a certain time goal. Complete the below function required_pace that takes a runner's goal time (expressed in hours, minutes and seconds) and race distance (expressed in kilometres) as inputs and returns the required average pace (expressed in hours, minutes and seconds per kilometre) required to finish precisely in the goal time. Your code must use MATLAB's floor function. Consult the MATLAB documentation on the floor function if you need help using this function. Example: If a runner's goal is to run 33 mins and 3 secs for a 10km race the pace required is 3 mins and 18.3 secs per km. In this case, the code: time = [0,33,31; % [hrs,mins, secs] distance = 10; % kms pace = required_pace(time, distance); should return: pace = 10,3,18.3] % (hrs,mins, secs] per km Function e A Save C Reset E MATLAB Documentation 1 function pace = required_pace(time,distance)
Expert Answer:
Answer rating: 100% (QA)
unction pace requiredpacetimedistance totalseconds ... View the full answer
Related Book For
Statistics for Business and Economics
ISBN: 978-0132930192
8th edition
Authors: Paul Newbold, William Carlson, Betty Thorne
Posted Date:
Students also viewed these algorithms questions
-
The local amusement park was interested in the average wait time at their most popular roller coaster at the peak park time (2 p.m.). They selected 13 patrons and hadthem get in line between 2 and 3...
-
Recreational and elite runners targeting a certain race distance are often interested in the average pace they are required to run to reach a certain time goal. Complete the below function...
-
There are three (3) types of textbook based homework items located at the end of each chapter. These include Discussion Questions (DQ), Exercises (E), and Problems (P). Some homework items have been...
-
Required Use the Target Corporations annual report in Appendix B to answer the following questions. a. What was Targets current ratio for its fiscal-year ended February 1, 2014 (2013) and 2012? b....
-
Susan leases office space from Realty Corporation. Susan is a seamstress and uses the office to meet with clients and sew. She has no employees. Susan pays to the Realty Corporation monthly lease...
-
Consider the following premerger information about a bidding firm (Firm B) and a target firm (Firm T). Assume that both firms have no debt outstanding. Firm B Firm T Shares...
-
You are the global sales manager for Samsung responsible for sales of their tablet computers. The company has just announced a new model that will be available in five countries starting next month...
-
Do the IFRS and GAAP conceptual frameworks differ in terms of the objective of financial reporting? Explain.
-
Case: The rise of ad blockers has begun to make a dent in the advertising revenue earned by content creators and providers. Ad blockers identify and eliminate content based on its IP address,...
-
When faced with a clearly erroneous precedent, my rule is simple, writes Supreme Court Justice Clarence Thomas. We should not follow it. How do these words offer a cautionary tale for managers...
-
The purpose of this assignment is to implement a balanced binary tree-based variation of a list and to investigate its time complexity for some of the list operations. Introduction Like an earlier...
-
Mako Industries has annual credit sales of $2,000,000. Current expenses for the collection department are $50,000, bad-debt losses are 1.00%, and the DSO is 25 days. The firm is considering easing...
-
For each item or event in the table below, select the best description/explanation from the following list and enter the corresponding number in the table. Pick only one number for each item. (10...
-
How would Pericles and Confucius debate the role of merchants in a well-arranged society? Explain.
-
What are the effects of instability in the foreign currency markets on Nike such as the supply chain, manufacturing, and production
-
What right and wrong Aubin - Plaintiff did and Unilever did? What lessons withdrawn from this case? And give some recommendations for both Aubin - Plaintiff and Unilever to win the case and avoid the...
-
Examine and reflect on activities in the profession that lead to life-long learning. Compare and contrast leadership attributes for professional service and scholarship.
-
What is the role of business risk analysis in the audit planning process?
-
A random sample of 202 business faculty members was asked if there should be a required foreign language course for business majors. Of these sample members, 140 felt there was a need for a foreign...
-
Samples of four salespeople from each of four regions were asked to predict percentage increases in sales volume for their territories in the next 12 months. The predictions are shown in the...
-
Use the runs test to test for randomness the number of customers shopping at a new mall during a given week. The data are given as: Day Number of Customers Monday .........525 Tuesday .........540...
-
Online purchases are commonly governed by a sales contract between the online merchant and the consumer in the terms of use found as a link on the sellers home page. Often, purchasers are informed...
-
Zapata, a Texas company, entered into a contract for Unterweser, a German company, to tow an oil-drilling rig from Louisiana to Italy. The contract stated, Any dispute arising must be treated before...
-
Aangi sends Anil a purchase order stating that only her terms apply and that in the event of a dispute between the parties in connection with the transaction, the dispute will be submitted to...
Study smarter with the SolutionInn App