You are on page 1of 3

OUTPUT: 1. To add records 2. To delete a records 3. To view the records 4.

To exit Enter your choice 1 Enter the names: arun Enter the enrollment number: 101 Would you like to enter another name(y\n): y Enter the names: ravi Enter the enrollment number: 102 Would you like to enter another name(y\n): n 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 2 Enter the enrollment number to be deleted 102 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 3 Name : arun Number : 101 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 4

OUTPUT: 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 1 Enter the names: arun Enter the enrollment number: 101 Would you like to enter another name(y\n): y Enter the names: raja Enter the enrollment number: 102 Would you like to enter another name(y\n): n 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 2 Enter the enrollment number to be deleted 102 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 3 From forward direction Name : arun Number : 101 Press any key to continue From backward direction Name : arun Number : 101 1. To add records 2. To delete a records 3. To view the records 4. To exit Enter your choice 4

OUTPUT: Enrter the elements of the first polynomial : Enter the coff and pow :3 6 Do u want enter more coff ?(y/n)y Enter the coff and pow :2 7 Do u want enter more coff ?(y/n)y Enter the coff and pow :1 4 Do u want enter more coff ?(y/n)y Enter the coff and pow :0 3 Do u want enter more coff ?(y/n)n Enter the elements of the second poly : Enter the coff and pow :3 6 Do u want enter more coff ?(y/n)y Enter the coff and pow :2 5 Do u want enter more coff ?(y/n)y Enter the coff and pow :1 8 Do u want enter more coff ?(y/n)y Enter the coff and pow :0 2 Do u want enter more coff ?(y/n)n The elements of the poly first are : 3x^6 + 2x^7 + 1x^4 + 0x^3 The elements of the poly second are : 3x^6 + 2x^5 + 1x^8 + 0x^2 The first sorted list is : 1x^4+ 3x^6 + 2x^7 + 0x^3 The second sorted list is : 2x^5 + 3x^6 + 1x^8+ 0x^2 The sum of the two lists are : 1x^4+ 2x^5 + 6x^6 + 2x^7 + 0x^3 + 1x^8 + 0x^2

You might also like