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 = (0,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 = (0,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:
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
-
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...
-
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...
-
Researchers in mental health fields are often interested in evaluating the effectiveness of using food images to enhance positive mood. Adapting a typical design from such studies, suppose we have...
-
Modesto Trading Berhad has recently appointed Messrs. Suresh Kumar & Co., Chartered Accountants, to audit the companys financial statements for the year ended 30 June 2021. You are assigned by...
-
Give an example of a Code provision with the limiting language For purposes of this Section. How does it affect the application of the provision you found? (Use a provision other than the example...
-
On January 2, 2022 , Maya Finance Company lent P1,000,000 to James Trading. James Trading agreed to repay the loan to Maya Finance after six years, with interest at 8% payable every year end,...
-
You are a sales manager for an office supply distributor in a large metropolitan area. What do you use as your basic control unit in creating territories? Why?
-
Miller Corporation is considering replacing a machine. The replacement will reduce operating expenses (that is, increase earnings before depreciation, interest, and taxes) by $16,000 per year for...
-
3. Alice and Bob are employees residing in two dispersed branches, D1 and D2, of the same company. They want to secure all the communications between them as follows: they want to ensure the...
-
The Community Youth Center (CYC) Corporation failed to pay its annual registration fee in 2000 and was automatically dissolved by the State Corporation Commission. CYC continued to operate as a...
-
Prepare journal entries to record Southgate Inc.'s transactions. Round all values to the nearest cent. November 1, 2022: Accepted a $6,000, 3-month, 9% note dated this day in granting Judith Grimm a...
-
Wyatt is the accounting manager at a small but growing regional grocery store. They noticed that no master budgets had been created for the store and asked the owner why this task had not been...
-
In the coming year, your company is expected to have sales of $16,000, costs of $6,000, where these costs include depreciation of $2,000 (i.e.. your pre-tax income is 16,000- 6,000) You also need to...
-
you will demonstrate your mastery of the following course outcomes: Apply cost-volume-profit (CVP) analysis based on cost classification for planning and control of internal accounting processes...
-
Indirect cost rate is the ratio of what to what for a given time period? A. Indirect expense to indirect cost. B. An appropriate base to indirect cost. C. Indirect expense to an appropriate base. D....
-
What is the legal difference between a contract and an agreement? Explain.
-
Evaluate. Write your answer as a fraction in simplest form. 2 1 2| 15 2 3
-
In the series connection below, what are the respective power consumptions of R, R2, and R3? R R www 4 V=6V P1-3 W; P2=3W; and P3= 3 W OP10.5 W; P2-1 W; and P3= 1.5 W P1=1.5 W; P2=1 W; and P3= 0.5 W...
-
The body mass index (variable BMI) provides an indication of a person's level of body fat as follows: healthy weight, 20-25; overweight, >25-30; obese, greater than 30. Excess body weight is, of...
-
Construct a stem-and-leaf display for the hours that 20 students spent studying for a marketing test. 3.5 2.8 4.5 6.2 4.8 2.3 2.6 3.9 4.4 5.5 5.2 6.7 3.0 24 5.0 3.6 2.9 1.0 28 3.6
-
A consulting group offers courses in financial management for executives. At the end of these courses participants are asked to provide overall ratings of the value of the course. For a sample of 25...
-
The following is the trial balance of Sangeeta Udhyog Ltd. as on 31st March 2006. Further information 1.The authorised share capital of the company consists of 4,00,000 equity shares of ` 10 each. 2....
-
The accountant of Pushpa Engineering Company Ltd. has prepared the following trial balance of the company as on 31st March, 2006. Further information 1. Authorised equity share capital of the company...
-
Following trial balance as at 31st March 2006 has been prepared from the account books of Mahesh Foods Ltd. Further information 1.The authorized capital of the company is 3 lac equity shares of ` 10...
Study smarter with the SolutionInn App