Program Cis Majors 2
Program Cis Majors 2 CIS 3023
Popular in Course
Popular in Comm Sciences and Disorders
This 1 page Class Notes was uploaded by Aliyah Boyer on Friday September 18, 2015. The Class Notes belongs to CIS 3023 at University of Florida taught by Peter Dobbins in Fall. Since its upload, it has received 13 views. For similar materials see /class/207031/cis-3023-university-of-florida in Comm Sciences and Disorders at University of Florida.
Reviews for Program Cis Majors 2
Report this Material
What is Karma?
Karma is the currency of StudySoup.
Date Created: 09/18/15
CIS 3023 7 Exam 111 Review Exercises N E 4 V39 Consider again the creation a class File The class will store a pile of Objects What operations would be helpful to perform upon the pile How would they be implemented Create a class Stack where instead of using an array property to represent the elements stored on the Stack use an SLL property Create a class to store a Stack of SLLs You de ne the class property that will be used to actually store the Stack of information Create a class SLL which implements Comparable What will be the focus of your comparisons Suppose your class Node has a double property called data When SLL implements Comparable you will observe whether all the corresponding node positions in the list have the same data if they do the lists are equivalent If corresponding locations do not have the same value subtract them subtract the data in the second from the first and multiply the result by the index position from left to right location within the list Then use this value as a running sum Note values nearer the end of the list will have a greater weight in determining which list is respectively larger Consider these examples SLle69892593 SLLs269892593 slcompareTos2 will return 0 SLle993925911 SLLs26989259791 slcompareTos2 will return 976 1378 225725 3lli7 4071 5retum371001675retum4 Recall Question 2 on Sample Exam 11 read as follows Create a class Shirt having a property size type int and a property color type Color The class will implement Comparable comparisons based upon the size Comparator comparisons based upon the color and Cloneable Using this implementation consider the following problems 6 1 Create a class MultiColorException representing a shirt with more than one color What would be included within the class Suggest a manner in which the class could be utilized by Shirt How would this exception be caught claimed and thrown Needing to maintain our inventory of shirts we want to output the status of the shirts array to a file How would you do so What format will you use to output the data Is this focused on readability by a user or rereadability by our program State the difference between the two