domains
penyakit = string
gejala = symbol
query = string
jawab = char
database
dbmengalami(gejala)
dbtdkmengalami(gejala)
predicates
penyebab(penyakit)
go
mengalami(query,gejala)
tdkmengalami(query,gejala)
gejala(gejala)
clear_fakta2
simpan(gejala,jawab)
tanya(query,gejala,jawab)
go_once
diagnosa(penyakit)
solusi(penyakit)
goal
clearwindow,
go.
go_once:-
diagnosa(_),!,
save("test.dat"),
clear_fakta2.
go_once:-
write("Penyakit tidak diketahui
..!"
),nl, clear_fakta2.
mengalami(_,Gejala):-
dbmengalami(Gejala),!.
mengalami(Query,Gejala):-
not(dbtdkmengalami(Gejala)),
tanya(Query,Gejala,Jawab),
Jawab='y'.
tdkmengalami(_,Gejala):-
dbtdkmengalami(Gejala),!.
tdkmengalami(Query,Gejala):-
not(dbmengalami(Gejala)),
tanya(Query,Gejala,Jawab),
Jawab='t'.
tanya(Query,Gejala,Jawab):-
readchar(Jawab),
simpan(Gejala,Jawab).
simpan(Gejala,'y'):-
simpan(Gejala,'t'):-
clear_fakta2:-
clear_fakta2:-
clear_fakta2.
/*-Gejala Penyakit yang terjadi --*/
gejala(Gejala):-
dbmengalami(Gejala),!.
gejala(Gejala):-
dbtdkmengalami
(Gejala
),!,fail. gejala(demam):-
mengalami("Apakah demam (y/t)?",demam).
gejala(panas):-
mengalami("Apakah panas tubuh tinggi?",panas).
gejala(rasa_dingin):-
mengalami("merasa kedinginan?",rasa_dingin).
gejala(lemas_lemah):-
mengalami("TUbuh terasa lemah? ",lemas_lemah).
gejala(sakit_tenggorokan):-
mengalami("Tenggorokan sakit bila menelan?",sakit_tenggorokan).
gejala(bintik):-
mengalami("Terlihat adanya bintik-bintik pada kulit?",bintik).
gejala(mual):-
mengalami("Merasa mual-mual?",mual).
gejala(ngilu):-
mengalami("Merasakan Ngilu",ngilu).
gejala(sendi_bengkak):-
mengalami("Apakah sendi bengkak?",sendi_bengkak).
gejala(stamina_turun):-
mengalami("Apakah stamina turun?",stamina_turun).
gejala(sendi_nyeri):-
mengalami("Merasakan nyeri pada setiap persendian?",sendi_nyeri).
gejala(muntah):-
mengalami("Apakah anda ingin muntah?",muntah).
diagnosa("Kena Santet"):-
gejala(demam),
gejala(rasa_dingin),
gejala(sakit_tenggorokan),
gejala(lemas_lemah),
gejala(bintik),
gejala(santet).
diagnosa("Lemah segalanya...."):-
gejala(demam),
gejala(ngilu),
gejala(sendi_bengkak),
gejala(stamina_turun),
gejala(sendi_nyeri),
gejala(mual),
gejala(muntah),
gejala(panas),
gejala(rasa_dingin),
gejala(lemas_lemah),
penyebab("Lemah segalanya....").
penyebab("Lemah segalanya...."):-
solusi("Lemah segalanya....").
penyebab("Kena Santet"):-
solusi("KenaSantet").
solusi(Penyakit):-
upper_lower
(BPenyakit
,Penyakit
),nl,nl,nl,write("Penyakit anda adalah "
,BPenyakit
),nl.
import pandas as pd
# Define the data for the Gantt chart
data = {
"Phase": [
"Project Initiation", "Project Initiation", "Project Initiation",
"Infrastructure Setup", "Infrastructure Setup", "Infrastructure Setup",
"Dashboard Development", "Dashboard Development", "Dashboard Development",
"Testing & QA", "Testing & QA",
"Deployment & Training", "Deployment & Training", "Deployment & Training"
],
"Task": [
"Define project goals and deliverables",
"Identify stakeholders and resources",
"Conduct feasibility assessment",
"Purchase database mirror",
"Configure database mirror",
"Test integration with tenant data",
"Define dashboard requirements",
"Develop initial prototypes",
"Validate functionality",
"Conduct data validation",
"Perform user acceptance testing",
"Deploy dashboards",
"Conduct staff training",
"Finalize project documentation"
],
"Start Date": [
"2024-01-01", "2024-01-15", "2024-01-29",
"2024-02-12", "2024-03-11", "2024-03-25",
"2024-04-15", "2024-05-13", "2024-06-24",
"2024-07-15", "2024-08-05",
"2024-09-02", "2024-09-16", "2024-10-07"
],
"End Date": [
"2024-01-14", "2024-01-28", "2024-02-11",
"2024-03-10", "2024-03-24", "2024-04-14",
"2024-05-12", "2024-06-23", "2024-07-14",
"2024-08-04", "2024-09-01",
"2024-09-15", "2024-10-06", "2024-10-20"
],
"Duration (Weeks)": [
2, 2, 3,
4, 2, 3,
4, 6, 3,
3, 4,
2, 3, 2
],
"Dependencies": [
"None", "None", "None",
"Feasibility", "Purchase", "Configuration",
"Feasibility", "Requirements", "Prototypes",
"Functionality", "Validation",
"UAT", "Deployment", "Deployment"
],
"Critical Path": [
"Yes", "Yes", "Yes",
"Yes", "Yes", "Yes",
"No", "Yes", "Yes",
"Yes", "Yes",
"Yes", "No", "No"
]
}
# Create a DataFrame
df = pd.DataFrame(data)
# Save the DataFrame to an Excel file
file_name = "Indie_School_Project_Gantt_Chart.xlsx"
df.to_excel(file_name, index=False)
print(f"File saved as {file_name}")
ZG9tYWlucwpwZW55YWtpdCA9IHN0cmluZwpnZWphbGEgPSBzeW1ib2wKcXVlcnkgPSBzdHJpbmcKamF3YWIgPSBjaGFyCgkKZGF0YWJhc2UKZGJtZW5nYWxhbWkoZ2VqYWxhKQpkYnRka21lbmdhbGFtaShnZWphbGEpCgkKcHJlZGljYXRlcwpwZW55ZWJhYihwZW55YWtpdCkKZ28KbWVuZ2FsYW1pKHF1ZXJ5LGdlamFsYSkKdGRrbWVuZ2FsYW1pKHF1ZXJ5LGdlamFsYSkKZ2VqYWxhKGdlamFsYSkKY2xlYXJfZmFrdGEyCnNpbXBhbihnZWphbGEsamF3YWIpCnRhbnlhKHF1ZXJ5LGdlamFsYSxqYXdhYikKZ29fb25jZQpkaWFnbm9zYShwZW55YWtpdCkKc29sdXNpKHBlbnlha2l0KQoJCmdvYWwKCWNsZWFyd2luZG93LAoJZ28uCmdvX29uY2U6LQoJZGlhZ25vc2EoXyksISwKc2F2ZSgidGVzdC5kYXQiKSwKCWNsZWFyX2Zha3RhMi4KZ29fb25jZTotCndyaXRlKCJQZW55YWtpdCB0aWRhayBkaWtldGFodWkuLiEiKSxubCwKY2xlYXJfZmFrdGEyLgptZW5nYWxhbWkoXyxHZWphbGEpOi0KCWRibWVuZ2FsYW1pKEdlamFsYSksIS4KbWVuZ2FsYW1pKFF1ZXJ5LEdlamFsYSk6L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AgICAgICAiMjAyNC0wMi0xMiIsICIyMDI0LTAzLTExIiwgIjIwMjQtMDMtMjUiLAogICAgICAgICIyMDI0LTA0LTE1IiwgIjIwMjQtMDUtMTMiLCAiMjAyNC0wNi0yNCIsCiAgICAgICAgIjIwMjQtMDctMTUiLCAiMjAyNC0wOC0wNSIsCiAgICAgICAgIjIwMjQtMDktMDIiLCAiMjAyNC0wOS0xNiIsICIyMDI0LTEwLTA3IgogICAgXSwKICAgICJFbmQgRGF0ZSI6IFsKICAgICAgICAiMjAyNC0wMS0xNCIsICIyMDI0LTAxLTI4IiwgIjIwMjQtMDItMTEiLAogICAgICAgICIyMDI0LTAzLTEwIiwgIjIwMjQtMDMtMjQiLCAiMjAyNC0wNC0xNCIsCiAgICAgICAgIjIwMjQtMDUtMTIiLCAiMjAyNC0wNi0yMyIsICIyMDI0LTA3LTE0IiwKICAgICAgICAiMjAyNC0wOC0wNCIsICIyMDI0LTA5LTAxIiwKICAgICAgICAiMjAyNC0wOS0xNSIsICIyMDI0LTEwLTA2IiwgIjIwMjQtMTAtMjAiCiAgICBdLAogICAgIkR1cmF0aW9uIChXZWVrcykiOiBbCiAgICAgICAgMiwgMiwgMywKICAgICAgICA0LCAyLCAzLAogICAgICAgIDQsIDYsIDMsCiAgICAgICAgMywgNCwKICAgICAgICAyLCAzLCAyCiAgICBdLAogICAgIkRlcGVuZGVuY2llcyI6IFsKICAgICAgICAiTm9uZSIsICJOb25lIiwgIk5vbmUiLAogICAgICAgICJGZWFzaWJpbGl0eSIsICJQdXJjaGFzZSIsICJDb25maWd1cmF0aW9uIiwKICAgICAgICAiRmVhc2liaWxpdHkiLCAiUmVxdWlyZW1lbnRzIiwgIlByb3RvdHlwZXMiLAogICAgICAgICJGdW5jdGlvbmFsaXR5IiwgIlZhbGlkYXRpb24iLAogICAgICAgICJVQVQiLCAiRGVwbG95bWVudCIsICJEZXBsb3ltZW50IgogICAgXSwKICAgICJDcml0aWNhbCBQYXRoIjogWwogICAgICAgICJZZXMiLCAiWWVzIiwgIlllcyIsCiAgICAgICAgIlllcyIsICJZZXMiLCAiWWVzIiwKICAgICAgICAiTm8iLCAiWWVzIiwgIlllcyIsCiAgICAgICAgIlllcyIsICJZZXMiLAogICAgICAgICJZZXMiLCAiTm8iLCAiTm8iCiAgICBdCn0KCiMgQ3JlYXRlIGEgRGF0YUZyYW1lCmRmID0gcGQuRGF0YUZyYW1lKGRhdGEpCgojIFNhdmUgdGhlIERhdGFGcmFtZSB0byBhbiBFeGNlbCBmaWxlCmZpbGVfbmFtZSA9ICJJbmRpZV9TY2hvb2xfUHJvamVjdF9HYW50dF9DaGFydC54bHN4IgpkZi50b19leGNlbChmaWxlX25hbWUsIGluZGV4PUZhbHNlKQoKcHJpbnQoZiJGaWxlIHNhdmVkIGFzIHtmaWxlX25hbWV9IikK