Create a program that simulates a simple registration and login function. Your program should access, write, edit and update data in the credentials.csv file.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question

Create a program that simulates a simple registration and login function. Your program should access, write, edit and update data in the credentials.csv file.

Note: Create your own credentials.csv file. Add one record having the following value:

            Juan Dela Cruz, January-1-1995, jdc_000@yahoo.com, Admin, 123456

STEP 1: At the start of the program execution, it should prompt the user of the following options:

  1. Register
  2. Login

 

STEP 2: If the user chose option #1, the program will prompt the user on the following fields:

 

  1. First Name
  2. Middle Name
  3. Last Name
  4. Date of birth
  5. Email address
  6. Username
  7. Password
  8. Confirm Password

 

STEP 2a: Password and Confirm Password should match, thus, incorrect inputs on those 2 fields should not be accepted.

STEP 2b: After filling up the fields correctly, the program will then display the following:

  1. Display Profile
  2. Reset Password
  3. Log-out

STEP 2c: Options #1 - Display Profile and #2 - Reset Password’s functions are optional. No need to code it in the meantime. Option #3 – Log out, once selected, should redirect the user to STEP 1’s display.

STEP 3: If the user chose option #2, the program will prompt the user on the following fields:

  • Username
  • Password

STEP 3a: The username and password should match with the records present in the credentials.csv, which means, the program should be able to validate the user’s input with the data in the file. Assuming the user incorrectly entered the wrong password, the program should return an error message corresponding to that action.

STEP 3b: If the user successfully logged in to his/her account, it will show the same display as that of STEP 2b. Likewise, the only functioning option in that display is Option #3 – Log out, which when selected, will redirect the user to STEP 3’s display.

STEP 4:  Save your program and the credentials.csv and add it in a compressed/zip file named Module5_<GroupName-SectionAndStrand>

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,