-
Help C Language
<span style="color: rgba(255, 255, 255, 0.7); font-family: Whitney, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; white-space: pre-wrap; background-color: rgb(54, 57, 62);">I am having great difficulties in the preparation of the following work, I would like you to help me in preparing it, because it is the first time I am programming in C language and I am having some urgency in doing this work.
Thanks for listening.
Description:
Consider the existence of the file "password.txt" that contains all the password of the company "Electrical Components S.A.". This work consists in the development of a program that allows the management of company passwords through the following functionalities:
1- Enter new password 2- Recover password, given the user's email 3- Check password security 4- Exit
The data is stored in a text file, by lines. In each line should be written the email followed by a space and the password.
Example: [email protected] DDw34! Xyz
Option 1 The user and the password to be added to the file must be requested. If this email already exists, the message "existing email" should be written and the program should return to the menu.
Option 2 To recover the password, the user must be asked for his email and the password must be written on the monitor. If there is no email address, the message "email not found!" Should be written.
Option 3 List all emails with unsecured passwords and reason. It is considered a secure password that has more than 8 characters, must contain a capital letter, a digit, and include one of the following characters ('#', '%', '&', '*', '! ').
Option 4 Quit the program.</span>
-
So what have you done so far, apart from find several forums to post your homework on?
https://cboard.cprogramming.com/c-pr...uncements.html
A development process
Start small, compile and test often.
> Option 1 The user and the password to be added to the file must be requested.
This is your first version of the program.
Here you don't care about duplicates, just get something working.
> If this email already exists, the message "existing email" should be written and the program should return to the menu.
This is your second version of the program.
-
I started by creating the menu as it asks in the statement and then I asked my teacher how I should continue and she told me how timely to use files and strings and from there I saw that I was not going to get it because of my difficulties and my problem is that it is the first time that I am dealing with programming and at the beginning until I managed to get away but when the part of the files and strings arrived I could not understand the matter and without this knowledge I can not do the work.if I could help I was very grateful because without this work I will not be able to pass the discipline
I started by creating the menu as it asks in the statement and then I asked my teacher how I should continue and she told me how timely to use files and strings and from there I saw that I was not going to get it because of my difficulties and my problem is that it is the first time that I am dealing with programming and at the beginning until I managed to get away but when the part of the files and strings arrived I could not understand the matter and without this knowledge I can not do the work.if I could help I was very grateful because without this work I will not be able to pass the discipline
-
-
1 Attachment(s)
This is what I was able to do.Attachment 15339
This is what I was able to do.
-
1. Post code as text between code tags. Fuzzy pictures just don't cut it.
Does it compile?
Remember, edit compile test.
Even if you have to write one line at a time.
Writing a whole load of code, getting lots of error messages and then dumping the whole lot on a forum for someone else to fix isn't a long term strategy that will work for you.