Question
Give one example of a unique names axiom and one example of a unique actions axiom that might appear in Evil Robot's knowledge base for
Give one example of a unique names axiom and one example of a unique actions axiom that might appear in Evil Robot's knowledge base for this problem. Explain why such axioms are required. [4 marks] (c) Give an example of how a directed arc xi xj can fail to be arc consistent. Explain how this can be fixed. [2 marks] (d.ii) Describe the AC-3 algorithm for enforcing arc consistency. [5 marks] (e.ii) Prove that the time complexity of the AC-3 algorithm is O(n 21d 23 ) where d is the size of the largest domain. What can we conclude about the functional dependency 2Z W? Explain your answer. ) program to compute the value of a given position in Pascal's Triangle (See image).
The way to compute any given position's value is to add up the numbers to the position's right and left in the preceding row. For instance, to compute the middle number in the third row, you add 1 and 1; the sides of the triangle are always 1 because you only add the number to the upper left or the upper right (there being no second number on the other side). At
their first meeting the Examiners agree that, within each subject, they will sort the
candidates into descending order of marks and those ranked in the top third will [4 marks] (c.ii) In the process of using functional dependencies to normalise a schema, what is meant by a lossless join decomposition and how is such a decomposition guaranteed? [4 marks] Instructions for Assignment 14.2 (The Product class #11). Design a superclass named product to represent a product in a bowling shop. This class contains: 1. A private string data field named code that specifies the product code. The default value is an empty string. 12. A private string data field named description that specifies the products description. The default value is an empty string. 3. A private double data field named price that specifies the price of a product. The default value is 0. 4. A no-argument constructor that creates a default product. 5. Accessor and mutator methods for all three data fields. 6. Override the toString() method. Return a description of the product with all three fields on separate lines. (The Ball class #2). Design a product subclass named ball to represent a bowling ball. The class contains: 1. A private string data field named color that specifies the color of a bowling ball. The default is an empty string. 12. A no-argument constructor that creates a default ball. 3. Accessor and mutator methods for the color data field. 14. Override the toString() method. Return an appended string of the superclass with an additional field for the bowling balls color. (The Bag class #3). Design a product subclass named bag to represent a bowling bag. The class contains: 11. A private string data field named type that specifies the number of bowling balls the bag can hold. The default is an empty string. 21. A no-argument constructor that creates a default bag. 3. Accessor and mutator methods for the type data field. 4. Override the toString() method. Return an appended string of the superclass with an additional field for the bags type. (The Shoe class #4). Design a product subclass named shoe to represent bowling shoes. The class contains: 1. A private double data field named size that specifies the shoe size. The default is 20.22 2. be awarded informal Firsts for that subject.
To save effort, the Examiners agree to mark each subject simply by throwing a
fair die once for each candidate and awarding the outcome, a mark in the range 1
to 26. They reason, correctly, that 5 should be the threshold mark for a First since
approximately one-third of the candidates are likely to score 5 or 6. We have now established a Hive table "Company" and Two Spark Dataframe SQL accessible views "Salesworth" and "Empview" we are now in a position to provide some analysis on Mrs adebabamo's ask. Give a brief and rudimentary clarification of the standards of how the language.
2Company_data.csv -2 Company colorData Companycolor_Emp_da2ta.csv - Employee Data Sales_data.csv A no-argument constructor that creates a default shoe. 3. Accessor and mutator methods for the size data field. 4. Override the toString() method. Return an appended string of the superclass with an additional field for the shoe size. (The ProductDB class #5). Design a class named ProductDB to represent the bowling shops database. The class contains: 1. A public static method named getProducts with string argument named code and a return type of a product generic queue (hint: we are leveraging the GenericQueue to store the product objects). Using an if...else if...else if...else check the argument against the values "b, s, and a." For arguments that equal "b" create five (5) new ball instances, set all four data fields with values, and add them to a product generic queue named balls. For arguments that equal "s" create five (51) new shoe instances, set all four data fields with values, and add them to a product generic queue named shoes. For arguments that equal "a' create three (13) new shoe instances, set all four data fields with values, and add them to a product generic queue named shoes. For all other arguments, return an empty product generic queue. Figure 5.1. Starter snippet Figure 5.1. Starter snippet (The GenericQueue class #6). Design a generic queue named GenericQueue. The class contains: 1. A private generic link list data field named list. 2. A public method named enqueue with a generic argument named item that adds the item to the list using the addFirst method. 3. A public method named dequeue with a generic return type that removes the first object in the queue using the removeFirst method. 41. A public method named size with a data return type of integer that specifies the size of the list using the size method. Figure 6.1. Code snippet Figure 6.2. Code snippet (The TestBowlingShopApp class #7). Design a class named TestBowlingShopApp to test the Product, Ball, Bag, Shoe, ProductDB, and GenericQueue classes. 1. A public static method named displayMenu. Display the menu to the user and invoke the getProducts method from the ProductDB class with the user's entry as the argument. Assign the results to a product generic queue named products. Using a while loop iterate over the queue and invoke the dequeue method to display the contents. Special note. Use the queues size method in the while loops signature to keep track of your placement in the queue. Use the products toString method to display the results. Figure 17.2. Code snippet 13. Allow the user to keep selecting options until "x" is chosen. Figure 7.3. Expected output/flow Figure 7.3. Expected output/flow Figure 17.3. Expected output/flow Figure 7.3. Expected output Figure 7.3 Expected output/flow Special note. Pay close attention to the format of the price data field. Use the printf method and pattern "$%,6.2f" in the product classes toString method. 4. Compress all Java files into a Jar file named BowlingShopApp.jar. Save the solution under a folder named BowlingShopApp in your repositories Module_24 folder.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started