Wednesday, February 20, 2013

Progress on my Program(Part 1)

These past two weeks I have been working quite a bit on learning the java programming language and working on the code and interface for key parts of my program. I have also made a major decision regarding the final product that will be produced by the end of this semester.

The major decision I have made regarding my program is that I will not be coding a GUI into the program. My main reasoning behind this decision is the amount of time it will take, not only to further research how to make one but also the time it will take to design and then build the GUI. From the research that I have done thus far on the subject it is apparent to me that it will take quite a bit more research to find the information needed for me the be able to start making GUI's. The other problem with the research about GUI's is there may not even be the information I am looking for available to me. The other issue is the amount of time that will have to be put into first designing the layout of the GUI and then coding it. Due to the amount of time those two tasks will take, I don't think that I would be able to make significant progress on the GUI before the semester is over.

Instead of a GUI, I think that making the program command-line based would be much less time consuming and I am sure that it can be as effective and user friendly as a GUI. The only thing I need to make sure of is to make the commands available to the user very clear and make sure to check the final product thoroughly for any sections of the program which may not be as user friendly as I would like.

I have made quite a bit of progress in learning code that has helped with the coding of  some of the main functions of my program. The functions that I have been able to write code for include reading a line of text from a document and being able to write records to a file.

The first thing that I learned how to do was have my program read a line a text from a text document and display the result on the screen. Below is a screenshot showing that I can indeed have a program read from a file. The text file that I have opened contains the text that the program is to read. In the command prompt window I also have open in this screenshot shows the result of the simple program I wrote to demonstrate that the code is functional. The main benefit to having this ability in my program is that it will allow the user to view their previously store passwords.


The next function that I was able to learn how to do was take a line that the user enters into a program and store that line in a text file. This function will make it so that when the user goes to add a new entry into the program, their entry and password are stored and are therefore able to be accessed at a later date. Below are three pictures showing this function working properly. The first picture is of the text file before the write function is used to edit the file. The second picture is of the command prompt, first instructing a user to input the text they want written to the file, then telling the user that the text they entered has been written to file. The final picture is of the text file after the function has been used on it, as you can see the text that was entered into the program via the command prompt has been added to the text in the text file









1 comment:

  1. This is a good post, and you have a wonderful amount of detail. I like that you broke it up into two parts (just make sure to add a space between your parenthesis and the word that comes before it).

    Because some readers are newbies to programming, can you explain what GUIs are again? I do really like that you proved the program worked and provided screen shots to show it.

    ReplyDelete