Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want it to ready my data. Someone choses the year then it displays the data from that year. it also has to come up
I want it to ready my data. Someone choses the year then it displays the data from that year. it also has to come up with a message if they type in wrong year. this is what I tried and didn't work and my data
AutoSave Off Butterfly_data - Saved File Home Insert Page Layout Formulas Data Review View X Calibri 11 - A Paste Wrap Text BIU. a. Av Merge & Cer Clipboard Font LZ Alignment 110 A B 1 year 2 D specialist butterflies E 3 4 5 6 woodland butterflies 100 92 110 57 7 8 9 10 61 11 1990 1991 1992 1993 1994 1995 1996 1997 1998 12 1999 13 2000 14 2001 15 2002 16 17 2004 18 2005 19 2006 20 2007 ong countryside butterflies 43 88 34 98 48 110 37 63 40 70 45 87 42 94 43 101 30 74 32 67 34 33 30 37 39 38 45 29 26 Farmland butterflies 100 132 135 85 98 115 129 146 112 101 109 99 99 121 119 105 106 88 88 90 59 51 53 51 58 72 65 68 81 83 72 73 53 52 2003 Sheet1 71 71 61 59 42 sheet 2 77 73 Type here to search 20 Butterfly Script.m Butterfly Location.m X Untitled5.m Mean_Location.m choose_year2.m* function to choose a location from a menu and load the corresponding data $file C function year=choose_year2 Sasks user to input a year year = input (Please enter a year to view: ','g'); function to check if year is valid year=check_year (year); disp (year) Schecks if year entered by user is within the data range, if it's not, ferror message is printed and the user is asked to enter another year El while year 2015 an fprintf(" The year must be between 1948 & 2016 (inclusive). Ins) - year=input('Please enter G year to view: year=check_year (year); end end 2 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started