Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this in Java ASAP, please! Please use the exact names provided in the instructions, will upvote!! CSE1322 Assignment 2 Background: For this assignment, you

Need this in Java ASAP, please! Please use the exact names provided in the instructions, will upvote!! image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

CSE1322 Assignment 2 Background: For this assignment, you will code a simple encryption application. The application encrypts words by mapping a list of the twenty-six alphabetic characters to a list of twenty-six corresponding symbols using the lists indices. 4 5 6 7 A 0 1 2 3 ! @ # $ symbols list & 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ? {}( : A 1 -> + V ->; i -> ) S -> ] So, Elvis would encrypt to: ^+;)] Your task: You will start with the following class definition: Your task: You will start with the following class definition: C# Java using System; using System.Collections.Generic; import java.util.Scanner; import java.util.ArrayList; class Encryption { List symbols = new List0; List alphabets = new List0; class Encryption { ArrayList symbols = new ArrayList0; ArrayList alphabets = new ArrayList(); public Encryption() public Encryption { symbols.Add("!'); symbols.Add('@'); symbols.Add('#'); symbols.Add('$'); symbols.Add("""); symbols.Add('&'); symbols.Add("*"); symbols.Add('(); symbols.Add(): { symbols.add('!'); symbols.add('@'); symbols.add('#'); symbols.add('$'); symbols.add("^'); symbols.add('&'); symbols.add('*'); symbols.add(0); symbols.add(): { symbols.Add('!'); symbols.Add('@'); symbols.Add('#'); symbols.Add('$'); symbols.Add(""'); symbols.Add('&'); symbols.Add("*'); symbols.Add('(); symbols.Add(')'); symbols.Add('_'); symbols.Add('-'); symbols.Add(+'); symbols.Add('='); symbols.Add("?'); symbols.Add(','); symbols.Add('{'); symbols.Add('}'); symbols.Add(' '); symbols.Add('1'); symbols.Add('/'); symbols.Add(''); symbols.Add(';'); symbols.Add(':'); symbols.Add(':'); symbols.Add(''); { symbols.add('!'); symbols.add('@'); symbols.add('#'); symbols.add('$'); symbols.add("^'); symbols.add('&'); symbols.add("*"); symbols.add(0); symbols.add()'); symbols.add('_'); symbols.add('-'); symbols.add('+'); symbols.add("='); symbols.add("?'); symbols.add(','); symbols.add({'); symbols.add("}'); symbols.add(D); symbols.add('1'); symbols.add('/'); symbols.add('1'); symbols.add(':'); symbols.add(':'); symbols.add('.'); symbols.add(''); for(char letter='a';letter

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions