Tumgik
myprogrammingsolver · 10 days
Text
404 MESSAGE
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 16 days
Text
Chocopy Code Generation
The three programming assignments in this course will direct you to develop a compiler for ChocoPy, a statically typed dialect of Python. The assignments will cover (1) lexing and pars-ing of ChocoPy into an abstract syntax tree (AST), (2) semantic analysis of the AST, and (3) code generation. For this assignment, you are to implement a RISC-V code generator for ChocoPy. This phase of the…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 2 months
Text
CMSC216 Project 2: Bit Ops, Debugging, Data Structures
This project addresses more advanced C programming topics each in its own problem. Bit-level operations are common in C and systems programming. This assignment features a problem in which shifting and bitwise AND/OR-ing are required to complete the requirements. Debugging is also a critical skill enabled by the debugger. The second problem in the assignment makes use of the GNU Debugger, gdb,…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
Packet Sniffing and Spoofing Lab
Packet sniffing and spoofing are two important concepts in network security; they are two major threats in network communication. Being able to understand these two threats is essential for understanding se-curity measures in networking. There are many packet sniffing and spoofing tools, such as Wireshark, Tcpdump, Netwox, Scapy, etc. Some of these tools are widely used by security experts, as…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 9
A Publishing House publishes stories in three categories and has strict requirements for page counts in each one. Create an abstract class called Story, which has the following data members: story title (title), author name (author), number of pages (pages), type of story book (type), and a string message (msg). Include get and set member functions for each field. Follow the naming convention for…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 8
In this recitation assignment, you are given the definition of a class, called Value, which represents values of operands in the SPL language to implement its interpreter in Programming Assignment 3. These include values for the two defined types in the language: Numeric (double), and String (string). The objective of defining the Value class is to facilitate constructing an interpreter for the…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 7
A postfix expression is defined as an arithmetic expression where the operator occurs after the operands. For example, using infix notation we would add 4 and 5 using 4 + 5. In postfix notation we would arrange the operator to occur at the end: 4 5 +. A postfix expression can become arbitrarily complex such as 3 4 5 + − 2 *. This expression would be expressed using infix notation like this: ((4 +…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 6
Write a C++ recursive function that performs conversion from decimal to any number of base n, where n is in the range 2-10 or n = 16 (hexadecimal). The algorithm for this conversion is to repeatedly divide the decimal number by n, until it is 0. Each division produces a remainder, which becomes a digit in the converted number. For example, if we want to convert the decimal 14 number to a number…
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 5
You are given a copy of “lex.h” from Programming Assignment 1, and a file called “tokensListing.cpp” as a driver program. DO NOT CHANGE neither “lex.h” nor “tokensListing.cpp”. Your implementation should include the following in another file, called “RA5.cpp”: The function LexItem id_or_kw(const string& lexeme, int linenum); id_or_kw () function accepts a reference to a string of a lexeme and a…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 4
Write a C++ program that reads from a file specified in the command line as an argument. The program should read from the file words until the end of file. In case the file is empty, print out on a new line the message “File is empty.” and then exit. However, if no file name is provided, the program should print on a new line “NO SPECIFIED INPUT FILE NAME.”, and exit. If the file cannot be…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 3
Write a C++ program that identifies and counts words and special names in a textual file. There are two kinds of special names considered, called Type 1 and Type 2 names. Counting is applied on all occurrences of words and specialized names. A word is defined as a sequence of one or more non-whitespace characters separated by whitespace. The special names of Type 1 and Type 2 are identified by a…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Recitation Assignment 2
Write a C++ program that acts like a simple counting tool for collecting information from textual files of documents prepared for a simple scripting language interpreter. An input file for the simple scripting interpreter includes two types of data, commented lines and scripting code lines. A commented line is recognized by either the two characters “##” or “//” at the beginning of the line,…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Programming Assignment 3
In this programming assignment, you will be building an interpreter for our SPL programming language. The grammar rules of the language and its tokens were given in Programming Assignments 1 and 2. You are required to modify the parser you have implemented for the SPL language to implement an interpreter for it. The specifications of the grammar rules are described in EBNF notations as…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
CS 280 Programming Assignment 2
In this programming assignment, you will be building a parser for the Simple Perl-Like (SPL) programming language. The syntax definitions of SPL programming language are given below using EBNF notations. Your implementation of a parser to the language is based on the following grammar rules specified in EBNF notations. Prog ::= StmtList StmtList ::= Stmt ;{ Stmt; } Stmt ::= AssignStme |…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
Building a Lexical Analyzer for the SPL Language
In this programming assignment, you will be building a lexical analyzer for small programming language, called Simple Perl-Like (SPL), and a program to test it. This assignment will be followed by two other assignments to build a parser and an interpreter to the SPL language. Although, we are not concerned about the syntax definitions of the language in this assignment, we intend to introduce it…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
Homework 4 EXPERIMENTATION WITH BSTS
The objective of this assignment is to reinforce concepts we learned about BSTs. The programming assignment should be implemented in Java. You are required to work alone on this assignment. This is an extra credit assignment worth 5 points. This assignment may be modified to clarify any questions (and the version number incremented), but the crux of the assignment and the distribution of points…
Tumblr media
View On WordPress
0 notes
myprogrammingsolver · 3 months
Text
Homework 3 EXPERIMENTATION WITH NETWORKED COMMUNICATIONS
The objective of this assignment is to get you to be comfortable coding in a networked setting where you need to manage the underlying communications between nodes. All communications will be based on TCP and you will be using the sockets to implement this assignment. The programming assignment should be implemented in Java. You are required to work alone on this assignment. The assignment…
Tumblr media
View On WordPress
0 notes