Write a complete java program that executes and compiles

Assignment Help JAVA Programming
Reference no: EM131907538

Introduction to Artificial Intelligence Assignment

The assignment is to write a complete Java program that executes and compiles.

PROBLEM - BEHAVIOR TREES

Roomba's roaming

This new type of Roomba has very simple reflex rules. It will always check the battery level first. If the level is below 30%, it will plan a path to its charging base ("home"), go there, and start the docking procedure. If the battery is at a sufficient level, it will start the function it was commanded to perform. The available commands are:

1. Spot cleaning: it will perform a 20s intensive cleaning in a specific area

2. General cleaning: go around the room and vacuum dust until the battery falls under 30%

3. Do nothing

During general cleaning, if the dust sensor detects a particularly dirty spot, the Roomba will perform a 35s spot cleaning.

The goal of this problem set is to implement the provided behavior tree. As we talked about in class, trees can be represented with concatenated IF-THEN-ELSE rules. Trees can also be implemented through a standard recursive node definition (additional 30 Points).

Your implementation should accept a blackboard object as input (a regular hash map or dictionary). The blackboard contains the following elements:

1. BATTERY_LEVEL: an integer number between 0 and 100

2. SPOT: a Boolean value - TRUE if the command was requested, FALSE otherwise

3. GENERAL: a Boolean value - TRUE if the command was requested, FALSE otherwise

4. DUSTY_SPOT: a Boolean value - TRUE if the sensor detected a dusty spot during the cycle, FALSE otherwise

5. HOME_PATH: The path to the docking station

SPOT and GENERAL should not change until the command has been completed. The tree evaluation is called several times, each time simulates a 1s interval. Certain tasks should return RUNNING if they have not completed the job yet, and last for the specified number of cycles (20 cycles, or 35 cycles).

Except for DONE GENERAL and DONE SPOT, none of the other tasks will need to be implemented as printing a string with the name of the task and the state (SUCCEEDED, FAILED, RUNNING) will be sufficient. DONE GENERAL and DONE SPOT will set to FALSE the corresponding values in the blackboard.

Attachment:- Assignment File.rar

Reference no: EM131907538

Questions Cloud

What is the potential gross income for the first year : You are considering the purchase of a small office building in Brooklyn. What is the Potential Gross Income (PGI) for the first year?
Concept of stakeholders and corporate social responsibility : Explain the concept of stakeholders and Corporate Social Responsibility. Why do you think some companies choose to operate in the area of "Legal Responsibility
Discuss about the counterproductive work behavior : Choose one (1) CWB from the abuse against others category and one (1) CWB from the production deviance category, and then examine at least two (2) possible.
What are the ethical concerns regarding presidents actions : Assignment: Environmental Law and Ethics. What are the ethical concerns regarding the President's actions, and what do you believe Eric should do?
Write a complete java program that executes and compiles : COMP 131, Introduction to Artificial Intelligence Assignment. The assignment is to write a complete Java program that executes and compiles
Internal environments of an organization : Describe the general, task, and internal environments of an organization. How do managers combine the information from all three areas to set the stage.
Success working in a foreign country : Assume your organization has given you the task of preparing employees in your company for success working in a foreign country.
What is the bonds expected maturity : The bonds yield to maturity (APR) was 9.6% and constant all the time. What is the bonds expected maturity.
What occurred to warrant the quarantine : What occurred to warrant the quarantine? Was this justified? Does the need to protect public outweigh an individual's right to confidentiality? Why or why not?

Reviews

len1907538

3/20/2018 1:07:13 AM

Comment: The assignment is to write a complete Java program that executes and compiles. The program has to solve the problem in the assignment as stated by the question. Anything not stated in the question is for us to decide. SUBMISSION - Submit your solutions via Trunk.

Write a Review

JAVA Programming Questions & Answers

  Create a java class named headphone

Create a Java class named HeadPhone to represent a headphone set. The class contains: ? Three constants named LOW, MEDIUM and HIGH with values of 1, 2 and 3 to denote the headphone volume.

  Develop the business tier by using enterprise java beans

Develop the business tier by using Enterprise Java Beans - The business tier will process the data persistence or retrieval requests from users

  What aspects of judaism are rejected or reinterpreted

What theology does Jesus present in the two excerpts from the Gospels that are a part of the readings? What aspects of Judaism are strongly represented? What aspects of Judaism are rejected or reinterpreted?

  Write a java servlet to validate the data

Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.

  Write a program that prompts the user for a start date

You need to write a program that prompts the user for a start date and an end date and then prints all of the dates between them (inclusive), with seven tab-separated dates on each line.

  Design a dynamic programming algorithm

Assume that at a station ti takes 2 hours to change horses and a horse takes (x ln x)/100 hours to travel x miles. Design a dynamic programming algorithm to determine a sequence of stations at which to stop so as to minimize the total hours.

  Define java implementation to implement the requirements

Produce a Java implementation to implement the requirements of Question 1, that is, to perform the 32-bits two complement and 32-bit floating-point conversion of a given number.

  Write java program that display a welcoming message

Write a complete Java program with the following specifications: Display a welcoming message such as: "Welcome to Cubing Program!" Prompt the user twice to enter two positive whole numbers, indicating starting and finishing values, first one being s..

  Implement your client-server system

A detailed discussion of the methodology you used to implement your client-server system and a concise and detailed design for the client-server system

  What are the equilibrium price and quantity of corn

The table above contains information about the corn market. Use the table to answer the following questions. a.       What are the equilibrium price and quantity of corn? b.       Suppose the prevailing price is $9 per bushel. Is there a shortage o..

  What value is assigned to the variable phrase

Create a class State with five properties to hold the information about a single state and a method that calculates the density (people per square mile) of the state.

  Write java dice program

write java dice program.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd