write a java program and server

Online tutoring services

Need help with this question or any other Java Programming assignment help task? Click on the button below to to hire an expert cheap.

Write a client program and server program. The server uses a socket connection to allow a client to supply a filename and the server will send the file contents to the client or an error message if the file does not exist. The client will create a new file with the same contents). The client will supply the filename "input.txt" to the server and create as it's output as "output.txt". Don't ask the user for these names. These files will be located in the top level folder of your project, just like in Eclipse Project 1. Do not accept arguments from the command line. Do not use a path name when opening the file. This means the file should be located in the top level folder of the project. Do not zip your project, just send the 2 (and only 2) .java files. You are not permitted to make this program use a GUI. If it uses a GUI, you will receive a 0. Both programs must be part of the same Eclipse project. One class named Server and one named Client. These must be the ONLY 2 CLASSES. They must be in a package named clientServerPackage. These names are not negotiable and are worth points. Not using these names will cause your program to not compile on my side without me changing them. Capitalization counts. Your name must appear at the top of all source files. This is worth points. Part of your grade includes indentation and meaningful variable names. See the item in Modules named Java Programming Style Guide. Submissions that do not meet these requirements will receive a 0. So don't bother sending 2 separate projects, one for the server and one for the client. It will receive a 0. You must submit a Project.txt file that states that your program meets all project requirements or states which requirements were not (or only partially) met. It must also list any sources from which you have copied more than 5 lines of code. Your class names must be Server and Client. Capitalization counts. It must be in a files named Server.java and Client.java. (5% of grade) It should be in a package named clientServerPackage, as explained in a previous week's video. (5% of grade) Put your name at the top of both source files. (5% of grade) Project.txt mentioned above must be uploaded. (5% of grade) You must use proper indentation like in the book and use meaningful variable names. (5% of grade) Your program must work to earn the above points. You can't submit a Hello World program that meets those requirements to get some points. Upload Server.java and Client.java and Project.txt.

Get Help With a similar task to - write a java program and server

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to write a java program and server
10
Views
0
Answers
Project to implement a scanner, recursive descent parser, de-parser for a small programming language Hawk

In this project you are to implement a scanner and a recursive descent parser, and a de-parser for a small programming language (let’s call it Hawk). Your program will take as input a program written in the provided language and produce a parse tree in the form of a table. In addition to generating the parse tree, your program must generate the proper errors when encountered. After generating the tree, you need to write a program that de-parses the tree into the original code that generated it.

The following is the grammar that you will use:

Rule 01: PROGRAM -> program DECL_SEC begin STMT_SEC end;

Rule 02: DECL_SEC -> DECL | DECL DECL_SEC

Rule 03: DECL -> ID_LIST : int ;

Rule 04: ID_LIST -> ID | ID , ID_LIST

Rule 05: ID -> a|b|c|...| z | A | ... | Z

Rule 06: STMT_SEC -> STMT | STMT STMT_SEC

Rule 07: STMT -> ASSIGN | IFSTMT | WHILESTMT | INPUT | OUTPUT

Rule 08: ASSIGN -> ID := EXPR ;

Rule 09: IFSTMT -> if COMP then STMT_SEC end if ; |

if COMP then STMT_SEC else STMT_SEC end if ;

Rule 1...

31
Views
0
Answers
Use Java to add and subtract exact time
NEED BY 9/30 AT 3:00AM!!! The website will not allow me to set that time. Please follow instructions very carefully and program in Java. Please complete both BasicTime and PreciseTime. Please code using originality... No forms of plagiarism....
42
Views
0
Answers
code in p5.js please. reply if you can help
1. Six-part drawing. The wall is divided horizontally and vertically into six equal parts. 1st part: On red, blue horizontal parallel lines, and in the center, a circle within which are yellow vertical parallel lines; 2nd part: On yellow, red horizontal parallel lines, and in the center, a square within which are blue vertical parallel lines; 3rd part: On blue, yellow horizontal parallel lines, and in the center, a triangle within which are red vertical parallel lines; 4th part: On red, yellow horizontal parallel lines, and in the center, a rectangle within which are blue vertical parallel lines; 5th part: On yellow, blue horizontal parallel lines, and in the center, a trapezoid within which are red vertical parallel lines; 6th part: On blue, red horizontal parallel lines, and in the center, a parallelogram within which are yellow vertical parallel lines. The horizontal lines do not enter the figures 2. Draw a wall with “irregular wavy color bands”. Hint: you can use curveVertex and random functions in p5js library. (2 mark...
39
Views
0
Answers
code in p5.js for three questions.
I need code in p5.js for given questions in attached file. Please reply if you can help. thx Six-part drawing. The wall is divided horizontally and vertically into six equal parts. 1st part: On red, blue horizontal parallel lines, and in the center, a circle within which are yellow vertical parallel lines; 2nd part: On yellow, red horizontal parallel lines, and in the center, a square within which are blue vertical parallel lines; 3rd part: On blue, yellow horizontal parallel lines, and in the center, a triangle within which are red vertical parallel lines; 4th part: On red, yellow horizontal parallel lines, and in the center, a rectangle within which are blue vertical parallel lines; 5th part: On yellow, blue horizontal parallel lines, and in the center, a trapezoid within which are red vertical parallel lines; 6th part: On blue, red horizontal parallel lines, and in the center, a parallelogram within which are yellow vertical parallel lines. The horizontal lines do not enter the figures...