Input restrictions The function should halt and return a red error message for t
ID: 3836741 • Letter: I
Question
Input restrictions The function should halt and return a red error message for the following conditions. The input N is not a positive integer bigger than 0 The number of columns of input border is not 2 The input hub is not a 1x2 row vector b) Write a script file map.m which will first load the given data US border.mat. This creates two variables x y representing the positions of points located along the border of the 48 contiguous states of USA. The number pair (x (i) y (i) represents the x and y coordinates, respectively, of the i-th point on the border. Use variables x and y to create a variable border (this will define the polygon of the shape of USA). The hub city is the city of Lubbock with its location defined by variable Lbb [1150 450 Next, from this script call the function cites .m you wrote in (a) to create 99 cities that lie inside USA. Finally plot the border points with black circles and join the consecutive points to create the US border. In the same plot mark the 99 cities as red stars (asterisks). Also plot the location of Lubbock with a blue diamond marker. Specify appropriate axes ranges and include a legend. A sample plot is given below. 1500 -e-borderExplanation / Answer
import java.util.*;
class fcfs_dsk
for(i=0;i<n;i++)
total=total+hm[i];
System.out.println(“The total no of cylinders traversed throughout disk movement is:”+ total);
}
}
import java.util.*;
class fcfs_dsk
for(i=0;i<n;i++)
total=total+hm[i];
System.out.println(“The total no of cylinders traversed throughout disk movement is:”+ total);
}
}
import java.util.*;
class fcfs_dsk
for(i=0;i<n;i++)
total=total+hm[i];
System.out.println(“The total no of cylinders traversed throughout disk movement is:”+ total);
}
}
import java.util.*;
class fcfs_dsk
for(i=0;i<n;i++)
total=total+hm[i];
System.out.println(“The total no of cylinders traversed throughout disk movement is:”+ total);
}
}