[Solved]417 2019 P09 Dictionary Using Bst Cs300 Programming Ii Step1 Getting Started Start Creatin Q37054319

417 2019 P09 Dictionary Using BST CS300: Programming II STEP1. GETTING STARTED Start by creating a new Java Project in eclipse. You have to ensure that your nevw project uses Java 8, by setting the “Use an execution environment JRE:” drop dowin setting to “JavaSE-1.8 within the new Java Project dialog box. Then, add a new class called DictionaryTests to this project with a public static void main(String[] args) method stub. This class should contain all your test methods for this application. You have to define and implement at least FIVE unit test methods. Each of these test methods must be public, static, and return a boolean evaluated to true if an implementation passes the test and false otherwise. You are responsible for designing and writing these tests to help convince yourself that each of your classes is correctly implemented while you are working through this assignment. STEP2, CREATE DICTIONARY INTERFACE First, add a new interface called Dictionary to this project. This interface models and abstract data type for a dictionary and MUST define exactly the following methods: 1// checks whether the dictionary is empty or not 2 public boolean isEmpty); 4// adds this word definition (word and the provided meaning) to the dictionar 5Returns true if the word was successfully added to this dictionary 6 // Returns false if the word was already in the dictionary 7// Throws IllegalArgumentException if either word or meaning is null or an em 8String 9public boolean addWord(String word, String meaning); 11// Returns the meaning of the word s if it is present in this dictionary 12 // Throws a NoSuchElementException if the word s was not found in this dictio 13public String lookup(String s); 15 // Returns the number of words stored in this dictionary 16 public int size); STEP3. CREATE DICTIONARYWORD CLASS Cs300-ww.cs.wisc.edwwp 2019 03/22p09-dictionary-using-bst 3’15 Show transcribed image text 417 2019 P09 Dictionary Using BST CS300: Programming II STEP1. GETTING STARTED Start by creating a new Java Project in eclipse. You have to ensure that your nevw project uses Java 8, by setting the “Use an execution environment JRE:” drop dowin setting to “JavaSE-1.8 within the new Java Project dialog box. Then, add a new class called DictionaryTests to this project with a public static void main(String[] args) method stub. This class should contain all your test methods for this application. You have to define and implement at least FIVE unit test methods. Each of these test methods must be public, static, and return a boolean evaluated to true if an implementation passes the test and false otherwise. You are responsible for designing and writing these tests to help convince yourself that each of your classes is correctly implemented while you are working through this assignment. STEP2, CREATE DICTIONARY INTERFACE First, add a new interface called Dictionary to this project. This interface models and abstract data type for a dictionary and MUST define exactly the following methods: 1// checks whether the dictionary is empty or not 2 public boolean isEmpty); 4// adds this word definition (word and the provided meaning) to the dictionar 5Returns true if the word was successfully added to this dictionary 6 // Returns false if the word was already in the dictionary 7// Throws IllegalArgumentException if either word or meaning is null or an em 8String 9public boolean addWord(String word, String meaning); 11// Returns the meaning of the word s if it is present in this dictionary 12 // Throws a NoSuchElementException if the word s was not found in this dictio 13public String lookup(String s); 15 // Returns the number of words stored in this dictionary 16 public int size); STEP3. CREATE DICTIONARYWORD CLASS Cs300-ww.cs.wisc.edwwp 2019 03/22p09-dictionary-using-bst 3’15
Expert Answer
Answer to 417 2019 P09 Dictionary Using BST CS300: Programming II STEP1. GETTING STARTED Start by creating a new Java Project in e… . . .
OR

