tutorbin

haskell programming homework help

Boost your journey with 24/7 access to skilled experts, offering unmatched haskell programming homework help

tutorbin

Trusted by 1.1 M+ Happy Students

Recently Asked haskell programming Questions

Expert help when you need it
  • Q1:1. a)Write a program that allows a user to select a number between 1 and 5 and then prints a famous quote (quotes are of your choosing). After printing the quote, the program will ask whether the user would like another. If the user enters n, the program ends; otherwise, the user gets another quote. The program repeats until the user enters n. Try to use lazy evaluation and treat the user input as a list rather than recursively calling main at the end. b) The following Haskell functions each take predicate function and a list as input and remove certain items from the list based on the predicate function. They each have this signature: (a -> Bool) -> [a] -> [a] a. Itrim removes all items from the start of the list that satisfy the predicate function. b. rtrim removes all items from the end of the list that satisfy the predicate function. c. trim removes all items from both the start and end of the list that satisfy the predicate function. Implement these functions and demonstrate the result.See Answer
  • Q2:2. Using Haskell: a)Write a function rotabc that changes a's to b's, b's to c's and c's to a's in a string. Only lowercase letters are affected. b) Implement a Haskell function that deletes the first occurrence of an element from a list. c) Write a function in Haskell that times execution of a function. d) Write a function in Haskell that formats the time of daySee Answer
  • Q3:Implementation, Test File and Report In addition to your solutions to these programming challenges, you are asked to submit an additional Tests.hs file with your own tests, and a report: You are expected to test your code carefully before submitting it and we ask that you write a report on your development strategy. Your report should include an explanation of how you implemented and tested your solutions. Your report should be up to 1 page (400 words). Note that this report is not expected to explain how your code works, as this should be evident from your commented code itself. Instead you should cover the development and testing tools and techniques you used, and comment on their effectiveness. Your report should include a second page with a bibliography listing the source(s) for any fragments of code written by other people that you have adapted or included directly in your submission. Submission and Marking Your Haskell solutions should be submitted as a single plain text file Challenges.hs. Your tests should also be submitted as a plain text file Tests.hs that includes a main function. Finally, your report should be submitted as a PDF file, Report.pdf. The marking scheme is given in the appendix below. There are up to 5 marks for your solution to each of the programming challenges, up to 5 for your explanation of how you implemented and tested these, and up to 5 for your coding style. This gives a maximum of 40 marks for this assignment, which is worth 40% of the module. Your solutions to these challenges will be subject to automated testing so it is important that you adhere to the type definitions and type signatures given in the supplied dummy code file Challenges.hs. Do not change the list of functions and types exported by this file. Your code will be run using a command line such as stack ghc -e "main" CW2Tests.hs, where CW2Tests.hs imports Challenge.hs. You should check before you submit that your solution compiles and runs as expected. The supplied Parsing.hs file will be present so it is safe to import this and any library included in the standard Haskell distribution (Version 7.6.3). Third party libraries will not be present so do not import these. Your own test cases in the submitted file Tests.hs will also be run using a similar command line, so make sure this file defines a suitable main function that runs your tests and reports the results.See Answer
  • Q4:5.1 Submission For submission, you must submit three files (slip.hs, tests.slip, and rapport.tex) through the Moodle (also known as StudiUM) page of the course. Make sure the report compiles correctly on ens.iro (which you can connect to via SSH). 6 Details - The grade will be divided as follows: 25% for the report, 60% for the code (divided between s21, hinsert, and eval), and 15% for the tests. - Any use of material (code or text) borrowed from someone else (found on the web,...) must be properly cited, otherwise it will be considered as plagiarism. - The code must in no case exceed 80 columns. - Check the course web page for any errata, and other additional instructions. - The grade is based on two parts: automatic tests, reading of the code, and the report. The most important criterion is that your code should behave correctly. Next comes the quality of the code: the simpler, the better. If there are many comments, it is usually a sign that the code is not clear; but of course,See Answer

TutorBin Testimonials

I got my Haskell Programming homework done on time. My assignment is proofread and edited by professionals. Got zero plagiarism as experts developed my assignment from scratch. Feel relieved and super excited.

Joey Dip

I found TutorBin Haskell Programming homework help when I was struggling with complex concepts. Experts provided step-wise explanations and examples to help me understand concepts clearly.

Rick Jordon

TutorBin experts resolve your doubts without making you wait for long. Their experts are responsive & available 24/7 whenever you need Haskell Programming subject guidance.

Andrea Jacobs

I trust TutorBin for assisting me in completing Haskell Programming assignments with quality and 100% accuracy. Experts are polite, listen to my problems, and have extensive experience in their domain.

Lilian King

I got my Haskell Programming homework done on time. My assignment is proofread and edited by professionals. Got zero plagiarism as experts developed my assignment from scratch. Feel relieved and super excited.

Joey Dip

I found TutorBin Haskell Programming homework help when I was struggling with complex concepts. Experts provided step-wise explanations and examples to help me understand concepts clearly.

Rick Jordon

TutorBin helping students around the globe

TutorBin believes that distance should never be a barrier to learning. Over 500000+ orders and 100000+ happy customers explain TutorBin has become the name that keeps learning fun in the UK, USA, Canada, Australia, Singapore, and UAE.