question archive Homework 2 - Permutation Cipher in C++ The permutation ciphers are used to generate a ciphertext (encrypted text) by re-arranging the position of the letters in a given plaintext

Homework 2 - Permutation Cipher in C++ The permutation ciphers are used to generate a ciphertext (encrypted text) by re-arranging the position of the letters in a given plaintext

Subject:Computer SciencePrice:19.86 Bought3

Homework 2 - Permutation Cipher in C++ The permutation ciphers are used to generate a ciphertext (encrypted text) by re-arranging the position of the letters in a given plaintext. How does it work? 1. Select the block size (n) and a permutation. 2. Divide a given plaintext into blocks of n letters and use ‘x’ as padding, if necessary. 3. Apply a permutation to each block and generate the encrypted ciphertext. For example, for n = 4 and permutation of (2, 1, 4, 3) Unencrypted plaintext is gentlemen do not read each other’s mail [1] 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 gent leme n do not rea d ea ch o ther ’s m ailx 2143 2143 2143 2143 2143 2143 2143 2143 2143 2143 egtn elem nod n to r ae dae hco htre s’m iaxl Encrypted ciphertext is egtnelem nodn tor ae daehco htres’m iaxl The program needs to get the following information from the user: • To encrypt: a text file that includes the plaintext, and a block size and the permutation information via standard input (keyboard). • To decrypt: a binary file that includes an encrypted ciphertext, and a block size and the permutation information via standard input (keyboard). Here's what a sample run should look like: > ./PermCipher Usage: ./PermCipher option -i InputFileName -o OutputFileName Options: -e Encrypt -d Decrypt > ./PermCipher -e -i PlaintextFile -o CiphertextFile Welcome to the Permutation Cipher Selected Mode: Encrypt Input File: PlaintextFile Output File: CiphertextFile Please enter the block size (2-8) and the permutation (e.g., 4 2413): 4 2143 Encrypted ciphertext file: egtnelem nodn tor ae daehco htres’m iaxl > ./PermCipher -d -i CiphertextFile -o PlaintextFile Welcome to the Permutation Cipher Selected Mode: Decrypt Input File: CiphertextFile Output File: PlaintextFile Please enter the block size (2-8) and the permutation (e.g., 4 2413): 4 2143 Decrypted ciphertext file: gentlemen do not read each other’s mail The program should be able to process up to 8 characters at each block with a minimum of 2 characters. Submit your makefile, source code (encrypt.h encrypt.cpp, decrypt.h, decrypt.cpp, main.cpp) and test files to your BitBucket repository csci221-HW02. [1] 
 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

salsubaie@cloud:~$ ls

'cat id_rsa.pub' exam1 InputOutputPrograms myExam

'cat id_rsa.pub.pub' HW0 key Project1

'cd .ssh' HW01 key.pub randomNumbers

'cd .ssh.pub' HW02 Makefile.txt TESTHW02

salsubaie@cloud:~$ make

make: *** No targets specified and no makefile found. Stop.

salsubaie@cloud:~$ make g++ -Wall -pedantic -g -00 -std=c++11 -o Makefile.txt encrypt.cpp decrypt.cpp main.cpp

make: invalid option -- 'a'

make: invalid option -- 'c'

make: invalid option -- 'g'

make: invalid option -- '0'

make: invalid option -- '0'

make: invalid option -- '='

make: invalid option -- 'c'

make: invalid option -- '+'

make: invalid option -- '+'

make: invalid option -- '1'

make: invalid option -- '1'

Usage: make [options] [target] ...

Options:

-b, -m Ignored for compatibility.

-B, --always-make Unconditionally make all targets.

-C DIRECTORY, --directory=DIRECTORY

Change to DIRECTORY before doing anything.

-d Print lots of debugging information.

--debug[=FLAGS] Print various types of debugging information.

-e, --environment-overrides

Environment variables override makefiles.

--eval=STRING Evaluate STRING as a makefile statement.

-f FILE, --file=FILE, --makefile=FILE

Read FILE as a makefile.

-h, --help Print this message and exit.

-i, --ignore-errors Ignore errors from recipes.

-I DIRECTORY, --include-dir=DIRECTORY

Search DIRECTORY for included makefiles.

-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.

-k, --keep-going Keep going when some targets can't be made.

