Computers and Technology

CIS 3360–Security in ComputingSpring 2020HW #2Checksum (100points)In this assignment you'll write a program that calculates the checksum for the text in a file. Your program will take two command line parameters. The first parameter will be the name of the input file for calculating the checksum. The second parameter will be for the size of the checksum (8, 16, or 32 bits).The program must generateoutput to the console (terminal) screen as specified below.

Command Line Parameters

1.Your programmust compile and run from the command line.
2.The program executable must be named "checksum" (all lower case, no spaces or file extension).
3.Input the required file names as command line parameters. Your program may NOT prompt the user to enter the file names. The first parametermust be the name of the file used for calculating the checksum, as described below. The secondparametermust be the size, in bits, of the checksum. The sample run command near the end of this document contains an example of how the parameters will be entered.
4.Your program should open thetwo files, echo the processed input to the screen, make the necessary calculations, and then outputthe ciphertext to the console (terminal) screenin the format described below.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, qxchung7310
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, legendman27
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, carter1809
Choose the answers that best complete each sentence. on average, are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, Siris420
Plz ( which is an example of a good url?
Answers: 1
Do you know the correct answer?
CIS 3360–Security in ComputingSpring 2020HW #2Checksum (100points)In this assignment you'll write a...

Questions in other subjects: