Question: PICTURE SHOWS error when submitting for grading what needs to be fixed on this code??? please look at code and pictures posted. Thank You! #include
PICTURE SHOWS error when submitting for grading what needs to be fixed on this code??? please look at code and pictures posted. Thank You!
#include
#include
using namespace std;
#define MAXLEN
bool isvowelchar c
return c a c e c i c o c u;
void encodepasswordchar password int key
int len strlenpassword;
for int i ; i len; i
if isvowelpasswordi
passwordipasswordia keya;
for int i ; i len ; i
char temp passwordi;
passwordi passwordlen i ;
passwordlen i temp;
cout password endl;
int main
char passwordMAXLEN;
int key;
cin password;
cin key;
encodepasswordpassword key;
return ;
CODE MUST SATISFY THESE OUTPUTS:
input:
password
output:
hvoawwat
input:
mybirthday
output:
kaptfdinky
input:
secretpzwrd
output:
drwzpterces
input:
onetwothree
output:
eerhtowteno
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
