Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that askes the user to enter a password. the password should not contain spaces. After your program reads the password from keyboard,

image text in transcribed
Write a program that askes the user to enter a password. the password should not contain spaces. After your program reads the password from keyboard, it will call a special function named encrypt(char[]) which encrypts the password according to the following rules: (assume the password is small letters) 1. reverse the word. 2. if it contains the character 's' then replace it with $ 3. if it contains the character 'a' then replace it with@ 4. if it contains the character 'o' then replace it with 'O' (zero) The encrypted password should be stored in a file named login.txt

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

How would you restructure LearnlnMotion's selection process?

Answered: 1 week ago

Question

2. Employees and managers participate in development of the system.

Answered: 1 week ago