+1 480 409 0818 
Internet security homework helper
956 Order Completed
92 % Response Time
162 Reviews
Since 2013

Internet security homework helper

Texas, USA

Joe B

Bachelors in Computer science, Texas Tech University

Profession

Internet security homework helper

Skills

Internet security is a very interesting topic of study because new things come up every day. For the past 8 years, I have worked as an internet security tutor I have watched a lot of revolution in internet security. I have worked with students helping them complete their assignments and tutoring them. As an internet security homework helper, I enjoy working with students and helping them get top grades. Helping students also helps me learn new things in this evolving industry. Should you want internet security assignment solutions from an expert contact me for quality work.

Get Free Quote
0 Files Selected

Dynamic memory allocation

#include "C2A5E4_StatusCode-Driver.h" #define HEX_NUMBER(x) ('0' <= x && x <= '9') #define HEX_LETTER(x) (('a' <= x && x <= 'f') || ('A' <= x && x <= 'F')) #define HEX_DIGIT(x) (HEX_NUMBER(x) || HEX_LETTER(x)) #define STATE_START ( 1) #define STATE_PREFIX ( 2) #define STATE_PREFIX_START ( 3) #define STATE_WHOLE ( 4) #define STATE_NOT_WHOLE ( 5) #define STATE_FRACT ( 6) #define STATE_EXPONENT ( 7) #define STATE_POSITIVE_SIGN ( 8) #define STATE_NEGATIVE_SIGN ( 9) #define STATE_POSITIVE_EXPONENT (10) #define STATE_NEGATIVE_EXPONENT (11) StatusCodeDetectFloats(const char *chPtr) { int state = STATE_START; char letter = '\0'; while (true) { letter = *chPtr; chPtr = &chPtr[1]; switch (state) { case STATE_START: { if (letter == '0') { state = STATE_PREFIX; continue; } return StatusCode::NO_MATCH; } case STATE_PREFIX: { if (letter == 'X' || letter == 'x') { state = STATE_PREFIX_START; continue; } return StatusCode::NO_MATCH; } case STATE_PREFIX_START: { if (HEX_DIGIT(letter)) { state = STATE_WHOLE; continue; } if (letter == '.') { state = STATE_NOT_WHOLE; continue; } return StatusCode::NO_MATCH; } case STATE_WHOLE: { if (HEX_DIGIT(letter)) { continue; } if (letter == '.') { state = STATE_FRACT; continue; } if (letter == 'P' || letter == 'p') { state = STATE_EXPONENT; continue; } return StatusCode::NO_MATCH; } case STATE_NOT_WHOLE: { if (HEX_DIGIT(letter)) { state = STATE_FRACT; continue; } return StatusCode::NO_MATCH; } case STATE_FRACT: { if (HEX_DIGIT(letter)) { continue; } if (letter == 'P' || letter == 'p') { state = STATE_EXPONENT; continue; } return StatusCode::NO_MATCH; } case STATE_EXPONENT: { if (HEX_DIGIT(letter)) { state = STATE_POSITIVE_EXPONENT; continue; } if (letter == '+') { state = STATE_POSITIVE_SIGN; continue; } if (letter == '-') { state = STATE_NEGATIVE_SIGN; continue; } return StatusCode::NO_MATCH; } case STATE_POSITIVE_SIGN: { if (HEX_DIGIT(letter)) { state = STATE_POSITIVE_EXPONENT; continue; } return StatusCode::NO_MATCH; } case STATE_POSITIVE_EXPONENT: { if (letter == 'F' || letter == 'f') { return StatusCode::TYPE_FLOAT; } if (letter == 'L' || letter == 'l') { return StatusCode::TYPE_LDOUBLE; } if (letter == '\0') { return StatusCode::TYPE_DOUBLE; } if (HEX_DIGIT(letter)) { continue; } return StatusCode::NO_MATCH; } case STATE_NEGATIVE_SIGN: { if (HEX_DIGIT(letter)) { state = STATE_NEGATIVE_EXPONENT; continue; } return StatusCode::NO_MATCH; } case STATE_NEGATIVE_EXPONENT: { if (letter == 'F' || letter == 'f') { return StatusCode::TYPE_FLOAT; } if (letter == 'L' || letter == 'l') { return StatusCode::TYPE_LDOUBLE; } if (letter == '\0') { return StatusCode::TYPE_DOUBLE; } if (HEX_DIGIT(letter)) { continue; } return StatusCode::NO_MATCH; } } } } #include #include #include #include using namespace std; void OpenFile(const char *fileName, ifstream&inFile) { inFile.open(fileName); if (!inFile.is_open()) { std::cerr<< "Could not open file!" < #include #include #include void SwapObjects(void *pa, void *pb, size_t size) { if (size == 0) { // nothing to do in this case return; } void *pc; pc = malloc(size); // gets the error code for the malloc operation int malloc_errno = errno; if (pc == NULL) { // could not allocate memory fprintf(stderr, "Could not allocate temporary buffer for swapping!\n"); exit(malloc_errno); } // swaps values, using temporary buffer 'pc' memcpy(pc, pa, size); memcpy(pa, pb, size); memcpy(pb, pc, size); // releases the temporary buffer free(pc); } #include #include #include #include "C2A5E2_Type-Driver.h" Type **Create2D(size_t rows, size_t cols) { size_tfull_length = rows * cols; Type *data_array; data_array = malloc(sizeof(*data_array) * full_length); // gets the error code for the malloc operation int malloc_errno_a = errno; if (data_array == NULL) { // could not allocate memory fprintf(stderr, "Could not allocate data array!\n"); exit(malloc_errno_a); } Type **pointer_array; pointer_array = malloc(sizeof(*pointer_array) * rows); // gets the error code for the malloc operation int malloc_errno_b = errno; if (pointer_array == NULL) { // could not allocate memory fprintf(stderr, "Could not allocate pointer array!\n"); exit(malloc_errno_b); } // setups all pointers to point to the right place in data_array for (int index = 0; index < rows; index += 1) { pointer_array[index] = &data_array[(index * cols)]; } return pointer_array; } void Free2D(void *p) { Type **pointer_array; pointer_array = (Type **) p; Type *data_array; data_array = pointer_array[0]; free(data_array); free(pointer_array); }

