How does the behavior compare to version 4 of magpie

Assignment Help Basic Computer Science
Reference no: EM131848584

  1. Try chatting. How does the behavior compare to version 4 of Magpie:
  2. At the bottom of the Magpie5 Lab find the code:

private String [] randomResponses = {"Interesting, tell me more", "Hmmm.",

"Do you really think so?",

"You don't say." };

This array of Strings holds the responses the ChatBot randomly says. Add two more random responses and compile, then run the runner for Magpie5.

  1. Look at the getRandomResponse method in the Magpie5 Lab and compare it to the same method in the getRandomResponse method in Magpie4. Compare and contrast how the two methods work.
  2. Let's say you wanted to increase the number of random responses to 30 different phrases. Which of the two methods, the one in Magpie 4 or Magpie5, would be most efficient? Why?
  3. How does storing the responses in array enable increasing the number of random responses the Magpie ChatBot can use?

Reference no: EM131848584

Questions Cloud

Compare the main characteristics of a mobile device : Question: Compare the main characteristics of a mobile device today to one from the past.
Identify the layer of the open systems interconnection : Identify the layer of the Open Systems Interconnection (OSI) that does error detection and correction occur and how does this correlate with software
What is crc : What is CRC? Describe how CRC can be used in software design and Where should this logic occur most in and why?
Make a short program just to learn about buffer over flow : I am trying to make a short program just to learn about buffer over flow and it's mitigation. It's prety easy but my mind is gone.
How does the behavior compare to version 4 of magpie : Try chatting. How does the behavior compare to version 4 of Magpie: At the bottom of the Magpie5 Lab find the code:
What stock price will you get margin call : What is your investment return if stock price is $30 now? If your broker requires a 30% maintenance margin, at what stock price will you get a margin call?
Advantages and disadvantages of group meetings : In a group meeting, a system analyst meets with a number of users at one time. Discuss the advantages and disadvantages of group meetings?
Understand the advantages of ipv6 over ipv4 : IPv6 is the future of network addressing. It is important to understand the features of IPv6. Furthermore, it is important to understand the advantages of IPv6
Is this stock overvalued or undervalued : Assume that the stock is traded at the NASDAQ with a price of $120. Is this stock Overvalued or Undervalued?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Replacement algorithm is used for block replacement

Assume LRU (Least Recently Used) replacement algorithm is used for block replacement in the cache, and the cache is initially empty.

  Derivea list of at least 10 design principles

For your first assignment, you will begin to look at the world with "designer's eyes," reflecting on the things with which you interact, and the quality of that interaction. Pay attention to anything and everything with which you interact: from do..

  What is nanotechnology

What is nanotechnology? What are nano computers? How can nanotechnology and nanocomputing benefit us? How might it harm us? What kinds of ethic challenges do research in nanaotechnology and nanocomputing pose?

  Creating the powerpoint slides

Create an outline from your topics and from the outline, develop aPowerPoint presentation that contains at least 10 slides. • Use PowerPoint features such as: o Decorative WordArt, SmartArt with text, Shape with text or picture, correct spelling • Us..

  Subprograms and functions with parameters and arguments

Using Notepad++ (installed from the "Start Here!" page), write a program using Pseudocode to solve the following problem. In your program, make use of subprograms and functions with parameters and arguments.

  Storage class would be the most appropriate

If you are to keep track of how many times buttons are actuated per button which storage class would be the most appropriate?

  Given a set of n points in the cartesian plane

Design an algorithm for the following problem: Given a set of n points in the Cartesian plane, determine whether all of them lie on the same circumference

  Anomalous behaviour of fifo

Describe Belady's anomaly and provide an example that illustrates anomalous behaviour of FIFO.

  Google maps or similar available web services

Using Yahoo! Maps, Google Maps or similar available Web services, create an rssGEO2.0.xml document that will group and display at least five different geographical locations. The theme of the locations is up to you, but include your favorite vacation..

  Diameter of the pizza in inches

Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps:

  Calculate the equilibrium wage rate and quantity

Calculate the equilibrium wage rate and quantity of labour employed and draw a diagram to illustrate your answer.

  With the theory of consumer behavior

With the theory of consumer behavior, graphically illustrate and carefully explain why an individual's demand curve for an inferior good is downward sloping.

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