What's new

Help IT expert need your help to solve this problem

This is I think some kind of a major project or an end of semester final output. It's a bit tough for a student kasi maraming modules/sections pero hindi sya mahirap na dahil logical at nagrerequire ng analysis. Madali na matrabaho kung baga.
These are the thing you need to do:

Modules / Master files with database or a text file to store the data:

Patient Profile -
Pretty no brainer. It's just a patient's information.
Rooms fee/type - Room module and database/text files that stores the types of room with descriptions and rate.
Doctors / Doctors type - Doctors / type of doctors with their fee depending the type of a doctor.
Lab fee/type - Various Laboratory tests with the rates.
Philhealth deduction percentages - Philhealth deduction percentages. This can be constant too para tipid sa pag gawa ng module at storing ng data sa db or text file.

Constants / Fix Fees (optional na gawing hindi constant):

Operation fee
-40000
Birth Delivery -25000
Emergency Room -500
Supplies fee 10% - w/o Any operations
Supplies fee 25% - w/ Operations


Tools needed? you will be needing a file manipulation functions such as read, write a text file if you're going to use text file as data storage. Otherwise, use database. Pag bawal ang database at di mo kaya, no choice ka kundi text file ang storage mo.


Ayan. Guidelines mo na yan. Happy Coding!
Thanks paps
 
Mga Master kailangan
ko Po tulong nyo on
how to solve this problem
Using Scanner or JOptionPane

View attachment 689455
And I'll give little
Prize who can
Solved this problem


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
You do not have permission to view the full content of this post. Log in or register now.
-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.
ss1.png

ss2.png
 

Attachments

Last edited:
sana lahat marunong magjava hahahaha san ba pwede mag aral online while working ? parang ang sarap magencrypt ng code

Madali lang matuto lalo na kung galing ka ng C-Like or C related languages like C#, C, C++. Need mo lang matutunan yung syntax and viola! marunong ka ng mag Java. :p:ROFLMAO: Sa Dev kasi ang pinaka mahirap talaga is sa Database manipulation. Pag gumawa ka na ng stored procedures mo for report generations, anak ng tokwa! kukunot talaga ulo mo sa piga ng utak mo.
 
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
You do not have permission to view the full content of this post. Log in or register now.
-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
Wow sayang natagalan
Wla toloy akng naipasa

Thanks You parin paps
Kahit papaano
Ikaw lng tagala Ang gustong
Tumulong sa akin at umunawa
Sa akin

Maraming nag comment
Pero wla Hindi naka unawa
Sa akin.
 
Wow sayang natagalan
Wla toloy akng naipasa

Thanks You parin paps
Kahit papaano
Ikaw lng tagala Ang gustong
Tumulong sa akin at umunawa
Sa akin

Maraming nag comment
Pero wla Hindi naka unawa
Sa akin.


Yun lang. Dapat kasi maaga pa nagtanong ka na dito. baka naman kasi mag deadline na nung nag post ka. maagap ka dapat sa mga project sa school lalo na kamo beginner ka pa lang sa programming. Dont expect na madali ang programming, in fact, sisiw lang yang project mo na yan. May mas mahirap pa jan at mas mahirap sa totoong buhay na pagiging Dev.
 
Yun lang. Dapat kasi maaga pa nagtanong ka na dito. baka naman kasi mag deadline na nung nag post ka. maagap ka dapat sa mga project sa school lalo na kamo beginner ka pa lang sa programming. Dont expect na madali ang programming, in fact, sisiw lang yang project mo na yan. May mas mahirap pa jan at mas mahirap sa totoong buhay na pagiging Dev.
Ok slamat sayo paps
 
Yun lang. Dapat kasi maaga pa nagtanong ka na dito. baka naman kasi mag deadline na nung nag post ka. maagap ka dapat sa mga project sa school lalo na kamo beginner ka pa lang sa programming. Dont expect na madali ang programming, in fact, sisiw lang yang project mo na yan. May mas mahirap pa jan at mas mahirap sa totoong buhay na pagiging Dev.
tompak ka diyan. Basic na basic palang yan. wala pa diyan ung mga malalalim na logic
 
Yun lang. Dapat kasi maaga pa nagtanong ka na dito. baka naman kasi mag deadline na nung nag post ka. maagap ka dapat sa mga project sa school lalo na kamo beginner ka pa lang sa programming. Dont expect na madali ang programming, in fact, sisiw lang yang project mo na yan. May mas mahirap pa jan at mas mahirap sa totoong buhay na pagiging Dev.
Pwede ba akng magpaturo sa paps anytime?
 
Back
Top