Functional Programming Answers

Questions: 109

Answers by our Experts: 81

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a function solution that, given an array A consisting of N integers, returns the total from the sum of digits in each element.


You've just got a new feature to test in our chat application: the new feature adds an ability to upload a PDF file and send it to another user as well as receive a PDF file and view it. USCM Changcu. i was popularis 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Share PDF Record voice message 2:44 PM + Message Immanuel... a. Enlist some important test scenarios for testing this feature b. Write 1 example for a functional bug report and 1 example for a GUI bug report when testing a website. C. Write an HTTP request for sending a text message in the chat application (request, body, response...)


a) Write a procedure to insert 50 randomly generated numbers (between range 100 to 500) into an array “myArray”. For example X  Random_INT(10,20) will generate a number between 10 and 20(inclusive) and assign it to variable X.

b) Write another function that takes in myArray as parameter and returns the sorted myArray as output.


Question One



a. Write algorithm using pseudocode and flowchart that uses while loops to perform the



following steps:



i.



Prompt the user to input two integers: firstNum and secondNum note that firstNum



must be less than secondNum.



ii.



Output all odd numbers between firstNum and secondNum.



iii.



Output the sum of all even numbers between firstNum and secondNum.



iv.



Output the numbers and their squares between firstNum and secondNum.



v.



Output the sum of the square of the odd numbers between firstNum and secondNum.




What technological advancement that have made your life easier?

1. Write a function which finds all Pythagorean triplets of triangles whose sides are no greater than a natural number N.

2. Given a list of integers, write a function that finds the smallest and the largest value of this list. Given a list of numbers, write a function which finds their standard deviation.


You cannot use built-in functions or numpy or pandas (use python)


Create a function with name as yours name_registration number. It should take two inputs and return product of both after doubling? Show code and screen shot of executed function in Haskell.


Create a function that take list and insert an item in the middle of that list? Show code and

screen shot of executed function in Haskell.


Q1: Create a function with name as yours name_registration number. It should take two

inputs and return product of both after doubling? Show code and screen shot of executed

function in Haskell.

Q2: Create a function that take list and insert an item in the middle of that list? Show code and

screen shot of executed function in Haskell.

Q3: Implement a function that take two inputs square them and then add them and then

return square root of it? Show code and screen shot of executed function in Haskell.


While purchasing certain items, discount is offered based on the below conditions. If quantity and price per item are input through the keyboard, write a pseudo code and draw a flowchart to calculate the total expenses.

Purchase of item above or equal to 6000 – 15 % discount Purchase of item between 5000 and 5999 - 12 % discount Purchase of item between 4000 and 4999 - 08 % discount Purchase of item less than 4000 – 03 % discount.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS