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

  Write an application with three labeled text fields

Write an application with three labeled text fields, one each for the initial amount of a savings account, the annual interest rate, and the number of years

  What are the three types of errors

What are the three types of errors that you can encounter in a Java program? Describe them, and explain how you would minimize the errors

  Implementation of an object oriented program using java

SENG1110/6110 Programming - School of Electrical Engineering and Computing - University of Newcastle - implementation of an object oriented program using Java

  Write a java program that can make change

Write a Java program that can make change. Your program should take two numbers as input, one that is a monetary amount charged.

  Write two pages paper summarizing the given program changes

Write a 2 Page paper summarizing the above program changes and how each change will benefit the program's performance, and its functionality in general. Include references to back up each category of improvement.

  Provide java code to create and initialize array of integers

Provide a Java code to create and initialize an array of integers (Java primitive int), floats or any other Java primitive type of your choice

  Make and run an android mobile app on my mysql database

I need help to make and run an android mobile app on my mysql database. I need professional help. The app connect with given database and show me the details including generated reports of product in my phone.

  Extend the java defined hashmap class

Your goal is to extend the java defined HashMap class to add the ability to store multiple objects. To do this, you will edit MultiHashMap.java to both add new methods and override two methods from HashMap.

  What things are you struggling to understand

Discuss your experiences with the programming assignment - what things are you struggling to understand?

  Discuss key environmental issues facing north america

Discuss the key environmental issues facing North America based on the discussion in the text. Which ones do you see threatening the quality of life in North America the most? Do you have any ideas on how these issues might be addressed?

  What would the pseudocode look like

If you were to use this class to write the above 4 lines to a file, what would the pseudocode look like? What would the Java code look like?

  Three most primary forms of loops: the while loop, the do..

explored the world of loops we have accepted the three most primary forms of loops: the while loop, the do...while loop (even though Python does not use this loop), and the for loop. The for loop has approximately three primary implementations that w..

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