WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

On the developpement of an expert system for student's evaluation: case of a network course

( Télécharger le fichier original )
par Jacques ILUNGA MANDALA
Université de Kinshasa - Licence 2015
  

précédent sommaire suivant

Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy

III.2. Presentation of rules and facts

Global variables definition: name, pwd, cote,

Rule display logo:

If initial fact is present in the fact list

Then

Clear the window, display the home screen:

"*==========================================================*"

"* *"

"* UNIVERSITY OF KINSHASA *"

"* *"

"* FACULTY OF ART AND HUMAN SCIENCES *"

"* DEPARTEMENT OF BUSINESS ENGLISH AND COMPUTER *"

"* *"

"* *"

"* *"

"* *"

"* ================================================ *"

"* = = *"

"* = NETWORK COURSE EVALUATION EXPERT SYSTEM = *"

"* = = *"

"* ================================================ *"

"* *"

"* *"

"* *"

"* *"

"* *"

"* *"

"* DONE BY: *"

"* *"

"* ILUNGA MANDALA Jacques *"

"* *"

"* *"

"* MONITORED BY: *"

"* *"

"* - prof KUTANGILA MAYOYA Sanctus *"

"* *"

"* -prof MALEKANI ATHNASE *"

"============================================================"

Introduce the fact (home) in the facts list

Rule display home:

If the fact (home) is in the fact list

Then

Remove the fact (home)

Reset

Clear the window

Display:

"*======================================================*"

"* *"

"* WELCOME TO NETWORK EXAM *"

"* *"

"*======================================================*"

"INPUT YOUR FULL NAME:"

Read and store the name in the variable name

While name is not equal to one of these names:

"ILUNGA MANDALA" "NANA MUNDA"

"IHEMBA KATOMBA" "KANKU RUBEN"

"NGUABA JOSEPH"

Clear the window-window

Display this message:

"SORRY, YOU HAVE INPUTED INVALID USER NAME...TRY AGAIN PLEASE, AND BE SURE THAT IT IS IN CAPITAL LETTER!"

"INPUT A VALID NAME:"

Read and store the password in the variable name

Introduce the fact (password in the facts list)

Rule display password:

If the fact (password) is in the fact list

Then

Clear the window

Display:

"======================================================"

"= ="

"= WELCOME "name"! ="

"= ="

"======================================================"

"INPUT YOUR PASSWORD PLEASE:

Read and store the password in the variable pwd

While name equals "ILUNGA MANDALA" and the password different "NANA" clear-window

Do

Display this message:

"SORRY, YOUR PASSWORD IS INCORRECT! TRY AGAIN, AND BE SURE THAT IT IS IN CAPITAL LETTER."

"INPUT A VALID PASSWORD PLEASE:"

Read and store the password in the variable pwd

While name equals "IHEMBA KATOMBA" and the password different from "MUNDA",

Clear-window

Do

Display this message:

"SORRY, YOUR PASSWORD IS INCORRECT! TRY AGAIN, AND BE SURE THAT IT IS IN CAPITAL LETTER."

"INPUT A VALID PASSWORD PLEASE:"

Read and store the password in the variable pwd

While name equals "KANKU RUBEN" and the password different from "MBUYI", clear-window

Do

Display this message:

"SORRY, YOUR PASSWORD IS INCORRECT! TRY AGAIN, AND BE SURE THAT IT IS IN CAPITAL LETTER."

"INPUT A VALID PASSWORD PLEASE:"

While name is "NGUABA JOSEPH" and password different from "PRISCA",

Clear-window

Do

Display this message:

"SORRY, YOUR PASSWORD IS INCORRECT! TRY AGAIN, AND BE SURE THAT IT IS IN CAPITAL LETTER."

"INPUT A VALID PASSWORD PLEASE: ")

Read and store the password in the variable pwd

If name equals "ILUNGA MANDALA" and password equals "NANA"

Then

Introduce the fact (order)

If name equals "IHEMBA KATOMBA" or "ihemba katomba" and password equals "MUNDA"

Then

Introduce the fact (order)

If name equals "KANKU RUBEN" and password equals "MBUYI"

Then introduce the fact (order)

If name equals "NGUABA JOSEPH" and password equals "PRISCA"

Then

Introduce the fact (order).

Rule display order

If the fact (order) is in the fact list

Then

Clear the window

Display:

***********************************************************

* *

* GOOD LUCK "name"! *

* *

***********************************************************

"PRESS ENTER TO START YOUR EXAM"

Introduce the fact (questiona)

Rule display questiona:

If the fact (questiona) is in the fact list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 1. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"The concept of network means?"

"a. A distributed group of people or things that communicate with one another and work together as a unit or system"

"b. A tool or machine designed to perform a particular task or function"

"c. An electronic device enabling the user to speak to and hear others with similar equipment"

"d. A system of communications using telephones"

"e. A communication carried out using the telephone"

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "a" or "A"

Then

Add 2 marks in the variable grade

If the answer is different from "a" or "A"

Then

Add 0 mark in the variable grade

Introduce the fact (resulta)

Rule display resulta:

If the fact (resulta) is in the fact list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " "cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questionb)

Rule display questionb

If the fact (questionb) is in the fact list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 2. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"Wide Area Network (WAN) is:"

"a. A private network whose size does not exceed 1 kilometer."

"b. A public network whose size does not exceed 1 kilometer."

"c. A network at short distance which can not cover a significant geographical area"

"d. A network at long distance which covers a significant geographical area"

"e. All these answers are corrects"

THE CORRECT ANSWER IS THE LETTER:

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE: "

Read and store the answer in the variable answer

If the answer is "d" or "D"

Then

Add 2 marks to the variable grade

If the answer is different from "d" or "D"

Then add 0 mark to the variable grade

Introduce the fact (resultb)

Rule display result:

If the fact (resultb) is in the list fact

Then

Clear-window

Display

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questionc)

Rule display questionc

If the fact (questionc) is in the list fact

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 3. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"The difference between peer to peer and customer-server network is:"

"a. Customer-server network is smallest than peer to peer network."

"b. Peer to peer uses 12 computers at least while customer-server uses at most ten computers"

"c. The correct answer is the assertion a"

"d. all these answers are corrects"

"e. All these answers are incorrect"

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

While the "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "e" or "E"

Then

Add 2 marks to the variable grade

If the answer is different from "e" or "E"

Then

Add 0 to the variable grade

Introduce the fact (resultc)

Rule display resultc:

If the fact (resultc) is in the list fact

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " "cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questiond)

Rule display questiond:

If the fact (questiond) is in the list fact

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 4. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"Physical topology of network refers to:"

"-----------------------------"

"a. The wireless network."

"b. Computers which are not connected"

"c. The way in which equipments (computers) are connected between them."

"d. all these answers are corrects"

"e. The way of communication between computers"

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

If the answer is "c" or "C"

Then

Add 2 marks to the variable grade

If the answer is different from "C"

Then

Add 0 marks to the variable grade

Introduce the fact(resultd)

Rule display resultd:

If the fact (resultd) is in the list fact

Then

Clear-window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " "cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questione)

Rule display questione:

If the fact (questione) is in the facts list

Then

Clear the window

Display

"***********************************************************"

"* *"

"* QUESTION NUMBER 5. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"The topology of network characterized by a central point on which all the members of the network are connected is:"

"a. Ring topology."

"b. Wireless topology"

"c. Bluetooth topology"

"d. Bus topology"

"e. Star toplogy"

"THE CORRECT ANSWER IS THE LETTER: "

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "e" or "E"

Then

Add 2 marks in the variable grade

If the answer is different from "e" or "E"

Then

Add 0 to the variable grade

Introduce the fact (resulte)

Rule display resulte:

If the fact (resulte) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " "cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questionf)

Rule display question:

If the fact (questionf) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 6. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"The topology of network characterized by a central cable on which all the members of the network are connected is:"

"-----------------------------"

"a. Ring topology."

"b. Wireless topology."

"c. Bluetooth topology."

"d. Bus topology."

"e. Star topology."

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "d" or "D"

Then

Add 2 marks to the variable grade

If the answer is different from "d" or "D"

Then add 0 to the variable grade

Introduce the fact (resultf)

Rule display resultf:

If the fact (resultf) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " "cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questiong)

Rule display questiong:

If the fact (questiong) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 7. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"Wireless network is:"

"-----------------------------"

"a. A network in which terminals can communicate without telegraphic connection."

