Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please just write this function using c++ (don't use iterator ) plz read carefully before solving Step 1: In this step the password characters will

please just write this function using c++ (don't use iterator ) plz read carefully before solving

image text in transcribed

Step 1: In this step the password characters will be inserted into list object to be ready for the coming encryption stages. (objects to use only list) Step 2: In this step, the first and last characters of the password (in the list) be reversed. (e.g Hello oell) (objects to use only list) Step 3: In this step, the ASCII value of the characters will be changed and the new characters (after changing the ASCII) will be in original order in the list. The new ASCII value for each character will be calculated by adding to the current ASCII value the least significant digit from the ASCII of the next character. (e.g. After step 2, the password is: oella with ASCII values: o: 111, e: 101, 1: 108, 1: 108, H: 72 The new ASCII values will be: p: 111+1, m: 101+8, t: 108+8, n: 108+2, H: 72 The password will be : pmtn Note: The ASCII for the last character wil not be changed because there is no charac next to last one. (objects to use list and stack OR list and queue OR both) give explanation for your choice. Step 4: Finally, in this step, the characters in even positions will be reversed and you keep the characters in the odd positions in their original order. (e.g. After step 2, the password is : pmtnH so after applying step 4 the password will be :Hmtnp (objects to use list and stack OR list and queue OR both) give explanation for your choice. encryptPassword(string): // (12 pt) this function receives the original password and return it after encryption. The encryption procedure is described below. in the wall isValid DESCHIK*** id

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

Students also viewed these Databases questions