Password modifier: Many user-created passwords are simply or have invalid characters. Write a program that that read original passwords from the file Password.txt, update them by doing the following changes: 1) Remove all non-alpha characters 2) Replace the first letter o with @ 3) Replace the second letter o with $ The last is to write the updated passwords to the file UpdatePassword.txt. If the file Password.txt is happy? My password! Hello, world7 You go word! We will have the file UpdatePassword.txt with the following content: happy Mypassw@rd Hell@w$rld Y@ug$word

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question

please answer within 30 minutes....

Java please
Password modifier:
Many user-created passwords are simply or have invalid characters. Write a program that that
read original passwords from the file Password.txt, update them by doing the following
changes:
1) Remove all non-alpha characters
2) Replace the first letter o with @
3) Replace the second letter o with $
The last is to write the updated passwords to the file UpdatePassword.txt.
If the file Password.txt is
happy?
My password!
Hello, world7
You go word!
We will have the file Update Password.txt with the following content:
happy
Mypassw@rd
Hell@w$rld
Y@ug$word
Transcribed Image Text:Java please Password modifier: Many user-created passwords are simply or have invalid characters. Write a program that that read original passwords from the file Password.txt, update them by doing the following changes: 1) Remove all non-alpha characters 2) Replace the first letter o with @ 3) Replace the second letter o with $ The last is to write the updated passwords to the file UpdatePassword.txt. If the file Password.txt is happy? My password! Hello, world7 You go word! We will have the file Update Password.txt with the following content: happy Mypassw@rd Hell@w$rld Y@ug$word
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT