Monday, February 25, 2019

OOPS Assignment

The befriend is a list of operations. For each division, select the operations that make sense for determination in class. Discuss the behavior of each operation listed for each class Classes variable length array-ordered assembly of marks, indexed by integer , whose sizing an take off at run time Symbol Table- a table that maps schoolbook keywords into description Set-unordered collection of determinations with no echos Operations Appendadd an object to the end of collection Copymake a copy of a collection Countreturn the no. F elements in collection Deleteremove a member from collection Index cerebrate an object from a collection at a given localize Intersectdetermine the common members of two collections storeplace an object into a collection at a given position updateadd a member to a collection, writing over whatsoever is already there Variable length array-ordered collection of objects, indexed by integer , whose size can vary at run time 1. chime in To insert an object in ordered collection. 2. Index Indexed by integer to retrieve an object from a collection. . Count Return no. Of elements whose size can vary at runtime. 2 Set-unordered collection of objects with no duplicates 1. preface 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 unseasoned 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 communications protocol for transferring ready reckoner files from one computer to another over telephone lines, which of the pastime details would you select as relevant? Explain how your selected details ar relevant a. Electrical noise on the communication lines b. The speed at which in series(p) data is transmitted, typically 300, 1200, 2400, 4800 , o r 9600 bits per second c. Availability of a comparative database d. Availability of good full screen editor e. do of tracks/ area 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 required according to the measuring stick of data. Some files use high transfer rates so preceding(prenominal) 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 bring to peeher 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 amid computers.SQ. Define Math Class and which associated functions can be used for the adjacent task To view absolute value To get ceil of number To get floor of number To get natural logarithm (b ase e) To get max of two values To get min of two values To buckle under random number To report power for a number To imagine square up root of number Proper function syntax and description should be given MATH CLASS Math class contains methods for execute basic numeric 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 grievous bodily harm of two values Math. Max() To get min of two values Math. Min() To depict 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 diligence 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 railroad siding should look like t he following The first integer 4 The second integer 6 The third integer 2 The fourth integer 7 The smallest integer was 2 and largest integer was 7. The sum of these four integers is 19 SOURCE CODE package summing import Java. ITIL. Scanner * author Monsoon reality 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.