Saturday, March 23, 2019

Essay --

1.Task print the title or the code of exercises that need to be transactd (e.g. science laboratory Exercise 1)Lab Work 12.Objectives List the objectives of doing the exercise2.1. To project how to use the array list 2.2. Create a generic trend of Array list of 30 hotels 2.3.To complete Hotel ADT class 2.4 To display the bring up of all hotels and their location2.5 Calculate and display the number of room for severally Hotel that input by user3.Algorithm and designWrite the steps to solve the problem and/or the design of the solutionHotel-sName take up-sDistrict String-iNumRoom int+Hotel()+Hotel(String,String,int)+getData(String,String,int) void+getName() String+getDistrict() String+getNumRoom() int+getCalculateTax() double+isLarge() boolean+display() String expose Hotel Flow Chart START Declaration of all variable sName,sInput, sDistrict,iNumRoom,bIsLarge,str instantiate the ArrayLists object ArrayListhotelList = new ArrayList(30) Create Object Hfor(int iNo = 1 iNo lead user to use JoptionPane fancy Hotel Name Enter district of hotel Enter room number The Hotel is large? ( yes / no ) for(int iIndex = 0 iIndex System.out.println(display()) END4. enrol listings and output evidence Program code and ... ....String)4.Method setData in gradation Hotel cannot be applied to given types6.Total time (hours) taken to complete the exercise Write the actual hours you took to do the exercise 5 hours7.Comments of the repose or difficulties or experience in completing the exercise Comments about(predicate) what you have learned from doing the exercisesAfter completin g this exercise, I had already accredit How to create an ArrayList.In my opinion this lab work is quite tough because I need to Search and list 30 real name Hotel in Malaysia.In this Task User must Also need to input 30 time of hotel information its became a problem because when I give in the input more than 10 time.my blue Jay will have a problem .either It close It ego or Nothing appear at the JOptionPane show input duologue box. Cause of this problem I need to rewrite the hotel information to some(prenominal) time.

No comments:

Post a Comment