Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Assignment The assignment is to write a Divvy function that performs 5 analyses of Divvy data. Four of these analyses are identical to the

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

The Assignment The assignment is to write a Divvy function that performs 5 analyses of Divvy data. Four of these analyses are identical to the previous project, in which case you need only call your DivwyAnalysis function and output plot the result. Let's start with a high-level overview of the program you need to write. The program is denoted by a function called Divvy, residing in the file "Divvy.m, The function is called from the command window, and immediately asks for the filename of ridership data to analyze. Then the user enters 1-5, denoting which analysis to perform y Analynin Program Divvy ridership iile to analyze divwyl.caV Analysis Io perform 1-5, 0 Lu exi Average ride duration: 12.765501 minute Analysis to perform1-5, 0 to exit }> | C'S 0itp:tiut joelienmel.neticsiU9.ii Page l of? Analysis 1 returns the average ride duration. The program repeats, asking the user for the next analysis to perform: 2 for average age, 3 for ride histogram, 4 for starting hour histogram, 5 for "stations near me", and 0 to exit. Here's a continuation of the previous screenshot, all of which are analyzing the file "divvy1.csv" Analysis to perform 1-5, 0 to exit) Average ride age: 36.923423 years old Analysis to perform 1-5, 0 to exit)>3 Ride duration breakdown: # ride : 30 mins : 233 # rides 4 hours: 2 For ndes startin9 oach tour Analysis to perform (1-5, 0 to exit) 4 Analysis to perform (1-5, 0 to exit> Enter your latitude Enter your 1ongitu Within how many mile 0.25 Station 338: 0.16804 -87.62 lumet Ave & 18th St stations: I Analysis to perform (1-5, 0 to exit0 Done* The user can select the analyses to perform in whatever order they prefer, and can repeat an analysis. The program repeats until the user enters 0; if the user enters an invalid operation (outside the range 0.5), the program should sayAnalysis to perform (1-5, 0 to ex so, ignore the input, and ask again: D1vy Divvy Analysis Program Divvy ridership tile to analyze divv Ride duration breakdoun: i rides 30 min8: 5018 # rides Invalid analysis operation, please try again The Assignment The assignment is to write a Divvy function that performs 5 analyses of Divvy data. Four of these analyses are identical to the previous project, in which case you need only call your DivwyAnalysis function and output plot the result. Let's start with a high-level overview of the program you need to write. The program is denoted by a function called Divvy, residing in the file "Divvy.m, The function is called from the command window, and immediately asks for the filename of ridership data to analyze. Then the user enters 1-5, denoting which analysis to perform y Analynin Program Divvy ridership iile to analyze divwyl.caV Analysis Io perform 1-5, 0 Lu exi Average ride duration: 12.765501 minute Analysis to perform1-5, 0 to exit }> | C'S 0itp:tiut joelienmel.neticsiU9.ii Page l of? Analysis 1 returns the average ride duration. The program repeats, asking the user for the next analysis to perform: 2 for average age, 3 for ride histogram, 4 for starting hour histogram, 5 for "stations near me", and 0 to exit. Here's a continuation of the previous screenshot, all of which are analyzing the file "divvy1.csv" Analysis to perform 1-5, 0 to exit) Average ride age: 36.923423 years old Analysis to perform 1-5, 0 to exit)>3 Ride duration breakdown: # ride : 30 mins : 233 # rides 4 hours: 2 For ndes startin9 oach tour Analysis to perform (1-5, 0 to exit) 4 Analysis to perform (1-5, 0 to exit> Enter your latitude Enter your 1ongitu Within how many mile 0.25 Station 338: 0.16804 -87.62 lumet Ave & 18th St stations: I Analysis to perform (1-5, 0 to exit0 Done* The user can select the analyses to perform in whatever order they prefer, and can repeat an analysis. The program repeats until the user enters 0; if the user enters an invalid operation (outside the range 0.5), the program should sayAnalysis to perform (1-5, 0 to ex so, ignore the input, and ask again: D1vy Divvy Analysis Program Divvy ridership tile to analyze divv Ride duration breakdoun: i rides 30 min8: 5018 # rides Invalid analysis operation, please try again

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago