Help with this C++ Assignment!
Write a small program C++ program HelloWorld.cpp (20 lines of code) that uses Third-party C++ $LIB. The code for $LIB should reside outside of the repository so that your build-script must be designed to take as a parameter where you installed $LIB so that it can pick up the headers/object code.
I have employed crypto++ library which is a third party. In order to run this code, you have use spaceCrypto which is a crypto++ wrapper and then download the crytopp libraries and compile the cryptopp static library in the "cryptlib.dsp" project, and add the library in your project and insert it in the cryptopp. Kindly comment if you have any doubts.
Here is the code:
#include "cryptopp_wrapper.h"
int main()
{
...
cout<<"Cheggster
!"<<endl<<endl;
SpaceCrypto::CryptBlowFish hello;
hello.setPlainString("HelloWorld!");
hello.setKey("HomeworkLibsecretkey!!");
std::string crypt;
crypt = hello.Encrypt();
cout<<"Plain Text:
HelloWorld!"<<endl;
cout<<"Cypherext:
"<<crypt<<endl;
hello.reset();
hello.setEncString(crypt);
hello.setInputMode(SpaceCrypto::HEX);
hello.setKey("HomeworkLibsecretkey!!");
hello.setOutputMode(SpaceCrypto::NORMAL);
cout<<"Decrypted Text:
"<<hello.Decrypt()<<endl;
}
Help with this C++ Assignment! Write a small program C++ program HelloWorld.cpp (20 lines of code)...
In java
Assignment Modify the code Binary File IO Example Code. The code reads and prints information about a BMP file. Modify the code so that it also prints the resolution of the BMP file (both width and height) and the number of bits per pixel. Do not use any Java library or third-party library code that reads BMP files. You must read the file using simple Java code and extract the information, similar to the code in the example....
Write a C program as follows:
Single source code file
Calls a function with an arbitrary name (i.e. you name it) that
accepts two arrays of the same size
The function should add each element in the arrays together and
place the values in a third array
Each array element, each array address, and the sum are printed
to the screen in tabulated format with headersI also would like to request
that LOTS of comments be included, as I need...
Please, please help!
(Programming Assignment: fork gymnastics) Write a C/C++ program (call it string-invert) that takes a string argument from the command line and outputs the string in reversed order You have two constraints: Constraint 1: Each process can output at most one character. If you want to output more than a single character, you must fork off one or more processes in order to do that, and each of the forked processes in turn outputs a single character t...
Could I get some help with this assignment In this assignment, you'll write a program which reads a text file, and prints a histogram of its word sizes. So, for example, the historgram should show the number of words of length 1, of length 2, etc., up to the number of words of length n, where n is some constant defined in your program. To obtain text files that are suitably long, you could try Project Gutenberg, a site containing...
Write a C++ program that computes a student’s grade for an assignment as a percentage given the student’s score and the total points. The final score should be rounded up to the nearest whole value using the ceil function in the <math> header file. You should also display the floating-point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by a space. If...
c++ class, coding using code blocker
MinilabLoopLogic The program: You are to write a program called MinilabLoopLogic which does the following Asks the user to enter 2 integers (can be one prompt or two) Gets and stores the ints Explains that the program will generate all integers that are between the numbers and are divisible by a third integer . e Asks the user for the number they should be divisible by Gets and stores that int Since 0 will...
Assignment 4 2018 Simple Functions and Looping Task or estimated I. The progam will ask the rr The functionwl Assignment 4 2018 Simple Functions and Looping Here is one approach you couild take Upload We were unable to transcribe this image5. Sample results: starting with 100 Streptococcus lactis for 90 minutes 90min 26min-3.5generations (will use 3 for number of generations) . After the first generation b 100 x21 200 .After the second generation b 100 x 22 400 After the...
I need help please... Intro to Programming in C – small program 8 Project objective: To compile, build, and execute an interactive program using character arrays and string.h functions **Submit source code (prog8.c) through Canvas • One source code file (unformatted text) will be submitted • The file name must match the assignment • The code should be tested and run on a Microsoft compiler before it is uploaded onto Canvas • The code must be submitted on time in...
Topics: Arrays in C. For this assignment, you will write a C program that uses its first command line parameter to compute and display a histogram of characters that occur in it. Requirements: Your program must compile and run correctly using the gcc compiler on ale. You must write the corresponding function definitions for the following function prototypes: // set all elements of the histogram to zero void init_histogram(int histo[]); // construct the histogram from string void cons_histogram(char string[], int...
[C++] Write an interactive program to help you count all of the boxes in a room. The program should begin by asking something like How many unnumbered boxes can you see? Then the program will have you number those boxes from 1 to m, where m is your answer. But, remember that each box might have smaller boxes inside, so once the program knows you can see m boxes, it should ask you to open box number 1 and take...