PROLOG
I will downvote if you copy another answers post!
I will upvote if you don't!
6-The following table shows the confirmed MERS cases and deaths, by country of reporting, April 2012 to 24 August 2018 Region Middle East Europe Africa Asia Americas Country Kingdom of Saudi Arabia United Arab Emirates Qatar Jordan Oman Kuwait Egypt Yemen Lebanon Bahrain Iran Turkey UK Germany France Italy Greece Netherlands Austria Tunisia Algeria Malaysia Philippines South Korea China Thailand United States of America Global Number of cases 1863 92 19 35 11 4 1 1 2 1 6 1 5 3 2 1 1 2 2 3 2 2 3 185 1 3 2 2253 Number of deaths 750 13 5 14 3 2 0 1 0 0 2 1 3 2 1 0 1 0 1 1 1 1 0 38 0 0 0 840
Using above information, Write a prolog program to answer the following queries. Please note that you cannot simply answer these queries with only facts, you should answer then using facts and rules. A. Which country/countries has/have the largest case number? B. Which country/countries has/have the smallest number of deaths? C. Which country has the largest case number or the largest number of deaths? D. Which country has the largest case number less than 5? E. How many cases are reported for Austria? F. How many cases are reported for the Asia? G. How many cases are reported for the Asia and middle east? H. Which region has the smallest case number? 1. Which region has the largest number of deaths? J. Which regions have a smaller case number than Europe? K. Which country/countries has/have a larger number deaths than Iran? L. Which country/countries has/have a larger case number and a larger number of deaths than Iran? M. Which country/countries has/have a larger case number or a larger number of deaths than Iran? N. What is the average case number in this report?
PROLOG I will downvote if you copy another answers post! I will upvote if you don't!
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am