USE C++!!!!
Encryption and Decryption are two cryptographic techniques.
Encryption is used to transform text to...
USE C++!!!!
Encryption and Decryption are two cryptographic techniques.
Encryption is used to transform text to meaningless characters, and
decryption is used to transform meaningless characters into
meaningful text. The algorithm that does the encryption is called a
cipher. A simple encryption algorithm is Caesar cipher, which works
as follows: replace each clear text letter by a letter chosen to be
n places later in the alphabet. The number of places, n, is called
the cipher key. For example, if...
PART B- Javascript
Using a text editor (VS Code or Notepad) and a web browser, you...
PART B- Javascript
Using a text editor (VS Code or Notepad) and a web browser, you
will demonstrate how to create an HTML file, externally link a
JavaScript file, and write some source code in the JavaScript
file.
a..Create two blank files to be an HTML file and a JavaScript
file. The file names should be partA.html and
partA.js.
b.. Create a basic HTML webpage structure.
c..Link the JavaScript file to the HTML file using the
<script> tag.
d.. Prompt...
Write the code to return the output:
Code:
id <- c(5, 6, 7, 8, 9)
prod...
Write the code to return the output:
Code:
id <- c(5, 6, 7, 8, 9)
prod <- c("F", "H", "B", "S", "D")
units <- c(12, 19, 44,26, 43)
df <- data.frame(id, prod, units)
Output must be:
[1] 12 19 44 26 43
C Programming
I am trying to also print the frequency and the occurrence of an
input...
C Programming
I am trying to also print the frequency and the occurrence of an
input text file. I got the occurrence to but cant get the
frequency.
Formula for frequency is "Occurrence / total input
count", this is the percentage of occurrence.
Can someone please help me to get the frequency to work.
Code:
int freq[26] = {0};
fgets(input1, 10000, (FILE*)MyFile);
for(i=0; i< strlen(input); i++) {
freq[input[i]-'a']++;
count++;
}
printf("Text count = %d", count);
printf("\n");
printf("Frequency of plain text\n");...
Convert each of the below C code snippet to LEGv8 assembly code.
Assume variable a, b,...
Convert each of the below C code snippet to LEGv8 assembly code.
Assume variable a, b, and c is stored in registers X19, X20, and
X21 respectively. Base address of d is stored in register X22.
Comment your assembly code. (24 Points)
a. if (a > b) d[a] = b + 8;
else d[a] = b - 16;
b. for (i=0;i<a; i++)
a = d[i] + c;
c. i = 0;
while ( d[i] == b)
if(( a - i...
USE C programming (pls label which file is libcipher.h and
libcipher.c)
Q4) A shift cipher is...
USE C programming (pls label which file is libcipher.h and
libcipher.c)
Q4) A shift cipher is one of the simplest encryption techniques
in the field of cryptography. It is a cipher in which each letter
in a plain text message is replaced by a letter some fixed number
of positions up the alphabet (i.e., by right shifting the
alphabetic characters in the plain text message). For example, with
a right shift of 2, ’A’ is replaced by ’C’, ’B’ is...
Huffman Code Scenario:
There are 4 symbols (A, B, C and D) in a special language....
Huffman Code Scenario:
There are 4 symbols (A, B, C and D) in a special language. The
frequencies of the symbols in a text written in the language
are:
A 40, B 20, C 10, and D 5. Answer the following
questions.
1. How many bits do you need to represent the symbols?
2. What is the total number of bits needed in order to encode
the entire text?
3. Construct the Huffman tree based on the scenario (paste the...
Huffman Codes:
You are give a text file containing only the characters
{a,b,c,d,e,f}. Let F(x) denote...
Huffman Codes:
You are give a text file containing only the characters
{a,b,c,d,e,f}. Let F(x) denote the frequency of a character x.
Suppose that: F(a) = 13, F(b) = 4, F(c) = 6, F(d) = 17, F(e) = 2,
and F(f) = 11.
Give a Huffman code for the above set of frequencies, i.e.
specify the binary encoding for each of the six characters.
In the following C code, Which variable if NOT of primitive
data type?
A. a
B....
In the following C code, Which variable if NOT of primitive
data type?
A. a
B. b
C. c
D. d
int a = 10;
double b = 20.0;
float c = false;
char d[5] = "Hello"; // here we define a string
In programming language C, the implementation of a string data
type is limited dynamic length, which means the
length of a string variable is fixed once it has been
defined.
A. True
B. False
In C# programming...
And need to be writing in C++ language
Programm need to start with
#include<fstream>
Prepare a...
And need to be writing in C++ language
Programm need to start with
#include<fstream>
Prepare a text file data_in.txt with the following information
(highlight the piece of text below with numbers and copy it to a
text file):
54, 70, 75, 63, 17, 59, 87, 16, 93, 81, 60, 67, 90, 53, 88, 9, 61,
8, 96, 98, 12, 34, 66, 76, 38, 55, 58, 27, 92, 45, 41, 4, 20, 22,
69, 77, 86, 35, 19, 32, 49, 15,...