Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* THIS IS A TASK IN ERLANG PROGRAMMING LANGUAGE * I only need help with the third bullet point that I have highlighted in bold

* THIS IS A TASK IN ERLANG PROGRAMMING LANGUAGE

* I only need help with the third bullet point that I have highlighted in bold

Create a module file named functions.erl. In this module, write the following functions. Make sure your module name is functions, and that you export each of these functions.

  • A function named add that takes three arguments, and returns the sum of all three parameters.
  • A function named makelist that takes three arguments, and returns a list consisting of the arguments (in the order that they appear in the function call).
  • A function named third that takes one argument (a list), and returns the third element of the list.
  • A function named quadratic that takes four arguments call them A, B, C, and X and returns the value of ax2 + bx + c. Note this is not finding the value of a root, just evaluate the value of ax2 + bx + c.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. How do most insects respire ?

Answered: 1 week ago