CSC1110: Week 3 Homework
Overview
In this homework, you will implemented stub out methods based on provided JavaDoc. These methods will require loops, conditionals, and conditional operators.
Setup
For this assignment you must use IntelliJ and follow the instructions in the Lab 3 Pre-Lab regarding installing Java and IntelliJ. You must also create a new project for this assignment and package with your MSOE username.
This homework will be similar to your Lab 2. Download the provided Java file and move it into the package folder in your IntelliJ project. If your right-click on your package in IntelliJ and go to Open In -> Explorer, and folder will pop up at that location. You can then move or copy the downloaded file to your package folder. The downloaded file will probably be in your Downloads folder.
Do simply double-click on the file in the Downloads folder. This will open it in IntelliJ, but the file will not be part of any project and therefore will not compile. Verify that you can run the file in IntelliJ and that it produces an output of red text that shows the result of running tests on the stubbed out methods.
Instructions
The downloaded code contains 10 methods stubs that you must implement based on the provided JavaDoc. When you run the program, the main() method will test each method to see if it's return value matches an expected value. It will then print out the expected and actual value in green or red depending on whether they matched or not. You are only allowed to use the String methods charAt(), equals(), length(), and substring().
You must implement all the methods such that all the tests pass and produce green text. You should only modify the method stubs and should not change main() or the testMethod() method.
Submission
See your professor's instructions for details on submission guidelines and due dates.