Question: Q2:- Write a prolog program about classifying the flags of countries, for example, if the flag is green and it contains a text that is
on. Q2: Write a prolog program about classifying the flags of countries, for example, if the flag is green and it contains a text that is the flag of the Kingdom of Saudi Arabia, and so The reliance on the classification of flags on the colored spaces in the flag, so we notice that the flag of Kuwait has 4 colored spaces, the flag of Oman has 3 colors and the flag of Bahrain and Qatar has 2 colored spaces and the flag of Saudi Arabia has 1 colored space and we do not consider writing as a colored area. Flag Country color Kingdom of Saudi Arabia 1 Emirates 4 Kuwait 4 Oman 3 Computer Engineering Department, Eng. Abdelmoty M. Ahmed Page - 2 321CPE-Intelligent Systems-Lab Manual-Projects KKU-CSC-CE Bahrain 2 Qatar 2 on. Q2: Write a prolog program about classifying the flags of countries, for example, if the flag is green and it contains a text that is the flag of the Kingdom of Saudi Arabia, and so The reliance on the classification of flags on the colored spaces in the flag, so we notice that the flag of Kuwait has 4 colored spaces, the flag of Oman has 3 colors and the flag of Bahrain and Qatar has 2 colored spaces and the flag of Saudi Arabia has 1 colored space and we do not consider writing as a colored area. Flag Country color Kingdom of Saudi Arabia 1 Emirates 4 Kuwait 4 Oman 3 Computer Engineering Department, Eng. Abdelmoty M. Ahmed Page - 2 321CPE-Intelligent Systems-Lab Manual-Projects KKU-CSC-CE Bahrain 2 Qatar 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
