Sunday, May 19, 2019

OOPS Assignment

The gage is a list of operations. For each class, select the operations that make sense for aim in class. Discuss the fashion of each operation listed for each class Classes variable length array-ordered disposition of fair games, indexed by integer , whose coat an vary at run time Symbol Table- a table that maps text keywords into description Set-unordered collection of goals with no duplicates Operations Appendadd an object to the end of collection Copymake a copy of a collection opinereturn the no. F elements in collection invalidateremove a part from collection Indexretrieve an object from a collection at a given position Intersectdetermine the common members of both collections Insertplace an object into a collection at a given position Updateadd a member to a collection, writing over whatever is already there Variable length array-ordered collection of objects, indexed by integer , whose size can vary at run time 1. Insert To slip in an object in ordered collection. 2. Index Indexed by integer to retrieve an object from a collection. . Count deport no. Of elements whose size can vary at runtime. 2 Set-unordered collection of objects with no duplicates 1. Insert To insert an object into a collection. 2. Intersect To determine the duplicates in a collection. 3. Delete To delete any object or a duplicate member from a collection. 4. Update To update a collection by including new member. Symbol Table- a table that maps text keywords into description. 1 . Insert To map text keywords into description. 2. Count For Symbol Table. SQ.If you were designing a protocol for transferring computer files from one computer to another over address lines, which of the pursuit details would you select as relevant? Explain how your selected details are relevant a. electrical noise on the communication lines b. The expedite at which serial info is transmitted, typically 300, 1200, 2400, 4800 , or 9600 bits per second c. Availability of a relational database d . Availability of good full screen editor e. piece of tracks/ sphere of influence on the hard drive 1. The speed at which serial data is transmitted.To transfer serial data as a computer files from one computer to another speed is need according to the marrow of data. Some files use high transfer rates so above 300 or 1200 BSP speed is required. 2. Availability of a relational database. At a time of transferring data through telephone lines a relational database is required as a medium or path to connect different computers with catheter. 3. Number of tracks/sector on the hard drive. Number of tracks/sector on the hard drive is also required as a source or destination at a time of attracting files between computers.SQ. limn Math Class and which associated functions can be used for the following task To make out absolute measure To get ceil of number To get floor of number To get natural logarithm (base e) To get sludge of two values To get min of two values To generate random number To numerate military unit for a number To calculate square root of number Proper function syntax and description should be given MATH CLASS Math class contains methods for performing basic mathematical operations such as the elementary exponential, logarithm, square root, and trigonometric functions.FUNCTIONS To get absolute value Math. Abs() To get ceil of number Math. Ceil() To get floor of number Math. Floor() To get natural logarithm (base e) Math. Log() To get Max of two values Math. Max() To get min of two values Math. Min() To generate random number Math. Random() To calculate power for a number Math. Expo(double a) To calculate square root of number Math. Sort(double a). SQ. Write a Java exertion called Summing. Java that takes exactly four integers ND determines and prints the smallest, the largest and the sum of these four integers.The programs output should look like the following The first integer 4 The second integer 6 The third integer 2 The one-quarter in teger 7 The smallest integer was 2 and largest integer was 7. The sum of these four integers is 19 SOURCE calculate package summing import Java. ITIL. digital scanner * author Monsoon public class Summing public static void main(String rags) Scanner surprises=new Scanner(System. In) into a=new into4 into System. Out. Print(Enter Four integers )

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.