Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 11.2, Problem 6QE
Program Plan Intro
Parsing analysis:
The parsing analysis of any statement checks the grammatical role of each word in statement.
Semantic analysis:
The semantic analysis of any statement defines the semantic role of each word in the statement.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In the simplified English grammar of the given Figure, there are only finitely many legal sentences. How
many are there? Why?
(1) sentence → noun-phrase verb-phrase .
(2) noun-phrase → article noun
(3) article →→ a | the
(4) noun → girl
| dog
(5) verb-phrase
verb noun-phrase
(6) verb → sees | pets
A database of Prolog facts for a group of people contains the following two types of facts:
male([, , ... ] ).
female ([, , ... ] ).
age( , )
E.g., male([alex, tom, vic, ...]).
E.g., female([ann, sara, ella, ..]).
E.g. age(ann, 66).
For these facts write the following rules (you may use Prolog library functions):
person(, ).
gender(, gender>).
oldest(, , ).
meanAgeM().
count(, , ).
Find the name and the age of a person
Find the name and the gender (male or female)
Find the name/age/gender of the oldest person
Find the mean age of male people
Find the number of male, female, and total people
Can someone please help me with this question?
Chapter 11 Solutions
Computer Science: An Overview (12th Edition)
Ch. 11.1 - Prob. 1QECh. 11.1 - Prob. 2QECh. 11.1 - Prob. 3QECh. 11.1 - Prob. 4QECh. 11.1 - Prob. 5QECh. 11.2 - Prob. 1QECh. 11.2 - Prob. 2QECh. 11.2 - Prob. 3QECh. 11.2 - Prob. 4QECh. 11.2 - Identify the ambiguities involved in translating...
Ch. 11.2 - Prob. 6QECh. 11.2 - Prob. 7QECh. 11.3 - Prob. 1QECh. 11.3 - Prob. 2QECh. 11.3 - Prob. 3QECh. 11.3 - Prob. 4QECh. 11.3 - Prob. 5QECh. 11.3 - Prob. 6QECh. 11.3 - Prob. 7QECh. 11.3 - Prob. 8QECh. 11.3 - Prob. 9QECh. 11.4 - Prob. 1QECh. 11.4 - Prob. 2QECh. 11.4 - Prob. 3QECh. 11.4 - Prob. 4QECh. 11.4 - Prob. 5QECh. 11.5 - Prob. 1QECh. 11.5 - Prob. 2QECh. 11.5 - Prob. 3QECh. 11.5 - Prob. 4QECh. 11.6 - Prob. 1QECh. 11.6 - Prob. 2QECh. 11.6 - Prob. 3QECh. 11.7 - Prob. 1QECh. 11.7 - Prob. 2QECh. 11.7 - Prob. 3QECh. 11 - Prob. 1CRPCh. 11 - Prob. 2CRPCh. 11 - Identify each of the following responses as being...Ch. 11 - Prob. 4CRPCh. 11 - Prob. 5CRPCh. 11 - Prob. 6CRPCh. 11 - Which of the following activities do you expect to...Ch. 11 - Prob. 8CRPCh. 11 - Prob. 9CRPCh. 11 - Prob. 10CRPCh. 11 - Prob. 11CRPCh. 11 - Prob. 12CRPCh. 11 - Prob. 13CRPCh. 11 - Prob. 14CRPCh. 11 - Prob. 15CRPCh. 11 - Prob. 16CRPCh. 11 - Prob. 17CRPCh. 11 - Prob. 18CRPCh. 11 - Give an example in which the closed-world...Ch. 11 - Prob. 20CRPCh. 11 - Prob. 21CRPCh. 11 - Prob. 22CRPCh. 11 - Prob. 23CRPCh. 11 - Prob. 24CRPCh. 11 - Prob. 25CRPCh. 11 - Prob. 26CRPCh. 11 - Prob. 27CRPCh. 11 - Prob. 28CRPCh. 11 - Prob. 29CRPCh. 11 - Prob. 30CRPCh. 11 - Prob. 31CRPCh. 11 - Prob. 32CRPCh. 11 - Prob. 33CRPCh. 11 - What heuristic do you use when searching for a...Ch. 11 - Prob. 35CRPCh. 11 - Prob. 36CRPCh. 11 - Prob. 37CRPCh. 11 - Prob. 38CRPCh. 11 - Suppose your job is to supervise the loading of...Ch. 11 - Prob. 40CRPCh. 11 - Prob. 41CRPCh. 11 - Prob. 42CRPCh. 11 - Prob. 43CRPCh. 11 - Prob. 44CRPCh. 11 - Prob. 45CRPCh. 11 - Prob. 46CRPCh. 11 - Prob. 47CRPCh. 11 - Prob. 48CRPCh. 11 - Draw a diagram similar to Figure 11.5 representing...Ch. 11 - Prob. 50CRPCh. 11 - Prob. 51CRPCh. 11 - Prob. 52CRPCh. 11 - Prob. 53CRPCh. 11 - Prob. 54CRPCh. 11 - Prob. 55CRPCh. 11 - Prob. 56CRPCh. 11 - Prob. 57CRPCh. 11 - Prob. 1SICh. 11 - Prob. 2SICh. 11 - Prob. 3SICh. 11 - Prob. 4SICh. 11 - Prob. 5SICh. 11 - Prob. 6SICh. 11 - Prob. 7SICh. 11 - Prob. 8SICh. 11 - Prob. 9SICh. 11 - Prob. 10SICh. 11 - Prob. 11SICh. 11 - Prob. 12SICh. 11 - A GPS in an automobile provides a friendly voice...Ch. 11 - Prob. 14SI
Knowledge Booster
Similar questions
- Can i use "was won" in a sentence? And is it a correct grammar? For example, The Academy Award for best animated film was won by WALL-E.arrow_forwardFor each English sentence below, write the FOL sentence that best expresses its intended meaning. 1) No person serves apples to Mary. 2) Every person who serves bananas to John enjoys grapes. 3) Every person enjoys their favorite fruitarrow_forwardAdd the required and proper prefixes or suffixes to the following words to convert them from one type of speech part to another. 4- "Advantageous". Add the proper prenx to this word to get the opposite meaning. 5- According to the given prefix, what is the meaning of the below sentence: - "Post-Combustion Chamber process". 6- Which type of verb the word "run" belongs to in the below sentence: - "Run your final exam carefully before it starts."arrow_forward
- In 3-5 sentences, find out the differences/similarities between if-else, else-if and nested if.arrow_forwardFormalize the following sentences using FOLformulas. Jane hits jimmy with the baseball batarrow_forwardLinear Algebra using MATLAB. Solve the following problem using MATLAB. Write the syntax and the MATLAB out put on the space provided.Peter withdrew 10000 pesos from his bank account today. He uses 5000 to fix his car. Then, he divide the money into 5 equal parts and gave away 4 parts and kept 1 part for himself. He took his wife to the restaurant and spent 600 pesos on meals. The remaining cash was divided among his 5 children for their allowance. Write a numerical expression in MATLAB syntax to represent this situation and then find how much money Peter has now?arrow_forward
- Pls help ASAP on all of these questions. PLs I humbly request.arrow_forwardComplete the following exercises about logical sentences:1. Translate into *good, natural* English (no xs or ys!): ∀x,y,lSpeaksLanguage(x,l)∧SpeaksLanguage(y,l)⟹Understands(x,y)∧Understands(y,x). Explain why this sentence is entailed by the sentence ∀x,y,lSpeaksLanguage(x,l)∧SpeaksLanguage(y,l)⟹Understands(x,y). Translate into first-order logic the following sentences:1. Understanding leads to friendship.2. Friendship is transitive.Remember to define all predicates, functions, and constants you usearrow_forwardFormalize the following sentences using FOLformulas.John travel to london by trainarrow_forward
- What sentence correctly describes the relationship between a person and a hometown? Select one: a. A person may have a hometown and a town must be a hometown of one person at least b. Each person must have one hometown and a town may be a hometown of only one person c. A person may have more hometowns and a town must be a hometown of one person at least d. Each person must have one hometown and a town may be a hometown for more people e. Each person must have more hometowns and a town may be a hometown for more personsarrow_forwardFormalize the following sentence in english: 3x. (foreign(x) A (work(x, y) AVy.healthcare_job(y)))arrow_forwardplease answer 11 and explain step by steparrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education