Creating a database in SQL

CREATE USER 'cs363'@'%1'; GRANT DROP, CREATE, INSERT, DELETE ON tweets.* TO 'cs363'@'%1'; CREATE SCHEMA tweets; DROP TABLE IF EXISTS tweets.HasHashTag; DROP TABLE IF EXISTS tweets.HasURL; DROP TABLE IF EXISTS tweets.userTweets; DROP TABLE IF EXISTS tweets.users; DROP TABLE IF EXISTS tweets.tweets; DROP TABLE IF EXISTS tweets.state; CREATE TABLE tweets.url( urlVARCHAR(255) PRIMARY KEY ); CREATE TABLE tweets.tags ( hashtag VARCHAR(150) PRIMARY KEY ); CREATE TABLE tweets.state( state VARCHAR(50) PRIMARY KEY ); CREATE TABLE tweets.tweets( TID INTEGER PRIMARY KEY, text VARCHAR(240) NOT NULL, retweeted BOOLEAN NOT NULL, tCount INTEGER NOT NULL CHECK (tCount>=0), date DATE NOT NULL, createdON TIMESTAMP ); CREATE TABLE tweets.users ( ScreenNameVARCHAR(100) PRIMARY KEY, NAME VARCHAR(255) NOT NULL, Followers INTEGER NOT NULL CHECK (Followers>=0), Follow INTEGER NOT NULL CHECK (Follow>=0), Category VARCHAR(100) NOT NULL, SubCategoryVARCHAR(100) NOT NULL, Location VARCHAR(150) NOT NULL, State VARCHAR(50), FOREIGN KEY(State) REFERENCES tweets.state(state) ); CREATE TABLE tweets.HasURL ( TID INTEGER, URL VARCHAR(255) , PRIMARY KEY(TID,URL), FOREIGN KEY(URL) REFERENCES tweets.url(URL), FOREIGN KEY(TID) REFERENCES tweets.tweets(TID) ); CREATE TABLE tweets.HasHashTag ( TID INTEGER, hashtags VARCHAR(150) , PRIMARY KEY(TID,hashtags), FOREIGN KEY(hashtags) REFERENCES tweets.tags(hashtags), FOREIGN KEY(TID) REFERENCES tweets.tweets(TID) ); CREATE TABLE tweets.userTweets ( TID INTEGER, ScreenNameVARCHAR(100) , PRIMARY KEY(TID,ScreenName), FOREIGN KEY(ScreenName) REFERENCES tweets.users(ScreenName), FOREIGN KEY(TID) REFERENCES tweets.tweets(TID) );