Implement a performance-measuring environment simulator for the vacuum-cleaner world depicted in Figure 2.2 and specified on page 38. Your implementation should be modular so that the sensors, actuators, and environment characteristics (size, shape, dirt placement, etc.) can be changed easily. (Note: for some choices of
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
Artificial Intelligence: A Modern Approach
Additional Engineering Textbook Solutions
Starting Out With Visual Basic (8th Edition)
C++ How to Program (10th Edition)
Concepts Of Programming Languages
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Problem Solving with C++ (10th Edition)
Concepts of Programming Languages (11th Edition)
- Implement a simple e-mail messaging system. A message has a recipient, a sender, and a message text. A mailbox can store messages. Supply a number of mailboxes for different users and a user interface for users to log in, send messages to other users, read their own messages, and log out. Follow the design process that was described in this chapter. Draw updated UML diagram as well as CRC cardarrow_forwardSimulation parameters: • Define a step size h. Try something small like 0.001 seconds. • Define a length for the simulation-perhaps 10 seconds for now, but feel free to adjust it as you see fit. • Create a list of times that begins at 0 and goes up to the simulation length in steps of h. The actual simulation only cares about the step size, so we won't use this in the simulation but we'll use it for plotting at the end. • Calculate the length of the list created in the previous step and assign it to a variable n. Data arrays: • Create a list r of length n that is all zeros (np.zeros could come in handy here). • Create a list s of length n that is all zeros. Initial conditions: • Set the first entry of r to be some initial height of your choosing. • Set the first entry of s to be some initial velocity of your choosing. First-order equations: • We need to define a function that calculates the derivative of r. Since Eq. 2.14 says that r' s, this is fairlv simply. We iust have to return c…arrow_forwardDo code in MATLAB PROGRAMMING ATTACH SCREENSHOT AS WELL. WRONG CODE WOULD BE DOWNVOTED FOR SUREarrow_forward
- Make me a model in an engineering software, which allows to represent the magnetic field of a three-phase rotating electric machine.1.A scenario in which you can modify: frequency, modulus of the magnetic field density, initial angle.2.To allow the user to modify the radius of the electric machine casing.3.Allow to re-simulate a new magnetic field distribution or to exit the simulation. in matlabarrow_forwardCan you give me three separate instances of event simulation?arrow_forwardImagine you have to design an elevator system. Part of the elevator system handles the elevator cars themselves. An elevator car has three states, going up, going down, or idle. An elevator car moves from a source floor to a destination floor. The doors of the elevator car only open and allow passengers to get in and out of the car if the car is idle. The elevator cars have sensors that identify the number of passengers and weight (payload) in the car. These sensors update their values every time a car door opens and closes. Elevator cars will not move if the number of passengers or weight goes beyond a safety threshold. A message will be displayed to passengers if the car is over its capacity. An elevator car also has an emergency button. When the emergency button is pressed, the car turns on its microphone and connects to the security station, stops on the nearest floor, and opens its doors. Keep in mind that elevator cars depart from a source floor to move to a destination floor,…arrow_forward
- Draw a hierarchy for the components you might find in a graphical user interface. Note that some components can trigger actions. Some componentsmay have graphics associated with them. Some components can hold othercomponents.arrow_forwardHow would you sum up interface testing?arrow_forwardAfter you have read the required chapters from the text for this unit, visit and read the following website to learn more about Gestalt Psychology.http://en.wikipedia.org/wiki/Gestalt_psychology Now, consider at least one interface that you use at least several times a week. Think outside of the box - this doesn't have to be your computer - in fact, I would prefer it NOT be - it can be your phone, your television, or some other electronic interface. Describe concisely (no fluff, please!) how at least TWO of the "Laws of Grouping" were applied to the design of the interface that you chose.arrow_forward
- I need to change this code into object oriented code. here's how to objects are supposed to be setup. First you will need to make a Timer object. This object should function like a traditional stopwatch with methods for starting, stopping, resetting, and reporting back times. The design of the object itself is up to you (it should minimally contain methods for the aforementioned ideas), but it must consist of a solitary object that provides interfaces appropriate for being compositionally included as part of a sorting object to facilitate the time keeping portion of this exercise. Make sure you have a properly separated specification and implementation file for your Timer/Stopwatch object. The second object you will make should be a data housing object that has methods that enable client code to read in the formatted contents of data files, house the data in memory, and execute bubble sort, selection sort, and insertion sort algorithms in a timed fashion with the assistance of your…arrow_forwardplease implement the code for password validation by considering all scenarios and run it, if it runs with the correct answer I will upvotearrow_forwardDevelop a user interface using Java for a basic calculator that supports multiplication and division. It is necessary to have switches for on, off, and clear.arrow_forward
- 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