Question: Password encoder Passwords are encoded before they are stored in the database. Write a program that takes a simple password and a key, and encodes

Password encoder
Passwords are encoded before they are stored in the database. Write a program that takes a simple password and a key, and encodes the password. All the consonants, NOT the vowels, will increase to the character specified by the key. If any character is more than 'z' after increasing, it will restart at 'a'. Then the whole string is reversed and stored in the database. You can assume all the characters are lowercase.
Ex: If the input is:
password
4
the output is:
hvoawwat
THE PICTURE POSTED SHOWS THE OUTPUTS THAT NEED TO BE SATISFIED
Start Code:
#include
#include
using namespace std;
int main(){
/* Type your code here. */
return 0;
}
Password encoder Passwords are encoded before

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!