"b. A network in which at least two computers are connected."

"c. A network which is able to share date with others"

"d. All answers are corrects."

"e. All answers are incorrect."

"THE CORRECT ANSWER IS THE LETTER: "

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "a" or "A"

Then add 2 marks to the variable grade

If the answer is different from "a" or "A"

Then

Add 0 mark to the variable grade

Introduce the fact (resultg)

Rule display resultg:

If the fact (resultg) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questionh)

Rule display question:

If the fact (questionh)is in the factys list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 8. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"The principal technology used for the wireless personal network is :"

"-----------------------------"

"a. Wifi."

"b. Bluetooth."

"c. MODEM"

"d. RJ-45."

"e. All answers are incorrects."

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE: "

Read and store the answer in the variable answer

If the answer is "b" or "B"

Then

Add 2 marks to the variable grade

If the answer is different from "b" or "B"

Then

Add 0 to the variable grade

Introduce the fact (resulth)

Rule display resulth:

If the fact (resulth) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" cote " ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE:"

Introduce the fact (questioni)

Rule display questioni:

If the fact (questioni) is in the facts list

Then

Clear the window

Display this message:

"***********************************************************"

"* *"

"* QUESTION NUMBER 9. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"GPRS is the meaning of:"

"-----------------------------"

"a. General Packet Radio operator Service"

"b. General Packet Radio Service."

"c. Generalization of Packege Radio Service"

"d. All answers are corrects"

"e. The correct enswer is the assertion is b."

"THE CORRECT ANSWER IS THE LETTER: "

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE: "

If the answer is "a" or "A"

Then

Add 2 marks to the variable grade

If the answer is differnt from "a" or "A"

Then add 0 mark to the variable grade

Introduce the fact (resulti)

Rule display resulti:

If the fact (resulti) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* YOUR CURRENT GRADE IS:" " " cote" ""/20"" *"

"* *"

"***********************************************************"

"PRESS ENTER TO CONTINUE: "

introduce the fact (questionj))

Rule display question:

If the fact (questionj) is in the facts list

Then

Clear the window

Display:

"***********************************************************"

"* *"

"* QUESTION NUMBER 10. *"

"* *"

"***********************************************************"

"CHOOSE THE LETTER CORRESPONDING TO THE CORRECT ANSWER."

"IEEE 802.15.1 is the equivalence to:"

"-----------------------------"

"a. WiFi"

"b. ZigBee technology»

"c. HRF (Home Radio operator Frequency)"

"d. Bluetooth"

"e. The correct answer is the assertion is c"

"THE CORRECT ANSWER IS THE LETTER:"

Read and store the answer in the variable answer

while the answer is different from "A" "a" "B" "b" "C" "c" "D" "d" "E" "e"

Do

Display this message:

"YOU HAVE TYPED AN INVALID VALUE, PLEASE INPUT A VALID VALUE: "

If the answer is "d" or "D"

Then

Add 2 marks to the variable grade

If the answer is different from "d" or "D"

Then

Add 0 mark to the variable grade

Introduce the fact (resultj)

Rule display resultj:

If the fact (resultj) is in the facts list

Then

Clear the window

Display:

"============================================================"

"= ="

"= RESULT:"" "name" ""got"" "cote"/20"" ="

"= ="

"============================================================"

"PRESS: (s) TO SAVE YOUR RESULT"

"PRESS: (r) TO RESTART THE EXAM "

"PRESS: (e) TO EXIT "

Read and store the answer in the variable answer

While the answer is different from "s" "r" "e" "S" "R" "E"

Do

Display this message:

"INPUT A VALID VALUE:"

Read and store the answer in the variable answer

If the answer is "s" or "S"

Then

Introduce the fact (next)

If the answer is "r" or "R"

Then introduce the fact (home)

If the answer is "e" or "E"

Then

Exit

Rule display next:

If the fact (next) is in the facts list

Then

Clear the window

Display:

"YOUR RESULT WAS SUCCESSFULLY SAVED"

"PRESS ENTER TO EXIT:"

Introduce the fact (finish)

Rule display finish:

If the fact (finish) is in the facts list

Then

Exit.

précédent sommaire suivant






Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy








"L'ignorant affirme, le savant doute, le sage réfléchit"   Aristote