What's new

Help IT expert need your help to solve this problem

hahahah.. grabe si TS.. isang tao lang daw ang umunawa sa kanya at nag bigay ng code..

like hello? ikaw ang pumapasok tapos iba ang gagawa ng project mo? and take note, libre pa.. hahahahah

you can either change course or quit sir.. :D
 
Alright I was very busy last week kaya di na ako nakapag response pa.

For the purpose of helping and spoon-feeding you brother, I will give you the complete solution but only with the basic functionality of the project.

I find it very interesting this to do kasi una sa lahat, I never touched Java in my whole Dev Career. So, na intriga ako kasi C# Dev ako so naisip ko, ano kaya ang feeling ng magprogram sa labas na Visual Studio(2015). Walang Intellisense. walang code completion, refactoring, debug tracing at iba pang convenient features ni VS. so ginawa ko, nag scan lang ako ng Java Basics using Tutorialspoint particularly sa IO classes at file handling kasi yun ang primary needed sa project na ito. So after few hours of reading ang dami kong natutunan sa Java at nakita kong super powerful pala talaga ng Java, no wonder na maraming may gusto ang language na to. Halos magkamukang magkamuka sila ni C# my mga konting pagkakaiba lang sila ng mga rules and implementations at may mga areas na strict si Java at may mga areas naman na mas strict si C# pero they are pretty much the same language(less sa IDE kasi mas astig talaga si C# dahil sa VS).

So eto na nga, tambay mode kaya code muna sa Java at natapos ko ang project.

Things to do:

*Assuming you have a complete working Java environment. Mine is only using Notepad++ so you have to follow my tut. And assuming you are using Windows and knows how to execute using cmd.

-Download and Unzipped the zipped file PHCorner using this link

-Download all the .txt files attached.
-Copy all the attached files to one directory including the zipped file from the above link.
-Go to each file classes (Patient, Lab, Room & Doctor) and change the directory from where it will be mapped. It was written there as "D:/Doctor.txt" in the case of Doctors database file. Change that to what is configured to your machine.
-Run the 'phpro' which resides the main application.

Note* Ive separated the Methods of Patient, Doctors, Lab & Room to make it more readable. Everything thats all about reading records from these text files are separated.

Things to consider:

-The source code has no any basic evaluation algorithms. Ex: pwede ka mag enter ng wala naman sa mga choices at mag eeror yan for sure.

-Some given output like the Room Service and Doctor's Name are omitted since hindi ko maintindihan yung problem na nakasulat sa sheet na pinost mo.

-Supplies Fee is a bit vague to me kaya ang ginawa ko na lang sa formula, Room rate * 10% or Room rate * 25% . Ang hindi malinaw sakin dun is ano yung naka lagay na Total Room Usage Bill? saan galing yun? knowing na wala naman sa problem yung lists ng mga usable supplies. Maliban sa laboratories walang consumables na nakalagay sa problem sheet mo.

-Sa Output ng program lahat from the top pati paghingi ng mga details ng Patient hindi makli-clear pag nag output na yung billing. This for the purpose na ma trace mo kung tama yung output at computations sa billing. Pero for me, it will be more sophisticated kung Billing Details na lang sana ang final output since yun ang purpose.

-Yung Patient module jan, may text file sya na pagse-save-an nung inputed mong Patients. Kahit wala yun gagana parin yan. Nilagay ko lang yun kasi abang lang na dapat later pwedeng i-update yung code na pwedeng mag re-generate ng bill kahit dati pang mga patient. Kung irequire sayo yun, atleast may data file ka na for the Patient record.

-Since kakatuto ko lang as in mag Java, hindi best practice ang mga codes na ginamit ko. The purpose is magawa ko lang yung output. Feel free to improve kung gusto mo.

-I didn't use JOptionPane here so there is no input GUI.

-Some things that I might missed to point out here.

This is a complete running project excluding those things I listed from the Things to consider. It's a working basic.

Thank you kasi natutunan kong mag Java dahil sa project mo.

Have fun!

Sample Screenshot.
View attachment 693284
View attachment 693285

Hello po idol pwede ko po bang makuha ung sample code na yan po ?

Alright I was very busy last week kaya di na ako nakapag response pa.

For the purpose of helping and spoon-feeding you brother, I will give you the complete solution but only with the basic functionality of the project.

I find it very interesting this to do kasi una sa lahat, I never touched Java in my whole Dev Career. So, na intriga ako kasi C# Dev ako so naisip ko, ano kaya ang feeling ng magprogram sa labas na Visual Studio(2015). Walang Intellisense. walang code completion, refactoring, debug tracing at iba pang convenient features ni VS. so ginawa ko, nag scan lang ako ng Java Basics using Tutorialspoint particularly sa IO classes at file handling kasi yun ang primary needed sa project na ito. So after few hours of reading ang dami kong natutunan sa Java at nakita kong super powerful pala talaga ng Java, no wonder na maraming may gusto ang language na to. Halos magkamukang magkamuka sila ni C# my mga konting pagkakaiba lang sila ng mga rules and implementations at may mga areas na strict si Java at may mga areas naman na mas strict si C# pero they are pretty much the same language(less sa IDE kasi mas astig talaga si C# dahil sa VS).

So eto na nga, tambay mode kaya code muna sa Java at natapos ko ang project.

Things to do:

*Assuming you have a complete working Java environment. Mine is only using Notepad++ so you have to follow my tut. And assuming you are using Windows and knows how to execute using cmd.

-Download and Unzipped the zipped file PHCorner using this link

-Download all the .txt files attached.
-Copy all the attached files to one directory including the zipped file from the above link.
-Go to each file classes (Patient, Lab, Room & Doctor) and change the directory from where it will be mapped. It was written there as "D:/Doctor.txt" in the case of Doctors database file. Change that to what is configured to your machine.
-Run the 'phpro' which resides the main application.

Note* Ive separated the Methods of Patient, Doctors, Lab & Room to make it more readable. Everything thats all about reading records from these text files are separated.

Things to consider:

-The source code has no any basic evaluation algorithms. Ex: pwede ka mag enter ng wala naman sa mga choices at mag eeror yan for sure.

-Some given output like the Room Service and Doctor's Name are omitted since hindi ko maintindihan yung problem na nakasulat sa sheet na pinost mo.

-Supplies Fee is a bit vague to me kaya ang ginawa ko na lang sa formula, Room rate * 10% or Room rate * 25% . Ang hindi malinaw sakin dun is ano yung naka lagay na Total Room Usage Bill? saan galing yun? knowing na wala naman sa problem yung lists ng mga usable supplies. Maliban sa laboratories walang consumables na nakalagay sa problem sheet mo.

-Sa Output ng program lahat from the top pati paghingi ng mga details ng Patient hindi makli-clear pag nag output na yung billing. This for the purpose na ma trace mo kung tama yung output at computations sa billing. Pero for me, it will be more sophisticated kung Billing Details na lang sana ang final output since yun ang purpose.

-Yung Patient module jan, may text file sya na pagse-save-an nung inputed mong Patients. Kahit wala yun gagana parin yan. Nilagay ko lang yun kasi abang lang na dapat later pwedeng i-update yung code na pwedeng mag re-generate ng bill kahit dati pang mga patient. Kung irequire sayo yun, atleast may data file ka na for the Patient record.

-Since kakatuto ko lang as in mag Java, hindi best practice ang mga codes na ginamit ko. The purpose is magawa ko lang yung output. Feel free to improve kung gusto mo.

-I didn't use JOptionPane here so there is no input GUI.

-Some things that I might missed to point out here.

This is a complete running project excluding those things I listed from the Things to consider. It's a working basic.

Thank you kasi natutunan kong mag Java dahil sa project mo.

Have fun!

Sample Screenshot.
View attachment 693284
View attachment 693285

Hello po sir, pwede po bang makuha ung sample code nio po about jan ginawa nio po if okay lang po.
 
Last edited:
Back
Top