Thread: Help C Language

  1. #1
    Registered User
    Join Date
    Jan 2018
    Posts
    3

    Help C Language

    &nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgba(255, 255, 255, 0.7); font-family: Whitney, &quot;Helvetica Neue&quot;, 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: Company22@gmail.com 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 ('#', '%', '&amp;', '*', '! ').

    Option 4 Quit the program.</span>

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,625
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2018
    Posts
    3
    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

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,625
    Post your latest effort.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jan 2018
    Posts
    3
    This is what I was able to do.Help C Language-ajudaaaa-jpg
    This is what I was able to do.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,625
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Importance of english language in programming language
    By Lea Pi in forum General Discussions
    Replies: 10
    Last Post: 04-17-2015, 07:43 AM
  2. Is C++ or C language is a high Level language?
    By uthmankhale in forum C++ Programming
    Replies: 5
    Last Post: 08-25-2011, 06:00 PM
  3. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM
  4. C Language And A Scripting Language
    By DarkSpy in forum C Programming
    Replies: 9
    Last Post: 06-26-2003, 08:05 AM
  5. Computer Language VS Spoken Language
    By Isometric in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 02-04-2002, 03:47 PM

Tags for this Thread