Develop a Java class called RamString

Assignment Help JAVA Programming
Reference no: EM132238159

Assignment -

Instructions: Develop a Java class called RamString that correctly implements the WackyStringInterface that is provided. (The semantics of the methods in the interface should be obvious from their name and from the Javadoc comments in the code. If not, please ask for clarification) The RamString class should be designed so that instance variables are never NULL.

Important note: This project is focused on character and String manipulation and you are not allowed to use regular expressions or any classes or methods that make us of regular expressions.

Write a test driver for class RamString called RamStringTester. Specifically, you should create several different test cases for each method of in the interface. Each test should be a separate method. Make sure that the tests are not trivial (i.e., have a specific purpose). In other words, each test should (1) test a specific piece of functionality and (2) check that such piece of functionality behaves as expected. In addition, at least two of the tests for method convertDigitsToRomanNumeralsInSubstring should result in expected exceptions: MyIndexOutOfBoundsException (provided) in one case, and IllegalArgumentException in the other.

Add a concise comment to each test that you implement to clarify its rationale (e.g., "This test checks whether method convertDigitsToRomanNumeralsInSubstring suitably throws an IllegalArgumentException if startPosition is greater than endPosition"). Please note the tests you are creating are not Junit test cases. It is expected that all tests defined in the RamStringTester class will be called in its main method and the output of each test printed to the console.

Notes:

  • You cannot modify the provided interface, WackyStringInterface.
  • You must use the provided MyIndexOutOFBoundsException class
  • I will run your code against a standard set of test cases to make sure that you implemented the functionality of the required methods correctly.
  • Comment out or remove any package statements from the files that you submit to Blackboard.

Write this program in JAVA and compile it in JDK 8 or better. Follow all commenting conventions discussed in class and include a comment block at the top of each file with your name, date, the course number and section. In addition, the comment block at the top of the tester class must include a description of the program purpose, input, and output. It is expected that your program will be well documented and you are required to include a private helper method in your driver called printHeading that outputs the following information to the console in an easy-to-read format: your name, the project number, the course identifier, and the current semester. You will call this method as the first statement in your main method.

Attachment:- Assignment Files.rar

Reference no: EM132238159

Questions Cloud

Analyze the challenges encountered with purchase orders : Analyze the challenges encountered with purchase orders and make recommendations for creating the perfect purchase order form.
How can leadership styles effect global culture : John and the board of directors gave every indication that they understood the sense of urgency needed to align the key global human capital goals.
What is the probability of the first three selections : PSYC 220 Assignment Questions - We have a cooler full of beverages: 6 Cokes, 5 Dr. Peppers, 4 Pepsis & 1 beer. What is probability of the first three selection
Complete the journal entries for all 2016 transaction : MFE 6100 Managerial Accounting - ohio University - Complete the Journal Entries for all transactions listed - Provide Calculations Proving your beginning
Develop a Java class called RamString : Develop a Java class called RamString that correctly implements the WackyStringInterface that is provided. Write a test driver for class RamString
Describe how the industry involves the guest : Describe how the industry involves the guest in order to provide quality service and Summarize two service standards the industry uses to meet customer
At what price will your trade be executed : Question - Security Analysis - Suppose you have submitted an order to your broker to buy at market. At what price will your trade be executed
How many participants have missing values for medloinc : Examine univariate normality for each variable. What are your conclusions about the distributions? What transformations should be conducted
Show that V is a vector space over R : MATH1853 Assignment Questions - Let V be the set of real number functions, show that V is a vector space over R

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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