File Operations across Internet
User Generated
xnzry88558855
Programming
cpts360
Washington State University - Spokane
Description
website which contains the materials
https://www.eecs.wsu.edu/~cs360/
refer to this link for more information about network programming
https://www.eecs.wsu.edu/~cs360/network.pdf
WORK IN 2-PERSON TEAMS
DUE & DENO : Friday 11-30-2018 A. OBJECTIVES: Network Programming using TCP. Unix system calls for file operations. B. TCP/IP Program: samples/LAB8: server.c and client.c files C. Pre-work: Download sever.c client.c files. Modify client.c: Send a line containing 2 numbers, e.g. 123 456, to server. server.c: Add the 2 numbers, send reply as 123 456 SUM = 579 The sample solution can do a lot of user commands; both local and remote. C. REQUIREMENTS: Project #1 in Chapter 13 of posted class notes. Sample Solutions samples/LAB8/ : server and client
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
This question has not been answered.
Create a free account to get help with this and any other question!
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
Java-Guessing Number Game
Java-Guessing Number GameFor this assignment you will write a program which will allow a person to play a number guessing ...
Java-Guessing Number Game
Java-Guessing Number GameFor this assignment you will write a program which will allow a person to play a number guessing
game against the computer. This section specifies the required functionality of the program. Only a
text interface is required for this program; however, more marks will be gained for a game that is
easy to follow with clear information/error messages to the player.
The aim of Gue55ing Game is for a person and the computer to compete against other to correctly
guess a hidden number.
A game consists of four rounds. For each round a number between 1 and 100 (inclusive) is randomly
generated and the players (person and computer) take turns to guess the number. The round ends
when the correct guess is given or each player has had three guesses.
If a player guesses the number correctly then they are awarded points according to how many
attempts were taken to guess the number. If the round ends without either player guessing correctly
then the points are awarded to each player according to how close they were to the hidden number.
At the end of the four rounds the player with the highest cumulative score wins the game.
INFO 321 AMU Wk 8 Definition of Functional Dependency Project
Assignment Instructions: Term Project - week 8 - (17%): You were just hired by an airline industry to create a database t ...
INFO 321 AMU Wk 8 Definition of Functional Dependency Project
Assignment Instructions: Term Project - week 8 - (17%): You were just hired by an airline industry to create a database to record the various airlines and the pilots that work for themDiscussions with the industry representatives focused on two initial entities, Airlines and Pilots; the following key points were agreed:1. Each pilot is assigned a unique PilotID.2. Each AirlineID is unique3. Each pilot may work for one airline, each airline can have many pilots.4. FName, LName, JobTitle and Salary describe each pilot (with the obvious meaning)5. AirlineID, NPlanes, NRoutes, NPilots describe each airline (NPlanes number of planes, NRoutes number of routes, NPilots number of pilots)6. No fields beyond those in the report are needed.The objective of this exercise is to demonstrate an understanding of some basic concepts covered in the course. The exercise is a straight forward application of those concepts – there are no “hidden” complexities – should you identify something in the key points or data that adds complexity, contact the instructor before submission – you may be over thinking the exercise.The sample data may not represent all possible values of each field – consider each field’s domain during the design.The objective is to replace the following report with a relational database. The submission will consist of a word compatible document to record the design process, and an Access DB.Here is the relational schema (table notation) for the above report / table:PilotAirlines (PilotID, FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilots)The functional dependencies are:PilotID - - > FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilotsPilotID - - > FName, LName, JobTitle, Salary, AirlineIDAirlineID - - > NPLanes, NRoutes, NPilotsThe specific tasks are listed below, the percentage in parenthesis corresponds to the grade weight for each task.Name your document Last Name_TermProject (i.e. Smith_TermProject). When you are asked to provide an explanation or description, include enough content to demonstrate that you understand the definition, term, concept, etc. and how it applies to this exercise.SUGGESTION: Review the Terms and Concepts Forum, especially the One-to-Many Normalization Process: Parts and Suppliers example. There is also a normalization MP4 file that can be downloaded from the Resources section.Incorporate the following outline in your submission – include the section numbers – not the questions or other content from the instructions.1) Review the existing report, functional dependencies provided and the sample data (as well as field domains and common knowledge) and document any assumptions you feel are appropriate (beyond those in the key points) and identify initial entities (person, place, thing). (10%)2 Define functional dependency, and explain one row of the functional dependencies provided above in plain English (use field names). (15%) (you do not need to explain partial or transitive dependency)3) Based on multiplicity - explain the relationship between the initial Entities in plain English – (either one-to-many, or many-to-many). (15%) 4) Design: specify all tables and fields at each normal form levela) First Normal Forum (1NF) assessment / action – if needed 10%Copy the 1NF definition from the text (include quotes and page number)Assess the UNF table provided and if necessary, make the changes needed to conform to the 1NF definition. Document the resulting 1NF table(s) using relational schema notation or spreadsheet format (see the above example or page 111 Figure 4.2.6 of the text).Explain how each table(s) meets the 1NF definition (use field names)b) Second Normal Form (2NF) assessment / action – if needed 10%Copy the 2NF definition from the text (include quotes and page number)Assess the 1NF table(s) in the previous section and if necessary, make the changes needed to conform to the 2NF definition. Document the resulting 2NF table(s) using relational schema notation or spreadsheet format. Explain how each table meets the 2NF definition (use field names)c) Third Normal Form (3NF) assessment / action if needed 10%Copy the 3NF definition from the text (include quotes and page number)Assess the 2NF table(s) in the previous section and if necessary, make the changes needed to conform to the 3NF definition. Document the resulting 3NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 3NF definition (use field names)5) Use the 3NF tables in your design, to create an new MS Access database, load the sample data provided,Name your database Last Name_TermProject (i.e. Smith_TermProject). (5%).6) Create a Query, that provides the results for the following request: List each PilotID, FirstName, LastName, the Airline each pilot works for, sorted by pilot. (5%)7) Create a Form: New Pilot Input (5%)8) Create a Report: Pilot List – list all pilots, their first and last names, and Salary (5%)Upload the database to the assignment area as one of the deliverables9) Submission content organization, clarity, spelling and grammar (10%)
C++ Implementation Programming Project
Edit ArrayListSet.cpp, Edit LinkedListSet.cpp, Edit RedBlackTreeSet.cpp, Edit HashTableSet.cpp, Edit MultiwayTrieSet.cpp
I ...
C++ Implementation Programming Project
Edit ArrayListSet.cpp, Edit LinkedListSet.cpp, Edit RedBlackTreeSet.cpp, Edit HashTableSet.cpp, Edit MultiwayTrieSet.cpp
I post all the files and instructions together.
11 pages
Creating Tables Database Design
STEP 1: Filling in in the missing fields in the Table Instance Chart STEP 2: Creating tables from ERD & Table instance ch ...
Creating Tables Database Design
STEP 1: Filling in in the missing fields in the Table Instance Chart STEP 2: Creating tables from ERD & Table instance charts using SQL code
Hunter College Non Header Line Project
In this task, we are going to write a program test7.py that finds the roots of cubic polynomials listed in the file poly.t ...
Hunter College Non Header Line Project
In this task, we are going to write a program test7.py that finds the roots of cubic polynomials listed in the file poly.txt using goalSeek function.
1. Use goalseek function to find the roots of the polynomials P1, P2, p3 listed in the introduction. The expected answers are: 3, 1.5, and -4.2. Choose the limits to contain the roots you are looking for (-5 and 5 would suffice for these there polynomials). Confirm that your programs is finding correct roots.
2. Read the file poly.txt. Discard any line that starts with a # symbol ( thus skipping the header).
for each non-header line, split it and use float function to extract A, B, C, D, Lo, Hi. Print them out to confirm that your program correctly extracts these parameters.
3. Write function makePoly that can generate a python function representation of cubic polynomial from its coefficients A, B, C, D. For example, the polynomial function P1 we used earlier:
CMSC 430 University of the District of Columbia Compile Theory and Design HW
The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to ...
CMSC 430 University of the District of Columbia Compile Theory and Design HW
The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to make the following modifications to the lexical analyzer, scanner.l:1. A new token ARROW should be added for the two character punctuation symbol =>.2. The following reserved words should be added:case, else, endcase, endif, if, others, real, then, whenEach reserved words should be a separate token. The token name should be the same as the lexeme, but in all upper case.3. Two additional logical operators should be added. The lexeme for the first should be or and its token should be OROP. The second logical operator added should be not and its token should be NOTOP.4. Five relational operators should be added. They are =, /=, >, >= and <=. All of the lexemes should be represented by the single token RELOP.5. One additional lexeme should be added for the ADDOP token. It is binary -.6. One additional lexeme should be added for the MULOP token. It is/.7. A new token REMOP should be added for the remainder operator. Its lexeme should be rem.8. A new token EXPOP should be added for the exponentiation operator. Its lexeme should be **.9. A second type of comment should be added that begins with // and ends with the end of line. As with the existing comment, no token should be returned.10. The definition for the identifiers should be modified so that underscores can be included, however, consecutive underscores, leading and trailing underscores should not be permitted.11. A real literal token should be added. It should begin with a sequence of one or more digits following by a decimal point followed by zero or more additional digits. It may optionally end with an exponent. If present, the exponent should begin with an e or E, followed by an optional plus or minus sign followed by one or more digits. The token should be named REAL_LITERAL.12. A Boolean literal token should be added. It should have two lexemes, which are true and false. The token should be named BOOL_LITERAL.You must also modify the header file tokens.h to include each the new tokens mentioned above.The compilation listing generator code should be modified as follows:1. The lastLine function should be modified to compute the total number of errors. If any errors occurred the number of lexical, syntactic and semantic errors should be displayed.If no errors occurred, it should display Compiled Successfully. It should return the total number of errors.2. The appendError function should be modified to count the number of lexical, syntactic and semantic errors. The error message passed to it should be added to a queue of messages that occurred on that line.3. The displayErrors function should be modified to display all the error messages that have occurred on the previous line and then clear the queue of messages.An example of the output of a program with no lexical errors is shown below:1 (* Program with no errors *)23 function test1 returns boolean;4 begin5 7 + 2 > 6 and 8 = 5 * (7 - 4);6 end;Compiled SuccessfullyHere is the required output for a program that contains more than one lexical error on the same line:1 -- Function with two lexical errors23 function test2 returns integer;4 begin5 7 $ 2 ^ (2 + 4);Lexical Error, Invalid Character $Lexical Error, Invalid Character ^6 end;Lexical Errors 2Syntax Errors 0Semantic Errors 0You are to submit two files.1. The first is a .zip file that contains all the source code for the project. The .zip file should contain the flex input file, which should be a .l file, all .cc and .h files and a makefile that builds the project.2. The second is a Word document (PDF or RTF is also acceptable) that contains the documentation for the project, which should include the following:a. A discussion of how you approached the projectb. A test plan that includes test cases that you have created indicating what aspects of the program each one is testing and a screen shot of your compiler run on that test case
Similar Content
ECE 263 ASU Arithmetic Operators C Programming Paper
the question in the attachment below- dont do the warms up. just the question need single .c file...
CUNY John Jay College Criminal Justice C Programming Game Board Program File
If you consider the game board in Connect Four carefully, you can see that it is a two dimensional grid of squares. When a...
Write code to sum the elements of an array of int. (Write it as a function, if y
Write code to sum the elements of an array of int. (Write it as a function, if you like.) Use it to sum the array int...
Text Analyzer Example
everything is pdf file read it Carefully...
pythan programming
Your submission will consist of:Your algorithm through Flowchart/sThe table recording your chosen test data and results (i...
Building Java Programs Chapter 13 Lab Questions Discussion
Complete all the questions given in the attached handout and they all should run in Dr. Java. Explain all the answers. THA...
Ece 493
1. Dropout voltage is the input-to-output differential voltage at which the circuit ceases to regulate against further red...
Hw 6
The statement that α → β implies β → α is false as proven by the following example: r(α, β) For this case, α �...
Michael Deamer Lab 1
We will learn how find a substring within a larger string using the index() function. 1. Open Thonny and start a new file ...
Related Tags
Book Guides
A Brief History of Humankind Sapiens
by Yuval Noah Harari
Wuthering Heights
by Emily Brontë
50 Shades of Grey
by E. L. James
The Old Man and the Sea
by Ernest Hemmingway
One Flew Over the Cuckoos Nest
by Ken Kesey
Robinson Crusoe
by Daniel Defoe
Harry Potter and the Sorcerers Stone
by J. K. Rowling
The 48 Laws of Power
by Robert Greene
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
Java-Guessing Number Game
Java-Guessing Number GameFor this assignment you will write a program which will allow a person to play a number guessing ...
Java-Guessing Number Game
Java-Guessing Number GameFor this assignment you will write a program which will allow a person to play a number guessing
game against the computer. This section specifies the required functionality of the program. Only a
text interface is required for this program; however, more marks will be gained for a game that is
easy to follow with clear information/error messages to the player.
The aim of Gue55ing Game is for a person and the computer to compete against other to correctly
guess a hidden number.
A game consists of four rounds. For each round a number between 1 and 100 (inclusive) is randomly
generated and the players (person and computer) take turns to guess the number. The round ends
when the correct guess is given or each player has had three guesses.
If a player guesses the number correctly then they are awarded points according to how many
attempts were taken to guess the number. If the round ends without either player guessing correctly
then the points are awarded to each player according to how close they were to the hidden number.
At the end of the four rounds the player with the highest cumulative score wins the game.
INFO 321 AMU Wk 8 Definition of Functional Dependency Project
Assignment Instructions: Term Project - week 8 - (17%): You were just hired by an airline industry to create a database t ...
INFO 321 AMU Wk 8 Definition of Functional Dependency Project
Assignment Instructions: Term Project - week 8 - (17%): You were just hired by an airline industry to create a database to record the various airlines and the pilots that work for themDiscussions with the industry representatives focused on two initial entities, Airlines and Pilots; the following key points were agreed:1. Each pilot is assigned a unique PilotID.2. Each AirlineID is unique3. Each pilot may work for one airline, each airline can have many pilots.4. FName, LName, JobTitle and Salary describe each pilot (with the obvious meaning)5. AirlineID, NPlanes, NRoutes, NPilots describe each airline (NPlanes number of planes, NRoutes number of routes, NPilots number of pilots)6. No fields beyond those in the report are needed.The objective of this exercise is to demonstrate an understanding of some basic concepts covered in the course. The exercise is a straight forward application of those concepts – there are no “hidden” complexities – should you identify something in the key points or data that adds complexity, contact the instructor before submission – you may be over thinking the exercise.The sample data may not represent all possible values of each field – consider each field’s domain during the design.The objective is to replace the following report with a relational database. The submission will consist of a word compatible document to record the design process, and an Access DB.Here is the relational schema (table notation) for the above report / table:PilotAirlines (PilotID, FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilots)The functional dependencies are:PilotID - - > FName, LName, JobTitle, Salary, AirlineID, NPLanes, NRoutes, NPilotsPilotID - - > FName, LName, JobTitle, Salary, AirlineIDAirlineID - - > NPLanes, NRoutes, NPilotsThe specific tasks are listed below, the percentage in parenthesis corresponds to the grade weight for each task.Name your document Last Name_TermProject (i.e. Smith_TermProject). When you are asked to provide an explanation or description, include enough content to demonstrate that you understand the definition, term, concept, etc. and how it applies to this exercise.SUGGESTION: Review the Terms and Concepts Forum, especially the One-to-Many Normalization Process: Parts and Suppliers example. There is also a normalization MP4 file that can be downloaded from the Resources section.Incorporate the following outline in your submission – include the section numbers – not the questions or other content from the instructions.1) Review the existing report, functional dependencies provided and the sample data (as well as field domains and common knowledge) and document any assumptions you feel are appropriate (beyond those in the key points) and identify initial entities (person, place, thing). (10%)2 Define functional dependency, and explain one row of the functional dependencies provided above in plain English (use field names). (15%) (you do not need to explain partial or transitive dependency)3) Based on multiplicity - explain the relationship between the initial Entities in plain English – (either one-to-many, or many-to-many). (15%) 4) Design: specify all tables and fields at each normal form levela) First Normal Forum (1NF) assessment / action – if needed 10%Copy the 1NF definition from the text (include quotes and page number)Assess the UNF table provided and if necessary, make the changes needed to conform to the 1NF definition. Document the resulting 1NF table(s) using relational schema notation or spreadsheet format (see the above example or page 111 Figure 4.2.6 of the text).Explain how each table(s) meets the 1NF definition (use field names)b) Second Normal Form (2NF) assessment / action – if needed 10%Copy the 2NF definition from the text (include quotes and page number)Assess the 1NF table(s) in the previous section and if necessary, make the changes needed to conform to the 2NF definition. Document the resulting 2NF table(s) using relational schema notation or spreadsheet format. Explain how each table meets the 2NF definition (use field names)c) Third Normal Form (3NF) assessment / action if needed 10%Copy the 3NF definition from the text (include quotes and page number)Assess the 2NF table(s) in the previous section and if necessary, make the changes needed to conform to the 3NF definition. Document the resulting 3NF table(s) using relational schema notation or spreadsheet format.Explain how each table meets the 3NF definition (use field names)5) Use the 3NF tables in your design, to create an new MS Access database, load the sample data provided,Name your database Last Name_TermProject (i.e. Smith_TermProject). (5%).6) Create a Query, that provides the results for the following request: List each PilotID, FirstName, LastName, the Airline each pilot works for, sorted by pilot. (5%)7) Create a Form: New Pilot Input (5%)8) Create a Report: Pilot List – list all pilots, their first and last names, and Salary (5%)Upload the database to the assignment area as one of the deliverables9) Submission content organization, clarity, spelling and grammar (10%)
C++ Implementation Programming Project
Edit ArrayListSet.cpp, Edit LinkedListSet.cpp, Edit RedBlackTreeSet.cpp, Edit HashTableSet.cpp, Edit MultiwayTrieSet.cpp
I ...
C++ Implementation Programming Project
Edit ArrayListSet.cpp, Edit LinkedListSet.cpp, Edit RedBlackTreeSet.cpp, Edit HashTableSet.cpp, Edit MultiwayTrieSet.cpp
I post all the files and instructions together.
11 pages
Creating Tables Database Design
STEP 1: Filling in in the missing fields in the Table Instance Chart STEP 2: Creating tables from ERD & Table instance ch ...
Creating Tables Database Design
STEP 1: Filling in in the missing fields in the Table Instance Chart STEP 2: Creating tables from ERD & Table instance charts using SQL code
Hunter College Non Header Line Project
In this task, we are going to write a program test7.py that finds the roots of cubic polynomials listed in the file poly.t ...
Hunter College Non Header Line Project
In this task, we are going to write a program test7.py that finds the roots of cubic polynomials listed in the file poly.txt using goalSeek function.
1. Use goalseek function to find the roots of the polynomials P1, P2, p3 listed in the introduction. The expected answers are: 3, 1.5, and -4.2. Choose the limits to contain the roots you are looking for (-5 and 5 would suffice for these there polynomials). Confirm that your programs is finding correct roots.
2. Read the file poly.txt. Discard any line that starts with a # symbol ( thus skipping the header).
for each non-header line, split it and use float function to extract A, B, C, D, Lo, Hi. Print them out to confirm that your program correctly extracts these parameters.
3. Write function makePoly that can generate a python function representation of cubic polynomial from its coefficients A, B, C, D. For example, the polynomial function P1 we used earlier:
CMSC 430 University of the District of Columbia Compile Theory and Design HW
The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to ...
CMSC 430 University of the District of Columbia Compile Theory and Design HW
The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to make the following modifications to the lexical analyzer, scanner.l:1. A new token ARROW should be added for the two character punctuation symbol =>.2. The following reserved words should be added:case, else, endcase, endif, if, others, real, then, whenEach reserved words should be a separate token. The token name should be the same as the lexeme, but in all upper case.3. Two additional logical operators should be added. The lexeme for the first should be or and its token should be OROP. The second logical operator added should be not and its token should be NOTOP.4. Five relational operators should be added. They are =, /=, >, >= and <=. All of the lexemes should be represented by the single token RELOP.5. One additional lexeme should be added for the ADDOP token. It is binary -.6. One additional lexeme should be added for the MULOP token. It is/.7. A new token REMOP should be added for the remainder operator. Its lexeme should be rem.8. A new token EXPOP should be added for the exponentiation operator. Its lexeme should be **.9. A second type of comment should be added that begins with // and ends with the end of line. As with the existing comment, no token should be returned.10. The definition for the identifiers should be modified so that underscores can be included, however, consecutive underscores, leading and trailing underscores should not be permitted.11. A real literal token should be added. It should begin with a sequence of one or more digits following by a decimal point followed by zero or more additional digits. It may optionally end with an exponent. If present, the exponent should begin with an e or E, followed by an optional plus or minus sign followed by one or more digits. The token should be named REAL_LITERAL.12. A Boolean literal token should be added. It should have two lexemes, which are true and false. The token should be named BOOL_LITERAL.You must also modify the header file tokens.h to include each the new tokens mentioned above.The compilation listing generator code should be modified as follows:1. The lastLine function should be modified to compute the total number of errors. If any errors occurred the number of lexical, syntactic and semantic errors should be displayed.If no errors occurred, it should display Compiled Successfully. It should return the total number of errors.2. The appendError function should be modified to count the number of lexical, syntactic and semantic errors. The error message passed to it should be added to a queue of messages that occurred on that line.3. The displayErrors function should be modified to display all the error messages that have occurred on the previous line and then clear the queue of messages.An example of the output of a program with no lexical errors is shown below:1 (* Program with no errors *)23 function test1 returns boolean;4 begin5 7 + 2 > 6 and 8 = 5 * (7 - 4);6 end;Compiled SuccessfullyHere is the required output for a program that contains more than one lexical error on the same line:1 -- Function with two lexical errors23 function test2 returns integer;4 begin5 7 $ 2 ^ (2 + 4);Lexical Error, Invalid Character $Lexical Error, Invalid Character ^6 end;Lexical Errors 2Syntax Errors 0Semantic Errors 0You are to submit two files.1. The first is a .zip file that contains all the source code for the project. The .zip file should contain the flex input file, which should be a .l file, all .cc and .h files and a makefile that builds the project.2. The second is a Word document (PDF or RTF is also acceptable) that contains the documentation for the project, which should include the following:a. A discussion of how you approached the projectb. A test plan that includes test cases that you have created indicating what aspects of the program each one is testing and a screen shot of your compiler run on that test case
Earn money selling
your Study Documents