What's new

Closed Need help optimizing your program code? pasok!

Status
Not open for further replies.
Start ka dito. If natutunan mo na lahat wala nang problema yang project na hotel reservation mo aside sa UI.
You do not have permission to view the full content of this post. Log in or register now.
Salamat po dito ts pano gamiting yung getter and setter sample po mag iinput po ako ng reservation ng room sa hotel pano ko magagamit yung getter and setter diba ibang template yung getter and setter ts. Salamat po pala.
 
From the word itself, getter will get the information of different rooms, price, availability, etc, setter naman magagamit mo yan kung nagreserved na yung customer like for example iseset mo yung availability to false, or iseset mo yung price ng isang room.
 
Sa start kasi, iinitialize mo na yung rooms mo, saka yung information ng each room.
Depende kung ilang rooms meron sa hotel mo.
TApos ilalagay mo yun sa array.
Let's say, hotelRooms.
Kung gagamit ka ng setter, example niyan > hotelRooms[0].SetAvailability(false)
Kung gagamit ka ng getter, example niyan > hotelRooms[3].GetPrice()

Gets?
 
Hindi ko pa kasi alam kung ano na progress mo sa project na yan. Wala kang pinapakita sa akin na progress mo.
Example magrereserve na ako ng room sa hotel mo.
Ang algorithm niyan is ganito.
1. Select the type of room.
2. Search for available rooms based on the selected type of room inside the array.
3. Show the room information (Getter methods)
4. If confirmed for reservation, then set the room information, like kung ilang days, how much it will costs (Setter and Getter)
5. Show the final info based on the above process.
Kung hindi mo maintindihan yan, pag-aralan mo mabuti ang OOP.
Saka array na rin. Kung may GUI ang project mo then GUI na rin.
Kung console lang. No need na ang GUI.
 
Hindi ko pa kasi alam kung ano na progress mo sa project na yan. Wala kang pinapakita sa akin na progress mo.
Example magrereserve na ako ng room sa hotel mo.
Ang algorithm niyan is ganito.
1. Select the type of room.
2. Search for available rooms based on the selected type of room inside the array.
3. Show the room information (Getter methods)
4. If confirmed for reservation, then set the room information, like kung ilang days, how much it will costs (Setter and Getter)
5. Show the final info based on the above process.
Kung hindi mo maintindihan yan, pag-aralan mo mabuti ang OOP.
Saka array na rin. Kung may GUI ang project mo then GUI na rin.
Kung console lang. No need na ang GUI.
Ts ano ano po ba mga uml ng hotel reservation system bale ngayon pa lang po ako gagawa ng process base po sa mga tinuro nyo po hope na tama po tong mga gagawin ko post ko nlng po sa thread nyo ts pag nakagawa na po ako.
 
Search mo nalang sa net, marami na kasing ganyang project. Saka dito sa phcorner. Very common, pag-aralan mo, make your own, change kung ano yung kailangan mo.
 
Search mo nalang sa net, marami na kasing ganyang project. Saka dito sa phcorner. Very common, pag-aralan mo, make your own, change kung ano yung kailangan mo.
boss baka may mga problem ka jan sa JAVA pwede madali muna if else nahihirapan kasi ako e kasi nung nasa C ako hindi ako na master yung if else else if else if else salamat boss
 
Status
Not open for further replies.
Back
Top