Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DO NOT USE BUFFEREDREADER. PLEASE USE SCANNER INSTEAD!!!!! ALSO USE PRINTSTREAM IF NEEDED! I) Many online and offline services are associated with a user identity

DO NOT USE BUFFEREDREADER. PLEASE USE SCANNER INSTEAD!!!!!

ALSO USE PRINTSTREAM IF NEEDED!

image text in transcribedimage text in transcribedimage text in transcribed

I) Many online and offline services are associated with a user identity and credential. In this assignment, you will create a rudimentary (and highly insecure) database for the storage of only the user generated identities. This program will have the following behaviors: A) Prior to prompting for a new username, the existing list of usernames should be read and loaded to an array 1) Read the list from "users.txt", a prompt is not necessary, but the filename should be displayed. 2) The existing list of usernames should be written to the console. Upon prompting, the following checks must be made against an attempt to create a new username. 1) Duplicate usernames should be disallowed, and the usernames are not case sensitive. 2) Usernames must be between 8 and 20 characters in length. 3) The username can only contain letters between "A" to "Z" OR "a" to "z". 4 ) If the rules from A-Care violated, an appropriate error message informing the user should be displayed. B) i ) The error message should display *all* the reasons why the username is not correct. ii) Do not display merely the first problem the program identifies (unless, of course, the first problem is the only problem) C) When a valid username is provided, this username should be written to an array and printed back to console. Finally, the "users.txt" database should be updated such that the new username appears should the program be run again D)

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago