Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using only R programming : 2. You are tasked to establish a secret communication procedure for members of your team. You choose to encode the

Using only R programming :image text in transcribed

2. You are tasked to establish a secret communication procedure for members of your team. You choose to encode the messages using the A1226 cypher, by which each alphabet letter is replaced by its number in the alphabet, i.e., A is 1, B is 2, C is 3, ... and Z is 26. a) First, produce the letter (A to Z) and number (1 to 26) character vectors. (2 marks) b) Using the above vectors, character substitution, and a control structure, encode the following message: "h-i-b-y-e" Note that for simplicity, the message must not contain any repeated letters as a rule. (3 marks) c) Wrap your code from 2(b) in a function that can receive and cypher any message. Test your code with a unique message. (5 marks) [TOTAL 10 MARKS]

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions