1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vilka [71]
3 years ago
8

Write a function in Erlang called func that takes a list of tuples and returns a new list consisting of tuples from the original

list, for which the first tuple element is smaller than the second one (each tuple in the incoming list consists of only two elements).
Computers and Technology
1 answer:
vovikov84 [41]3 years ago
6 0

Answer:

Please find the complete question in the attached file.

Explanation:

Following are the code to the given question:

-module(helloworld)//use a module

-export([start/0])

start() ->//start module

func([Head Taill) ->//defining a method func that takes a parameter

{

first, second} = Head,//holding head value

if //defining if block

first > second -> func(Tail)//method func that takes a parameter

true ->

[first, second}|func(Tail)]//method func that takes a parameter

end

You might be interested in
HELP PLEase!!! Which option is an outcome of a project stated in quantifiable terms?
dimulka [17.4K]

Answer: C) a 10 percent increase in efficiency of sales of a particular product line over one year

The term "quantifiable" means that we can attach a number to it. Specifically, a number in which we can do math operations upon it. Something like telephone numbers or serial numbers don't really count as quantifiable entities. They are qualitative variables instead. So you have to be careful what numbers you run into. In this case, "10 percent increase in efficiency" is quantitative and fits what we're after.

A 10% increase corresponds to the multiplier 1.10; for instance, if you had sales of 40 million dollars one year, then a 10% increase is 1.10*40 = 44 million in sales. This is one example where we apply a math operation (specifically multiplication) on the value in question.

4 0
3 years ago
Why is it important for element IDs to have meaningful names
Anit [1.1K]

Answer:

  to remind of purpose and use

Explanation:

When a data item has a meaningful name, the name can be a reminder of the purpose and use of the item. It can also be suggestive of the range of legitimate values. It also makes error-checking easier.

If the name of it is not meaningful, this information about the item must be found in a dictionary somewhere, often a time-consuming or difficult project. Using elements with non-meaningful IDs provides opportunities for error and confusion--not something that is generally wanted.

6 0
3 years ago
How does a programmer use digital waves to transfer sound?
Inessa [10]
An analogue sound wave is picked up by a microphone and sent to an Analogue to Digital (ADC) converter in the form of analogue electrical signals. The ADC converts the electrical signals into digital values which can be stored on a computer. Once in a digital format you can edit sounds with programs such as audacity.
7 0
3 years ago
When you include a Word cover page in a multipage document, the cover page is not considered the first page. True False?
Bas_tet [7]
This is true, because the first page would not be the cover page.
4 0
4 years ago
Read 2 more answers
A modem from which communications occur in discrete units, and in which the start of a unit is signaled by a start bit at the fr
lyudmila [28]

Answer:

Asynchronous modem

Explanation:

In an asynchronous modem, data is transmitted in an infrequent stream of small packets, in which a start bit at the front signals the start of a unit, and the end of the unit is signaled by a stop bit at the back.

8 0
4 years ago
Other questions:
  • Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet and inches using the HeightF
    5·1 answer
  • Which feature is a dynamic grouping of applications used in Security policy rules?
    7·1 answer
  • With the technology scaling and process improvement, do you think that existing CMOS will be able to exist in future?
    6·1 answer
  • When configuring services, what linux directory typically contains server configuration files?
    8·1 answer
  • What is a palindrome?
    13·1 answer
  • IOS jail broken or Android unrooted which is better to hack with
    6·1 answer
  • A mobile device is freezing almost daily. The device remains powered on and the screen illuminated. The user restarts the device
    12·1 answer
  • Which part of a resume gives an account of past jobs and internships?
    10·1 answer
  • Do you want my hero academia?<br><br><br><br><br><br> if so, who's your favorite character :&gt;
    5·2 answers
  • A. Modify the FitnessTracker class that includes data fields for a fitness activity, the number of minutes spent participating,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!