Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spelling Test - Java Assignment 6

Instructions:

  1. Fork the repository.
  2. Clone the repository to your local machine.
  3. Create a new branch named Feature01.

Assignment

Preamble:

  • In the game of Scrabble, each player possesses a set of tiles with letters on them. The objective is to use these letters to form words, and the scoring system is based on the complexity of the words. Longer words generally yield higher scores. Imagine you have your set of tiles represented as a string, such as "quijibo," and you are provided with another string to test, like "jib."

Objective:

  • Write a method named canSpell that takes two strings as parameters and checks whether the set of tiles can be used to spell the given word. Note that you may have more than one tile with the same letter, but each tile can be used only once.

Code:

  1. In the file CanSpell.java, implement the canSpell method in the provided Java code.
  2. Test your implementation with different sets of tiles and words.

Submission

Follow these steps for submission:

  1. Create a Feature01 branch of your code if you haven't already.
  2. Commit your working code for the exercises to your local copy/Feature01 branch.
  3. Push it to your Remote/origin branch (i.e., GitHub: Feature01 -> origin/Feature01).
  4. Issue a Pull request to my instructor repo.
  5. Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.

About

Initial Commit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages