Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paragraph Font Spring 2021 CSCI 160 laboz Lab Assignment 7 Instructions ScrabbleScore class This class is designed to provide a method that can be used

image text in transcribed
image text in transcribed
Paragraph Font Spring 2021 CSCI 160 laboz Lab Assignment 7 Instructions ScrabbleScore class This class is designed to provide a method that can be used to calculate word scores for Scrabble. You will need to see the ScrabbleScore class API for a list of methods that should be implemented. ScrabbleCalculator class Create a GUI class using the JEsame Form option in NetBeans to make a client program for you ScrabbleScors class. Your GUI should contain one or more labels specifying instructions for how to use the program, a text field where users can enter a word to test, a button to submit an entered word, and some component to display the score for that word. If the user has entered an invalid word, it should indicate that an invalid word was entered instead of displaying the special value-1that is used to represent invalid input. You should attempt to design your GUI to be visually pleasing as you will be awarded some points based on design ScrableScore Test class For this portion of the assignment you will need to create a set of unit tests in the provided ScrabbleScoreTest class which can be found in the MxUnit Tests package. You should use a white box testing approach to ensure that you achieve statement level coverage for the calculateScore test. To achieve statement level coverage means that you have unit tests such that every statement block (each node in a control flow graph) is executed at least once. Essentially that after running your unit tests, every line of code in your calculateScor method has been executed at least once by some unit test You may want to view the SEP-CYLE leaming object for White Box testing to learn how to construct a control flow graph and ensure that you have proper statement coverage Methods: Identifier sallist(String word) Parameters word - the word for which you should calculate the points in Scrabble Return Valoc int - the mimber of points for the parameter word Other This method should be static This method should use the following system for scoring 0-blank 1-e, a, i, n.1.1.1. 12-de 3-b. Page 3 of 4 Bb CcCAQBbceDi AaBbCcDAoBbci AaBCD ABCD ABCDE AABBCCDC ubtitle Subtle Em.. Emphasis Intense E... Strong Quote Intense Q. Subtle Ref... P Find Bc Replace Select Editing Create Add Styles CSCI 160 lab07 Spring 2021 Lab Assignment instructions 4-fhv.w.y 5-k 8-j. 10 -4,2 You should represent blank tiles by using the space character (1. e... If the parameter word is null or contains any characters that are not letters or a space, it should return the value - 1 to indicate that the input was invalid. This method should be able to handle input that is lowercase, uppercase, or a mixture of both (Ctr

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago