Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 ( f ) ( 1 6 marks ) The manager of the restaurant is concerned about security so the developer has added a

Q2(f)(16 marks)
The manager of the restaurant is concerned about security so the developer has added a hashing algorithm to encrypt the names before they are stored. This code is implemented in the function below:
def enc(t,c) :
e=?''
for ch in t :
if 'a'ch'z':
e=e+c[ord(ch)-ord('a')]
else:
e=e+ch
return e
Q2(f)(i)(8 marks)
The code above breaks a number of the guidance rules that you have been taught about in this module.
Identify four distinct rules that have been broken and explain why breaking this rule may be a problem.
image text in transcribed

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

Use the figure shown to determine the following. B D . BF U BC

Answered: 1 week ago

Question

How flying airoplane?

Answered: 1 week ago