留学生作业代写do not hesitate to contact me!
WeChat:lovexc60
ECS 140A Programming Languages
Spring 2020
Homework 4 due Tuesday June 2nd at 5pm
About This Assignment
• This assignment asks you to complete programming tasks using the Go programming
language.
• You are only allowed to use the subset of Go that we have discussed in class.
No credit will be given in this assignment if any of the problem solutions use
material not discussed in class. Please use Piazza for any clarifications regarding
this issue.
– Especially, the use of the runtime and reflect packages is forbidden (runtime
is used in test scripts to check whether your program is concurrent, but other than
that you should not use this package).
– Although the package time is discussed in class, you are NOT allowed to use it
in this homework (e.g. time.Sleep).
• Since the focus of this homework is concurrency, homework solutions are
required to be concurrent in order to receive credit.
• To complete the assignment (i) download hw4-handout.zip from Canvas, (ii) modify the .go files in the hw4-handout directory as per the instructions in this document, and (iii) zip the hw4-handout directory into hw4-handout.zip and upload
this zip file to Canvas by the due date.
Do not change the file names, create new files, or change the directory structure in
hw4-handout.
• This assignment has to be worked on individually.
• We will be using Go version 1.11.4, which can be downloaded from
https://golang.org/dl/
Run the command go version to verify that you have the correct version installed:
$ go version
go version go1.11.4
• Go 1.11.4 is installed on all CSIF machines in the directory /usr/local/go/; the
go binary is, thus, at /usr/local/go/bin/go.
Consider adding /usr/local/go/bin to your PATH.