Develop a system/application in Prolog that will allow grader to: load a set of student’s grades (see samples from the Table C below) query student’s final letter grade (A, B, C, etc.) by a given student’s name. query student(s) whose grade matches to the input letter grade (e.g., A). For example, show student(s) whose final letter grade is A. There are 3 types of grades for each student—HWs, Exams, and Project, with a weight of 20%, 40% and 40%, respectively, to the 100-point final. Table A and B show how the final grades (in points and letter) are computed. Table C shows samples of students’ grades. You will define the execution instructions to answer the following questions so that grader can test out your application in Prolog: how to load your source code to Prolog runtime/compiler how to load students’ grades to Prolog runtime/compiler how to query student’s letter grade how to query student(s) whose letter grade matches to an input letter grade Please DO NOT hard code any input values, output values in your code. PLEASE USE ONLY PROLOG AND NOT ANY OTHER PROGRAM Table A: sample final grade computing HW#1 HW#2 HW#3 HW Weight (20%) Mid Term Final Exams Weight (40%) Project Project Weight (40%) Final Point Grade Final Letter Grade 100 100 100 20.00 100 100 40.00 100 40.00 100.00 A 90 90 90 18.00 90 90 36.00 90 36.00 90.00 A 85 85 80 16.67 80 80 32.00 80 32.00 80.67 B+ 90 80 78 16.53 98 76 34.80 92 36.80 88.13 A- 50 50 50 10.00 50 50 20.00 50 20.00 50.00 F Table B:  mapping between point grade and letter grade. Letter Grade Point Grade A [ 90 – 100 ) A– [ 85 – 90 ) B+ [ 80 – 85 ) B [ 75 – 80 ) B– [ 70 – 75 ) C+ [ 65 – 70 ) C [ 60 – 65) F [ 1 – 60)   [ X : greater than or equal to X   Y) : less than Y Table C: sample students’ grades Name HW#1 HW#2 HW#3 Mid Term Final Project John Smith 100 100 100 100 100 100 Marry Lou 90 90 90 90 90 90 Nicole Scott 85 85 80 80 80 80

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Develop a system/application in Prolog that will allow grader to:

  1. load a set of student’s grades (see samples from the Table C below)
  2. query student’s final letter grade (A, B, C, etc.) by a given student’s name.
  3. query student(s) whose grade matches to the input letter grade (e.g., A). For example, show student(s) whose final letter grade is A.

There are 3 types of grades for each student—HWs, Exams, and Project, with a weight of 20%, 40% and 40%, respectively, to the 100-point final.

Table A and B show how the final grades (in points and letter) are computed.

Table C shows samples of students’ grades.

You will define the execution instructions to answer the following questions so that grader can test out your application in Prolog:

  1. how to load your source code to Prolog runtime/compiler
  2. how to load students’ grades to Prolog runtime/compiler
  3. how to query student’s letter grade
  4. how to query student(s) whose letter grade matches to an input letter grade

Please DO NOT hard code any input values, output values in your code.

PLEASE USE ONLY PROLOG AND NOT ANY OTHER PROGRAM

Table A: sample final grade computing

HW#1

HW#2

HW#3

HW Weight (20%)

Mid Term

Final

Exams Weight (40%)

Project

Project Weight (40%)

Final Point Grade

Final Letter Grade

100

100

100

20.00

100

100

40.00

100

40.00

100.00

A

90

90

90

18.00

90

90

36.00

90

36.00

90.00

A

85

85

80

16.67

80

80

32.00

80

32.00

80.67

B+

90

80

78

16.53

98

76

34.80

92

36.80

88.13

A-

50

50

50

10.00

50

50

20.00

50

20.00

50.00

F

Table B:  mapping between point grade and letter grade.

Letter Grade

Point Grade

A

[ 90 – 100 )

A–

[ 85 – 90 )

B+

[ 80 – 85 )

B

[ 75 – 80 )

B–

[ 70 – 75 )

C+

[ 65 – 70 )

C

[ 60 – 65)

F

[ 1 – 60)

  [ X : greater than or equal to X
  Y) : less than Y

Table C: sample students’ grades

Name

HW#1

HW#2

HW#3

Mid Term

Final

Project

John Smith

100

100

100

100

100

100

Marry Lou

90

90

90

90

90

90

Nicole Scott

85

85

80

80

80

80

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Sorting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education