fork download
  1. domains
  2. penyakit = string
  3. gejala = symbol
  4. query = string
  5. jawab = char
  6.  
  7. database
  8. dbmengalami(gejala)
  9. dbtdkmengalami(gejala)
  10.  
  11. predicates
  12. penyebab(penyakit)
  13. go
  14. mengalami(query,gejala)
  15. tdkmengalami(query,gejala)
  16. gejala(gejala)
  17. clear_fakta2
  18. simpan(gejala,jawab)
  19. tanya(query,gejala,jawab)
  20. go_once
  21. diagnosa(penyakit)
  22. solusi(penyakit)
  23.  
  24. goal
  25. clearwindow,
  26. go.
  27. go_once:-
  28. diagnosa(_),!,
  29. save("test.dat"),
  30. clear_fakta2.
  31. go_once:-
  32. write("Penyakit tidak diketahui..!"),nl,
  33. clear_fakta2.
  34. mengalami(_,Gejala):-
  35. dbmengalami(Gejala),!.
  36. mengalami(Query,Gejala):-
  37. not(dbtdkmengalami(Gejala)),
  38. tanya(Query,Gejala,Jawab),
  39. Jawab='y'.
  40. tdkmengalami(_,Gejala):-
  41. dbtdkmengalami(Gejala),!.
  42. tdkmengalami(Query,Gejala):-
  43. not(dbmengalami(Gejala)),
  44. tanya(Query,Gejala,Jawab),
  45. Jawab='t'.
  46. tanya(Query,Gejala,Jawab):-
  47. write(Query),
  48. readchar(Jawab),
  49. write(Jawab),nl,
  50. simpan(Gejala,Jawab).
  51. simpan(Gejala,'y'):-
  52. asserta(dbmengalami(Gejala)).
  53. simpan(Gejala,'t'):-
  54. asserta(dbtdkmengalami(Gejala)).
  55. clear_fakta2:-
  56. retract(dbmengalami(_)),fail.
  57. clear_fakta2:-
  58. retract(dbtdkmengalami(_)),fail.
  59. clear_fakta2.
  60.  
  61. /*-Gejala Penyakit yang terjadi --*/
  62. gejala(Gejala):-
  63. dbmengalami(Gejala),!.
  64. gejala(Gejala):-
  65. dbtdkmengalami(Gejala),!,fail.
  66. gejala(demam):-
  67. mengalami("Apakah demam (y/t)?",demam).
  68. gejala(panas):-
  69. mengalami("Apakah panas tubuh tinggi?",panas).
  70. gejala(rasa_dingin):-
  71. mengalami("merasa kedinginan?",rasa_dingin).
  72. gejala(lemas_lemah):-
  73. mengalami("TUbuh terasa lemah? ",lemas_lemah).
  74. gejala(sakit_tenggorokan):-
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. mengalami("Tenggorokan sakit bila menelan?",sakit_tenggorokan).
  82. gejala(bintik):-
  83. mengalami("Terlihat adanya bintik-bintik pada kulit?",bintik).
  84. gejala(mual):-
  85. mengalami("Merasa mual-mual?",mual).
  86. gejala(ngilu):-
  87. mengalami("Merasakan Ngilu",ngilu).
  88. gejala(sendi_bengkak):-
  89. mengalami("Apakah sendi bengkak?",sendi_bengkak).
  90. gejala(stamina_turun):-
  91. mengalami("Apakah stamina turun?",stamina_turun).
  92. gejala(sendi_nyeri):-
  93. mengalami("Merasakan nyeri pada setiap persendian?",sendi_nyeri).
  94. gejala(muntah):-
  95. mengalami("Apakah anda ingin muntah?",muntah).
  96.  
  97.  
  98. diagnosa("Kena Santet"):-
  99. gejala(demam),
  100. gejala(rasa_dingin),
  101. gejala(sakit_tenggorokan),
  102. gejala(lemas_lemah),
  103. gejala(bintik),
  104. gejala(santet).
  105. diagnosa("Lemah segalanya...."):-
  106. gejala(demam),
  107. gejala(ngilu),
  108. gejala(sendi_bengkak),
  109. gejala(stamina_turun),
  110. gejala(sendi_nyeri),
  111. gejala(mual),
  112. gejala(muntah),
  113. gejala(panas),
  114. gejala(rasa_dingin),
  115. gejala(lemas_lemah),
  116. penyebab("Lemah segalanya....").
  117.  
  118. penyebab("Lemah segalanya...."):-
  119. solusi("Lemah segalanya....").
  120. penyebab("Kena Santet"):-
  121. solusi("KenaSantet").
  122. solusi(Penyakit):-
  123. upper_lower(BPenyakit,Penyakit),nl,nl,nl,write("Penyakit anda adalah ",BPenyakit),nl.
  124.  
  125. import pandas as pd
  126.  
  127. # Define the data for the Gantt chart
  128. data = {
  129. "Phase": [
  130. "Project Initiation", "Project Initiation", "Project Initiation",
  131. "Infrastructure Setup", "Infrastructure Setup", "Infrastructure Setup",
  132. "Dashboard Development", "Dashboard Development", "Dashboard Development",
  133. "Testing & QA", "Testing & QA",
  134. "Deployment & Training", "Deployment & Training", "Deployment & Training"
  135. ],
  136. "Task": [
  137. "Define project goals and deliverables",
  138. "Identify stakeholders and resources",
  139. "Conduct feasibility assessment",
  140. "Purchase database mirror",
  141. "Configure database mirror",
  142. "Test integration with tenant data",
  143. "Define dashboard requirements",
  144. "Develop initial prototypes",
  145. "Validate functionality",
  146. "Conduct data validation",
  147. "Perform user acceptance testing",
  148. "Deploy dashboards",
  149. "Conduct staff training",
  150. "Finalize project documentation"
  151. ],
  152. "Start Date": [
  153. "2024-01-01", "2024-01-15", "2024-01-29",
  154. "2024-02-12", "2024-03-11", "2024-03-25",
  155. "2024-04-15", "2024-05-13", "2024-06-24",
  156. "2024-07-15", "2024-08-05",
  157. "2024-09-02", "2024-09-16", "2024-10-07"
  158. ],
  159. "End Date": [
  160. "2024-01-14", "2024-01-28", "2024-02-11",
  161. "2024-03-10", "2024-03-24", "2024-04-14",
  162. "2024-05-12", "2024-06-23", "2024-07-14",
  163. "2024-08-04", "2024-09-01",
  164. "2024-09-15", "2024-10-06", "2024-10-20"
  165. ],
  166. "Duration (Weeks)": [
  167. 2, 2, 3,
  168. 4, 2, 3,
  169. 4, 6, 3,
  170. 3, 4,
  171. 2, 3, 2
  172. ],
  173. "Dependencies": [
  174. "None", "None", "None",
  175. "Feasibility", "Purchase", "Configuration",
  176. "Feasibility", "Requirements", "Prototypes",
  177. "Functionality", "Validation",
  178. "UAT", "Deployment", "Deployment"
  179. ],
  180. "Critical Path": [
  181. "Yes", "Yes", "Yes",
  182. "Yes", "Yes", "Yes",
  183. "No", "Yes", "Yes",
  184. "Yes", "Yes",
  185. "Yes", "No", "No"
  186. ]
  187. }
  188.  
  189. # Create a DataFrame
  190. df = pd.DataFrame(data)
  191.  
  192. # Save the DataFrame to an Excel file
  193. file_name = "Indie_School_Project_Gantt_Chart.xlsx"
  194. df.to_excel(file_name, index=False)
  195.  
  196. print(f"File saved as {file_name}")
  197.  
Success #stdin #stdout #stderr 0.02s 6956KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/SAKkov/prog:1:8: Syntax error: Operator expected
ERROR: /home/SAKkov/prog:196:35: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit