Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just fill in the empty brackets but dont change the outline. thanks! A+ Computer Science Lab Goal This lab was designed to teach you how

Just fill in the empty brackets but dont change the outline. thanks! image text in transcribed
image text in transcribed
image text in transcribed
A+ Computer Science Lab Goal This lab was designed to teach you how to use a while loop. Lab Description Remove all instances of the specified removal letter from the original sentence. LETTER REMOVER Sample Data: I am Sam I ama Files Needed LetterRemover.java qwertyqwertyqwerty a abababababa b abaababababa x Sample Output I am Sam I am letter to remove a I m SmIm algorithm help int loc = x . indexOf ( y ) while there are more letters to remove ssssSSssxssssesssssesss-letter to remove s qwertyqwertyqwerty letter to remove a qwertyqwertyqwerty take out the letter substring locx.indexof (y) abababababa letter to remove b abaababababaletter to remove x abaababababa import static java.lang.System.; public class LetterRemover private String sentence; private char lookFor public LetterRemover) //call set /add in second constructor public void setRemover(String s, char rem) sentence s lookFor rem public String removeLetters0 String cleaned sentence return cleaned; public String toString return sentence+etter to remove"lookFor import static java.lang.System.*; public class LetterRemoverRunner public static void main( String args) //add test cases

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 Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

More Books

Students also viewed these Databases questions