联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Python编程Python编程

日期:2021-06-30 10:38

2021/6/28 Homework 1

Due: Mon, Jun 28, 1:59pm

How to Submit

These files

must compile without errors

in GHCi. Put all non-working parts of your solution inthe comments! If your file does not compile, you will not get any points for the homework.

Please preserve the existing

doctest

comments in the template (the lines starting with

>>>

andthe results underneath). This will help the TA during grading.

If you can't solve a problem, you can get partial credit by describing in comments what you triedand where you got stuck. However, your explanation must convince the TA that really tried tosolve the problem.

Late submissions will not be accepted. Do not send solutions by email.

If submitting individually

: Just upload your submission to the assignment in Canvas.

Yoursubmission should consist of two files named

Tree.hs

and

Nat.hs.

If submitting as part of a team

:

Assign yourself to a “Group” in Canvas. Select “People” from the menu, then select the“Groups” tab. Click “Join” on a group whose name starts with “HW1”.

You must coordinate with your team members to all join the same group. When choosing agroup, please use the

smallest available

group number.

Do not add yourself to a group unless you have already coordinated and everyone has agreedto be in a group together.

Your file must contain the names and ID numbers of each member of your group in acomment at the top of your file. This is to ensure that nobody changed the composition of yourgroup. Put the

names (as stated in Canvas)

and

ONID IDs

of all team members as acomment at the top of the file.

If your submission does not include the names of all teammembers you will not get any points for the homework.

Your submission should consist of two files named

Tree.hs

and

Nat.hs.

Description

The goals of this assignment are to help you learn the basics of programming in Haskell: data types,functions, pattern matching, and recursion.

The assignment consists of two parts. For each part, you should download the correspondingtemplate, rename it, and add your definitions directly to the file.


版权所有:编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。