100% Guaranteed Results


Assignment 1 (CS458) Solved
$ 24.99
Category:

Description

5/5 – (1 vote)

This assignment is done individually. You can use C/C++/Java/Python to implement this assignment.
Goal :
1.Learn how to write and use makefile (C/C++/Java): http://www.delorie.com/djgpp/doc/ug/larger/makefiles.html (C) http://www.cs.swarthmore.edu/~newhall/unixhelp/javamakefiles.html (Java)
2. Implement the autokey cipher studied in the class.
Description:
In this assignment, you will implement the autokey cipher studied in the class, to encrypt and decrypt files containing only lower-case letters a-z. The file does not contain spaces, tabs, and newlines. You can assume that the file contains less than 1000 characters. The key is “security”, which will be hardcoded in your program. Your executable will take the following arguments.
– inputfile: input file name
– outputfile: output file name
– 1/0: encryption/decryption
Please note that the file name does not need to be end with .txt (e.g., in, in.txt, in1, etc. are valid file names).
If you use C, your Makefile must give the executable code the name auto. If you use Java, your Makefile will generate a file Auto.class. If you use python, your python file should have name auto.py.
For example, if you use C, your code will execute in the following form:
./auto <inputfile> <outputfile> 1/0

– auto in out 1: encrypt file “in” using the autokey cipher with key “security” and store the result in file “out”.
– auto out in1 0: decrypt file “out” using the autokey cipher with key “security” and store the result in file “in1”.
After executing the above commands, the file content in files “in” and “in1” should be the same.
Submission guideline

• You need to hand in your source code and Makefile (C/C++/Java) electronically (please do not submit .o or executable code). Your code should compile and run correctly on remote.cs.binghamton.edu.
• Submit one README file (text file, do not submit a .doc file) which contains  You name and email address.
§ Whether your code was tested on remote.cs.binghamton.edu.
§ How to execute your program.

• Place the source code, the readme and Makefile under one directory with a unique name (such as p1-[userid] for assignment 1, e.g. p1-pyang).

• Tar the contents of the above directory using the following command.
tar –cvf [directory_name].tar [directory_name]
E.g. tar -cvf p1-pyang.tar p1-pyang/

Submit the tared file created through brightspace.binghamton.edu.
Grading guideline
• Correctness (C/C++/Java): 88’
• Correctness (Python): 96’
• Readme, correct format of execution: 4’
• Makefile (C): 8’

Students should also read the Watson Faculty Letter to students. Here is the link to it:
https://docs.google.com/document/d/1J-
9taFB4Vz_vu9tyPwphFFzGwmV6yos5/edit?usp=sharing&ouid=101123343507519900554&rtpo f=true&sd=true

Reviews

There are no reviews yet.

Be the first to review “Assignment 1 (CS458) Solved”

Your email address will not be published. Required fields are marked *

Related products