-l [N], --load-average[=N], --max-load[=N]

Don't start multiple jobs unless load is below N.

-L, --check-symlink-times Use the latest mtime between symlinks and target.

-n, --just-print, --dry-run, --recon

Don't actually run any recipe; just print them.

-o FILE, --old-file=FILE, --assume-old=FILE

Consider FILE to be very old and don't remake it.

-O[TYPE], --output-sync[=TYPE]

Synchronize output of parallel jobs by TYPE.

-p, --print-data-base Print make's internal database.

-q, --question Run no recipe; exit status says if up to date.

-r, --no-builtin-rules Disable the built-in implicit rules.

-R, --no-builtin-variables Disable the built-in variable settings.

-s, --silent, --quiet Don't echo recipes.

-S, --no-keep-going, --stop

Turns off -k.

-t, --touch Touch targets instead of remaking them.

--trace Print tracing information.

-v, --version Print the version number of make and exit.

-w, --print-directory Print the current directory.

--no-print-directory Turn off -w, even if it was turned on implicitly.

-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE

Consider FILE to be infinitely new.

--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu

Report bugs to [removed] GNU Make 4.1

# Built for x86_64-pc-linux-gnu

# Copyright (C) 1988-2014 Free Software Foundation, Inc.

# License GPLv3+: GNU GPL version 3 or later

# This is free software: you are free to change and redistribute it.

# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Sat Oct 2 21:51:05 2021

# Variables

# default

.SHELLFLAGS := -c

# environment

SHELL = /bin/bash

# environment

_ = /usr/bin/make

# environment

GNUMAKEFLAGS :=

# environment

LESSOPEN = | /usr/bin/lesspipe %s

# environment

SSH_CONNECTION = 99.20.113.125 51493 66.228.53.183 22

# environment

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

# environment

SSH_TTY = /dev/pts/1

# environment

XDG_RUNTIME_DIR = /run/user/1095

# default

.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load

# environment

LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

# environment

PWD = /home/salsubaie

# environment

HOME = /home/salsubaie

# environment

LESSCLOSE = /usr/bin/lesspipe %s %s

# environment

LOGNAME = salsubaie

# default

MAKECMDGOALS := g++ encrypt.cpp decrypt.cpp main.cpp

# environment

SHLVL = 1

# environment

XDG_SESSION_ID = 935

# environment

USER = salsubaie

# default

.VARIABLES :=

# environment

SSH_CLIENT = 99.20.113.125 51493 22

# environment

MAIL = /var/mail/salsubaie

# environment

S_COLORS = auto

# default

.RECIPEPREFIX :=

# environment

LANG = en_US.UTF-8

# environment

TERM = xterm

# variable set hash-table stats:

# Load=26/1024=3%, Rehash=0, Collisions=0/35=0%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# No files, no impossibilities in 0 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:

g++:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

main.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

encrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

decrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# files hash-table stats:

# Load=4/1024=0%, Rehash=0, Collisions=0/4=0%

# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 6 / storage = 54 B / avg = 9 B

# current buf: size = 8162 B / used = 54 B / count = 6 / avg = 9 B

# strcache performance: lookups = 10 / hit rate = 40%

# hash-table stats:

# Load=6/8192=0%, Rehash=0, Collisions=0/10=0%

# Finished Make data base on Sat Oct 2 21:51:05 2021

salsubaie@cloud:~$ make g++ -Wall -pedantic -g -00 -std=c++11 -o Makefile.txt encrypt.cpp decrypt.cpp main.cpp

make: invalid option -- 'a'

make: invalid option -- 'c'

make: invalid option -- 'g'

make: invalid option -- '0'

make: invalid option -- '0'

make: invalid option -- '='

make: invalid option -- 'c'

make: invalid option -- '+'

make: invalid option -- '+'

make: invalid option -- '1'

make: invalid option -- '1'

Usage: make [options] [target] ...

Options:

-b, -m Ignored for compatibility.

-B, --always-make Unconditionally make all targets.

-C DIRECTORY, --directory=DIRECTORY

Change to DIRECTORY before doing anything.

-d Print lots of debugging information.

--debug[=FLAGS] Print various types of debugging information.

-e, --environment-overrides

Environment variables override makefiles.

--eval=STRING Evaluate STRING as a makefile statement.

-f FILE, --file=FILE, --makefile=FILE

Read FILE as a makefile.

-h, --help Print this message and exit.

-i, --ignore-errors Ignore errors from recipes.

-I DIRECTORY, --include-dir=DIRECTORY

Search DIRECTORY for included makefiles.

-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.

-k, --keep-going Keep going when some targets can't be made.

-l [N], --load-average[=N], --max-load[=N]

Don't start multiple jobs unless load is below N.

-L, --check-symlink-times Use the latest mtime between symlinks and target.

-n, --just-print, --dry-run, --recon

Don't actually run any recipe; just print them.

-o FILE, --old-file=FILE, --assume-old=FILE

Consider FILE to be very old and don't remake it.

-O[TYPE], --output-sync[=TYPE]

Synchronize output of parallel jobs by TYPE.

-p, --print-data-base Print make's internal database.

-q, --question Run no recipe; exit status says if up to date.

-r, --no-builtin-rules Disable the built-in implicit rules.

-R, --no-builtin-variables Disable the built-in variable settings.

-s, --silent, --quiet Don't echo recipes.

-S, --no-keep-going, --stop

Turns off -k.

-t, --touch Touch targets instead of remaking them.

--trace Print tracing information.

-v, --version Print the version number of make and exit.

-w, --print-directory Print the current directory.

--no-print-directory Turn off -w, even if it was turned on implicitly.

-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE

Consider FILE to be infinitely new.

--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu

Report bugs to [removed] GNU Make 4.1

# Built for x86_64-pc-linux-gnu

# Copyright (C) 1988-2014 Free Software Foundation, Inc.

# License GPLv3+: GNU GPL version 3 or later

# This is free software: you are free to change and redistribute it.

# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Sat Oct 2 21:51:21 2021

# Variables

# default

.SHELLFLAGS := -c

# environment

SHELL = /bin/bash

# environment

_ = /usr/bin/make

# environment

GNUMAKEFLAGS :=

# environment

LESSOPEN = | /usr/bin/lesspipe %s

# environment

SSH_CONNECTION = 99.20.113.125 51493 66.228.53.183 22

# environment

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

# environment

SSH_TTY = /dev/pts/1

# environment

XDG_RUNTIME_DIR = /run/user/1095

# default

.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load

# environment

LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

# environment

PWD = /home/salsubaie

# environment

HOME = /home/salsubaie

# environment

LESSCLOSE = /usr/bin/lesspipe %s %s

# environment

LOGNAME = salsubaie

# default

MAKECMDGOALS := g++ encrypt.cpp decrypt.cpp main.cpp

# environment

SHLVL = 1

# environment

XDG_SESSION_ID = 935

# environment

USER = salsubaie

# default

.VARIABLES :=

# environment

SSH_CLIENT = 99.20.113.125 51493 22

# environment

MAIL = /var/mail/salsubaie

# environment

S_COLORS = auto

# default

.RECIPEPREFIX :=

# environment

LANG = en_US.UTF-8

# environment

TERM = xterm

# variable set hash-table stats:

# Load=26/1024=3%, Rehash=0, Collisions=0/35=0%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# No files, no impossibilities in 0 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:

g++:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

main.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

encrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

decrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# files hash-table stats:

# Load=4/1024=0%, Rehash=0, Collisions=0/4=0%

# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 6 / storage = 54 B / avg = 9 B

# current buf: size = 8162 B / used = 54 B / count = 6 / avg = 9 B

# strcache performance: lookups = 10 / hit rate = 40%

# hash-table stats:

# Load=6/8192=0%, Rehash=0, Collisions=0/10=0%

# Finished Make data base on Sat Oct 2 21:51:21 2021

so this is my whole PuTTy Info I could not run it

I tried

I can give you access to my server so you may help me figure this out..

I appreciate your assistnace

please I need to submit this work in 12 hr

You run make command in folder you have files

First have those files on server or wherever you are running this. And run make command in exactly same folder from terminal. And I cant help you any further as this is not part of requirement and I have given a lot of time for this

I did it did not work !!

if I did not have it run I would like a refund

run on your local machine, I will send you the command. Code runs as smooth as it can

send

make: *** No targets specified and no makefile found. Stop.
 

This error comes when you don't have files. You haven't uploaded files on server and you are trying to run program. How will code run?

Error is saying, no makefile found.

I do have the files in the server !

then you are not in same folder as your files are when running make

you need to cd to that particular folder

You are on root as of now and your files are clearly not there

salsubaie@cloud:~$ ls

'cat id_rsa.pub' exam1 InputOutputPrograms myExam

'cat id_rsa.pub.pub' HW0 key Project1

'cd .ssh' HW01 key.pub randomNumbers

'cd .ssh.pub' HW02 Makefile.txt TESTHW02

salsubaie@cloud:~$ cd TESTHW02/

salsubaie@cloud:~/TESTHW02$ ls

Ciphertextfile decrypt.h encrypt.h Makefile

decrypt.cpp encrypt.cpp main.cpp PlaintextFile

salsubaie@cloud:~/TESTHW02$

yes, run make now

as you can see I have done the files

]

cd to this folder

then run make, in last log you were running make on root

'cat id_rsa.pub' exam1 InputOutputPrograms myExam

'cat id_rsa.pub.pub' HW0 key Project1

'cd .ssh' HW01 key.pub randomNumbers

'cd .ssh.pub' HW02 Makefile.txt TESTHW02

salsubaie@cloud:~$ cd TESTHW02/

salsubaie@cloud:~/TESTHW02$ ls

Ciphertextfile decrypt.h encrypt.h Makefile

decrypt.cpp encrypt.cpp main.cpp PlaintextFile

salsubaie@cloud:~/TESTHW02$ salsubaie@cloud:~$ ls

salsubaie@cloud:~$: command not found

salsubaie@cloud:~/TESTHW02$ 'cat id_rsa.pub' exam1 InputOutputPrograms myExam

cat id_rsa.pub: command not found

salsubaie@cloud:~/TESTHW02$ 'cat id_rsa.pub.pub' HW0 key Project1

cat id_rsa.pub.pub: command not found

salsubaie@cloud:~/TESTHW02$ 'cd .ssh' HW01 key.pub randomNumbers

cd .ssh: command not found

salsubaie@cloud:~/TESTHW02$ 'cd .ssh.pub' HW02 Makefile.txt TESTHW02

cd .ssh.pub: command not found

salsubaie@cloud:~/TESTHW02$ salsubaie@cloud:~$ cd TESTHW02/

salsubaie@cloud:~$: command not found

salsubaie@cloud:~/TESTHW02$ salsubaie@cloud:~/TESTHW02$ ls

-bash: salsubaie@cloud:~/TESTHW02$: No such file or directory

salsubaie@cloud:~/TESTHW02$ Ciphertextfile decrypt.h encrypt.h Makefile

Ciphertextfile: command not found

salsubaie@cloud:~/TESTHW02$ decrypt.cpp encrypt.cpp main.cpp PlaintextFil e

decrypt.cpp: command not found

salsubaie@cloud:~/TESTHW02$ salsubaie@cloud:~/TESTHW02$

-bash: salsubaie@cloud:~/TESTHW02$: No such file or directory

salsubaie@cloud:~/TESTHW02$ make g++ -Wall -pedantic -g -00 -std=c++11 -o TESTHW02 encrypt.cpp decrypt.cpp main.cpp

make: invalid option -- 'a'

make: invalid option -- 'c'

make: invalid option -- 'g'

make: invalid option -- '0'

make: invalid option -- '0'

make: invalid option -- '='

make: invalid option -- 'c'

make: invalid option -- '+'

make: invalid option -- '+'

make: invalid option -- '1'

make: invalid option -- '1'

Usage: make [options] [target] ...

Options:

-b, -m Ignored for compatibility.

-B, --always-make Unconditionally make all targets.

-C DIRECTORY, --directory=DIRECTORY

Change to DIRECTORY before doing anything.

-d Print lots of debugging information.

--debug[=FLAGS] Print various types of debugging information.

-e, --environment-overrides

Environment variables override makefiles.

--eval=STRING Evaluate STRING as a makefile statement.

-f FILE, --file=FILE, --makefile=FILE

Read FILE as a makefile.

-h, --help Print this message and exit.

-i, --ignore-errors Ignore errors from recipes.

-I DIRECTORY, --include-dir=DIRECTORY

Search DIRECTORY for included makefiles.

