Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIST 1400 Computer programming assignment Modify programs 9&11, which were to experiment with a 1337 conversion algorithm/program. For this program, you must ask the user

CIST 1400 Computer programming assignment
image text in transcribed
image text in transcribed
Modify programs 9&11, which were to experiment with a 1337 conversion algorithm/program. For this program, you must ask the user to enter a short phrase which you will "leet. If the user enters nothing at the prompt, ie, a carriage return only output a termination message. All of the previous guidelines and restrictions about how to display the 1337 characters apply from program M9 & 11. Refer to program #9 and #11's assignment sheets to get the full description of output requirements. You must convert characters from AtoZ and a to z correctly and generate appropriate output for characters that can't be converted, you must also convert the nommal space to the same character, add the period, comma, and apostrophe as well. These wil be the only additions to your translation matrix. You can make a copy of program 9 or 11 so you don't have to start from scratch like this at the Loki prompt (assuming your program 11 file is called NetID LeetLoop.java). You would type what is underlined, likewise for This will create a file called NetID LeetWerdz.java that is a copy of your NetID Leetloop.java fie. Now you can use to edit NetID LeetWerdz.java and have all of your previous code available to you to modify This wilmake writing your code easier YouTl obviously need to make sure that you change the class name in your new file. Use arrays to make our simple one character LeetSpeak converters handle short phrases. Gain more familiarity with String and Character functions. Embed a switch statement inside of a looping structure. Modify existing code to extend the functionality of a Output a text message if the user does not provide any input and terminate the application. Name your class NetID LeetWerdz and source file NetID. LeetWerdz java, using your UNO NetID. For example, for Vulcan account jsmith,they would create a class jsmith LeetKerdz place in file S17 1400-101 progXC ensuring that capitalization is correct Since you will be attempting to match char values, make sure you make the appropriate kind of test in the switch t's case labels. You should explore Character.toUpperCase() (or Character.toLowerCase0 in order to save time on the switch statement. But remember that you need to preserve the user's original input unchanged One way to complete this assignment is to utilize a both a character and a string array I would recommend reading the javadocs on String and Character as a starting point, but write the methods yourself, do not use existing library Use an array to send characters through a translation matrix Store those results in an appropriate data structure, and then print them both (original message and converted message) to the screen as shown in the examples below. Remember that character "char variables cannot hold more than 1 char at a time. While m fits a char has at least 4 in it, this would need to be placed in a String variable, you need to find a solution to this problem. You may do this as one program/class as M9 or split the project into two classes. If two classes, turn in the code for both the driver and the work class. Remember that your program requires a complete, digitally signed Honor Pledge to be graded. Name your class according tothe Class and File Name" section above. If you lost points on program 9 or 11 for mis-converting characters, you will lose the same points on this assignment unless you fix your errors. You must use this semester's translation matrix! When converting your input to 1337 code, this program must follow the output requirements already set forth in program a9 and a11 earlier this Make sure to have appropriate spacing, etc. You must use a switch statement and not a series of nested if/else statements to implement this program. Failure statement to implement the solution wilresult in your program not being graded. to use a switch You may use any material covered through lecture 22 and beyond provided you clear it with your instructor. Page 1 of 2 Modify programs 9&11, which were to experiment with a 1337 conversion algorithm/program. For this program, you must ask the user to enter a short phrase which you will "leet. If the user enters nothing at the prompt, ie, a carriage return only output a termination message. All of the previous guidelines and restrictions about how to display the 1337 characters apply from program M9 & 11. Refer to program #9 and #11's assignment sheets to get the full description of output requirements. You must convert characters from AtoZ and a to z correctly and generate appropriate output for characters that can't be converted, you must also convert the nommal space to the same character, add the period, comma, and apostrophe as well. These wil be the only additions to your translation matrix. You can make a copy of program 9 or 11 so you don't have to start from scratch like this at the Loki prompt (assuming your program 11 file is called NetID LeetLoop.java). You would type what is underlined, likewise for This will create a file called NetID LeetWerdz.java that is a copy of your NetID Leetloop.java fie. Now you can use to edit NetID LeetWerdz.java and have all of your previous code available to you to modify This wilmake writing your code easier YouTl obviously need to make sure that you change the class name in your new file. Use arrays to make our simple one character LeetSpeak converters handle short phrases. Gain more familiarity with String and Character functions. Embed a switch statement inside of a looping structure. Modify existing code to extend the functionality of a Output a text message if the user does not provide any input and terminate the application. Name your class NetID LeetWerdz and source file NetID. LeetWerdz java, using your UNO NetID. For example, for Vulcan account jsmith,they would create a class jsmith LeetKerdz place in file S17 1400-101 progXC ensuring that capitalization is correct Since you will be attempting to match char values, make sure you make the appropriate kind of test in the switch t's case labels. You should explore Character.toUpperCase() (or Character.toLowerCase0 in order to save time on the switch statement. But remember that you need to preserve the user's original input unchanged One way to complete this assignment is to utilize a both a character and a string array I would recommend reading the javadocs on String and Character as a starting point, but write the methods yourself, do not use existing library Use an array to send characters through a translation matrix Store those results in an appropriate data structure, and then print them both (original message and converted message) to the screen as shown in the examples below. Remember that character "char variables cannot hold more than 1 char at a time. While m fits a char has at least 4 in it, this would need to be placed in a String variable, you need to find a solution to this problem. You may do this as one program/class as M9 or split the project into two classes. If two classes, turn in the code for both the driver and the work class. Remember that your program requires a complete, digitally signed Honor Pledge to be graded. Name your class according tothe Class and File Name" section above. If you lost points on program 9 or 11 for mis-converting characters, you will lose the same points on this assignment unless you fix your errors. You must use this semester's translation matrix! When converting your input to 1337 code, this program must follow the output requirements already set forth in program a9 and a11 earlier this Make sure to have appropriate spacing, etc. You must use a switch statement and not a series of nested if/else statements to implement this program. Failure statement to implement the solution wilresult in your program not being graded. to use a switch You may use any material covered through lecture 22 and beyond provided you clear it with your instructor. Page 1 of 2

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

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions