i need help with this i dont really have a clue on what to really do but heres the question
Write an application that, depending on the command-line input:
reads several lines of text from the keyboard and encodes the text according to the following principle:
- a becomes 1
- b becomes 2
- c becomes 3
- ...
- after each letter 0 is inserted
- words are to be separated by '-'
For example the string ``java programming'' should become:
``1001022010-16018070180101301309014070''
Display the result of the encoding of the screen and write the result to file.
reads in a file, supplied by the user, containing an encoding. The program should decode the file and display the result of this process on the screen.
Nested if-statements will not be highly appreciated.question is finding a suitable algorithm for the encoding/decoding


Reply With Quote


Bookmarks