-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.

-k, --keep-going Keep going when some targets can't be made.

-l [N], --load-average[=N], --max-load[=N]

Don't start multiple jobs unless load is below N.

-L, --check-symlink-times Use the latest mtime between symlinks and target.

-n, --just-print, --dry-run, --recon

Don't actually run any recipe; just print them.

-o FILE, --old-file=FILE, --assume-old=FILE

Consider FILE to be very old and don't remake it.

-O[TYPE], --output-sync[=TYPE]

Synchronize output of parallel jobs by TYPE.

-p, --print-data-base Print make's internal database.

-q, --question Run no recipe; exit status says if up to date.

-r, --no-builtin-rules Disable the built-in implicit rules.

-R, --no-builtin-variables Disable the built-in variable settings.

-s, --silent, --quiet Don't echo recipes.

-S, --no-keep-going, --stop

Turns off -k.

-t, --touch Touch targets instead of remaking them.

--trace Print tracing information.

-v, --version Print the version number of make and exit.

-w, --print-directory Print the current directory.

--no-print-directory Turn off -w, even if it was turned on implicitly.

-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE

Consider FILE to be infinitely new.

--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu

Report bugs to [removed] GNU Make 4.1

# Built for x86_64-pc-linux-gnu

# Copyright (C) 1988-2014 Free Software Foundation, Inc.

# License GPLv3+: GNU GPL version 3 or later

# This is free software: you are free to change and redistribute it.

# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Sun Oct 3 00:45:29 2021

# Variables

# default

.SHELLFLAGS := -c

# environment

SHELL = /bin/bash

# environment

_ = /usr/bin/make

# environment

GNUMAKEFLAGS :=

# environment

LESSOPEN = | /usr/bin/lesspipe %s

# environment

SSH_CONNECTION = 99.20.113.125 64058 66.228.53.183 22

# environment

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

# environment

SSH_TTY = /dev/pts/0

# environment

XDG_RUNTIME_DIR = /run/user/1095

# default

.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load

# environment

LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

# environment

PWD = /home/salsubaie/TESTHW02

# environment

HOME = /home/salsubaie

# environment

LESSCLOSE = /usr/bin/lesspipe %s %s

# environment

LOGNAME = salsubaie

# default

MAKECMDGOALS := g++ encrypt.cpp decrypt.cpp main.cpp

# environment

SHLVL = 1

# environment

XDG_SESSION_ID = 962

# environment

USER = salsubaie

# environment

OLDPWD = /home/salsubaie

# default

.VARIABLES :=

# environment

SSH_CLIENT = 99.20.113.125 64058 22

# environment

MAIL = /var/mail/salsubaie

# environment

S_COLORS = auto

# default

.RECIPEPREFIX :=

# environment

LANG = en_US.UTF-8

# environment

TERM = xterm

# variable set hash-table stats:

# Load=27/1024=3%, Rehash=0, Collisions=0/36=0%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# No files, no impossibilities in 0 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:

g++:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

main.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

encrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

decrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# files hash-table stats:

# Load=4/1024=0%, Rehash=0, Collisions=0/4=0%

# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 6 / storage = 50 B / avg = 8 B

# current buf: size = 8162 B / used = 50 B / count = 6 / avg = 8 B

# strcache performance: lookups = 10 / hit rate = 40%

# hash-table stats:

# Load=6/8192=0%, Rehash=0, Collisions=0/10=0%

# Finished Make data base on Sun Oct 3 00:45:29 2021

salsubaie@cloud:~/TESTHW02$ make g++ -Wall -pedantic -g -00 -std=c++11 -o PermCipher encrypt.cpp decrypt.cpp main.cpp

make: invalid option -- 'a'

make: invalid option -- 'c'

make: invalid option -- 'g'

make: invalid option -- '0'

make: invalid option -- '0'

make: invalid option -- '='

make: invalid option -- 'c'

make: invalid option -- '+'

make: invalid option -- '+'

make: invalid option -- '1'

make: invalid option -- '1'

Usage: make [options] [target] ...

Options:

-b, -m Ignored for compatibility.

-B, --always-make Unconditionally make all targets.

-C DIRECTORY, --directory=DIRECTORY

Change to DIRECTORY before doing anything.

-d Print lots of debugging information.

--debug[=FLAGS] Print various types of debugging information.

-e, --environment-overrides

Environment variables override makefiles.

--eval=STRING Evaluate STRING as a makefile statement.

-f FILE, --file=FILE, --makefile=FILE

Read FILE as a makefile.

-h, --help Print this message and exit.

-i, --ignore-errors Ignore errors from recipes.

-I DIRECTORY, --include-dir=DIRECTORY

Search DIRECTORY for included makefiles.

-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.

-k, --keep-going Keep going when some targets can't be made.

-l [N], --load-average[=N], --max-load[=N]

Don't start multiple jobs unless load is below N.

-L, --check-symlink-times Use the latest mtime between symlinks and target.

-n, --just-print, --dry-run, --recon

Don't actually run any recipe; just print them.

-o FILE, --old-file=FILE, --assume-old=FILE

Consider FILE to be very old and don't remake it.

-O[TYPE], --output-sync[=TYPE]

Synchronize output of parallel jobs by TYPE.

-p, --print-data-base Print make's internal database.

-q, --question Run no recipe; exit status says if up to date.

-r, --no-builtin-rules Disable the built-in implicit rules.

-R, --no-builtin-variables Disable the built-in variable settings.

-s, --silent, --quiet Don't echo recipes.

-S, --no-keep-going, --stop

Turns off -k.

-t, --touch Touch targets instead of remaking them.

--trace Print tracing information.

-v, --version Print the version number of make and exit.

-w, --print-directory Print the current directory.

--no-print-directory Turn off -w, even if it was turned on implicitly.

-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE

Consider FILE to be infinitely new.

--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu

Report bugs to [removed] GNU Make 4.1

# Built for x86_64-pc-linux-gnu

# Copyright (C) 1988-2014 Free Software Foundation, Inc.

# License GPLv3+: GNU GPL version 3 or later

# This is free software: you are free to change and redistribute it.

# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Sun Oct 3 00:46:13 2021

# Variables

# default

.SHELLFLAGS := -c

# environment

SHELL = /bin/bash

# environment

_ = /usr/bin/make

# environment

GNUMAKEFLAGS :=

# environment

LESSOPEN = | /usr/bin/lesspipe %s

# environment

SSH_CONNECTION = 99.20.113.125 64058 66.228.53.183 22

# environment

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

# environment

SSH_TTY = /dev/pts/0

# environment

XDG_RUNTIME_DIR = /run/user/1095

# default

.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load

# environment

LS_COLORS = rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

# environment

PWD = /home/salsubaie/TESTHW02

# environment

HOME = /home/salsubaie

# environment

LESSCLOSE = /usr/bin/lesspipe %s %s

# environment

LOGNAME = salsubaie

# default

MAKECMDGOALS := g++ encrypt.cpp decrypt.cpp main.cpp

# environment

SHLVL = 1

# environment

XDG_SESSION_ID = 962

# environment

USER = salsubaie

# environment

OLDPWD = /home/salsubaie

# default

.VARIABLES :=

# environment

SSH_CLIENT = 99.20.113.125 64058 22

# environment

MAIL = /var/mail/salsubaie

# environment

S_COLORS = auto

# default

.RECIPEPREFIX :=

# environment

LANG = en_US.UTF-8

# environment

TERM = xterm

# variable set hash-table stats:

# Load=27/1024=3%, Rehash=0, Collisions=0/36=0%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# No files, no impossibilities in 0 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:

g++:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

main.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

encrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# Not a target:

decrypt.cpp:

# Command line target.

# Implicit rule search has not been done.

# Modification time never checked.

# File has not been updated.

# files hash-table stats:

# Load=4/1024=0%, Rehash=0, Collisions=0/4=0%

# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 6 / storage = 52 B / avg = 8 B

# current buf: size = 8162 B / used = 52 B / count = 6 / avg = 8 B

# strcache performance: lookups = 10 / hit rate = 40%

# hash-table stats:

# Load=6/8192=0%, Rehash=0, Collisions=0/10=0%

# Finished Make data base on Sun Oct 3 00:46:13 2021

salsubaie@cloud:~/TESTHW02$

see it is not working

just type make man

thats it

just type make

nothing else

ok

then how I may run the program though

Command is given in PDF

starting with ./PermCipher

Please see the attached file for the complete solution