Starting from:
$35

$29

Programming Assignment #1 Solution

Please read the questions carefully before you start your work.




Please ask the instructor any time if you don’t understand the question or find any mistakes in the question.







In this assignment you will develop a simple web server using Python with the following requirements:




The port can be defined at the command line, else it defaults to 8080. (ex. server.py 8888)



The content for the webserver will be directory where the server is run from.



A 404 error message will be displayed for any file that is not found.



The program will terminate after responding to the first request.



Hint: The socket module from python will be very useful.










Grading Criterion:




The grade will be zero if the file is not submitted correctly or on time The grade will be zero if the program fails to run




Your program should solve the above requirements. Ten points will be taken off for each




requirement that is not met.

Non-original work will be graded as a zero




If multiple submissions are allowed, only the latest submission will be graded




Submission instructions:




Name your file studentID_lab#.py



Attach your file to the correct assignment under the Lessons category and submit



You are a CS major, that should be more directions than you needed

More products