IMT-36 JAVA PROGRAMMING
PART– A
1. Define each of the following terms: single inheritance, multiple inheritance, interface, superclass and subclass.
2. Discuss why casting a superclass reference to a subclass reference is potentially dangerous multiple inheritance? What feature of Java helps realize the benefits of multiple inheritance?
3. Distinguish between non-abstract methods and abstract methods.
4. Write a recursive method power (base, exponent) that when invoked returns base exponent
5. Selection sort searches an array for the smallest element in the array. Then, the smallest element is swapped with the first element of the array. The process is repeated for the subarray beginning with the second element of the array. Each pass of the array results in one element being placed in its proper location. This sort has a performance comparably to the bubble sort-for an array n elements, n-1 passes must be made, and for each subarray, n-1 comparisons must be made to find the smallest value. When the subarray being processed contains one element, the array is sorted. Write a recursive method selection Sort to perform this algorithm.
PART– B
1. Create a Data class with the following capabilities:
(a) Output the date in multiple formats such as
MM/DD/YY
June 14,2009
DDD YYYY
(b) Use overload constructors to create Date objects initialized with dates of the formats in part (a)
2. Create class SavingAccount. Use a static class variable to store the annual interest Rate for each of the savers. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the balance by annual interest Rate divided by 12; this interest should be added to savingBalance. Provide a static method modifyInterestRate that sets the annual interest Rate to a new value. Write a driver program to test class SavingsAccountobject, saver1 and saver2, with balance of $2000.00 and $3000.00, respectively. Set annual interest Rate to 4%, then calculate the monthly interest and print the new balances for each of the savers. Then set the annual interest Rate to 5% and calculate the next month's interest and print the new balances for each of the savers.
3. Explain the advantage of object oriented model over traditional programming model.
4. Define each of the following terms: single inheritance, multiple inheritance, interface, superclass and subclass.
5. Discuss why casting a superclass reference to a subclass reference is potentially dangerous multiple inheritance? What feature of Java helps realize the benefits of multiple inheritance?
PART – C
1. Distinguish between non-abstract methods and abstract methods.
2. a) What is Package.
b) Explain Client Server.
3. a) What is LRL?
b) Why has Java gained international acceptance.
4. a) Explain Java API.
b) Explain RMI with suitable example.
5. a) What is package and how it is useful in programming?
b) Class is the heart of Every Java applet, Comment.
CASE STUDY-1
A spelling Checker: Many popular word processing software packages have built in spell checkers. 1. You are asked to develop your own spell-checker utility. We make suggestions to help get you started. You should then consider adding more capabilities. Use a computerized dictionary (if you have access to one) as a source of words.
CASE STUDY-2
Why do we type so many words with incorrect spelling? In some cases, it is because we simply do not know the correct spelling, so we make a "best guest." In some case, it is because we transpose two letters (e.g., "defualt" instead of "default"). Sometimes we double-type a letter accidentally (e.g., "hanndy" instead of "handy"). Sometimes we type a nearby key instead of the one we intended (e.g., "biryhday" instead of "birthday"). And so on. Design and implement a spell-checker applet in Java. Your program should maintain an array wordList of strings. Enable the user to enter these strings. Once you have these capabilities, you can obtain the words for the spell checker from a computerized dictionary stored in a file. Your program should ask a user to enter a word. The program should then look up that word in the wordList array. If the word is present in the array, your program should print 'Word is spelled correctly."
If the word is not present in the array, your program should print 'word is not spelled correctly." Then your program should try to locate other words in wordList that might be the word the user intended to type. For example, you can try all possible single transpositions of adjacent letters to discover that the word "default" is a direct match to a word in wordList Of course, this implies that your program will check all other single transpositions such as "edfault," "dfeault," "default," "deafult," and "defualt." When you find a new word that matches one in wordList, print that word in a message such as, 'Did you mean "default?". "
2. Implement other tests such as replacing each double letter with a single letter and any other test you can develop to improve the value of your spell checker.
IMT CDL Assignments
Dear Student,
As per your last email you requested a solved assignment which is always available with us. We ensure you that the answer quality would be the best and you will get up to 90% to 100% marks in the assignments purchased from us. We have an expert on every subject working with us. The subject matter experts are highly qualified and deliver their best for you over and over again.
Please have a look at the price list mentioned below and send us a reply on this e-mail to let us know which assignment you want from us.
Type A- Rs. per subject – This assignment is ready to use assignment for every student. (The content of this assignment is the same for every student. You may risk getting your marks deducted by the university due to plagiarism.)
Type B- Rs.per subject - This assignment is personalized and customized just for you. The answers of this assignment would not be shared with any other student. The content of this assignment would be unique and we will delete it from our database after sending it to you exclusively. (This assignment would have 0% plagiarism)
Type C - Rs. per Subject-Handwritten Assignment
If you want that your assignment should be written manually rather than being sent to you in a MS Word file or uploaded on the internet then we can do that for you. We will do your assignment manually and every answer would be created just for you. You only have to pay Rs._ per subject for handwritten assignments and we will make sure it gets to you on time every time. We can courier the assignment at your preferred address and you just have to receive it. This assignment will be delivered within a week’s time due to the fact that it needs more time to write down an answer than to type it. This assignment would also help you get around 90% to 100% marks because it would be done by our subject matter experts.
Type C- Rs. per subject Online assignment– This assignment is done by our staff members on your behalf. We will do it online by using your e-mail id and password. The answers we provide would be unique and will not be shared with any other student. (This assignment would also have 0% plagiarism)
Please note that you have to pay us in advance. All payment should be made in INR. As soon as we receive your payment, we will send your Type A assignment within 10 minutes only. If you have opted for Type B, we will send the assignment within 5 hours of receiving your payment. If you have opted for Type C, we will send your assignment within 24 hours of receiving the payment. Type B and Type C assignment submission takes more time because we customize each and every word of the assignment just for you. So we request you to be patient.
Pay Online
Now you can also make the payment online by the below mentioned link. We accept payments through Credit Card, Debit Card and Net Banking too.
Pay Offline
You can also pay us via NEFT / RTGS by visiting the nearest branch of your bank.
You can also deposit Cash by visiting the nearest branch of ICICI Bank.
Our process
After you have made the payment please email us your payment details with Assignment Name and Type Preference at solvezone@gmail.com. We will revert asap.
Note: For better response time, kindly use e-mail communication and avoid calling us. Our office timings are 9 AM to 6 PM.
Contact for Price:
Call on-8882309876
Year: 2015