Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
problemsuppose we are maintaining a collection c of elements such that each time we add a new element to the collection
problem1 describe how to use an array list and an int field to implement an iterator include pseudo-code fragments
problembriefly describe how to perform a new sequence method makefirstp that moves an element of a sequence s at
problem1 give pseudo-code describing how to implement all the operations in the array list adt using an array in a
problemsuppose we are keeping track of access counts in a list l of n elements suppose further that we have made kn
problem1 describe a nonrecursive method for reversing a node list represented with a doubly linked list using a single
problem1 give an adapter class to support the stack interface using the methods of the array list adt2 draw pictures
problem1 draw a representation of an initially empty array list a after performing the following sequence of operations
problem1 use the dynamic programming approach to write an algorithm to find the maximum sum in any contiguous sub list
problem1 write an efficient algorithm that will find an optimal order for multiplying n matrices a1nbsptimes
problema hotel salesperson enters sales in a text file each line contains the following separated by semicolons the
problemwrite a program that reads a text file as described in and that writes a separate file for each service category
problema store owner keeps a record of daily cash transactions in a text file each line contains three items the
problemthe figure below shows a plot of the capacitor voltage from the circuit shown in the capacitor voltage increases
problemsuppose a file contains bond energies and bond lengths for covalent bonds in the following formatwrite a program
problem1 write a program that reads a file containing two columns of floating-point numbers prompt the user for the
problem1 what is the purpose of the finally clause give an example of how it can be used2 what happens when an
problem1 what can your program do with the exception object that a catch clause receives2 is the type of the exception
problem1 what is a checked exception what is an unchecked exception give an example for each which exceptions do you
problem1 how do you open a file whose name contains a backslash like ctempoutputdat2 if a program woozle is started
problem1 what happens if you try to open a file for reading that doesnt exist what happens if you try to open a file
problem1 why doesnt the read file method catch any exceptions2 consider the tryfinally statement in the read file
problem1 what happens when you supply the same name for the input and output files to the total program try it out if
problemwhen a share of common stock of some company is sold the capital gain or sometimes loss is the difference
problem1 implement the entire queue adt using a singly linked list2 implement the deque adt with a doubly linked list3