Write in sml using pattern style of questions

Assignment Help Computer Engineering
Reference no: EM133361878

Question: Write in sml using pattern style of questions below of also showing sample runs.

1. Write a higher order function chcase to convert input string to uppercase.You may assume string contains only letters.

chcase("ChCase") > "CHCASE".

2.Write a function inde which returns index(start from1) of occurance of a given value. Use helper function of using two functions.

inde(1, [1,2,1,1,2,2,1]) > [1,3,4,7].

3.Write a function permu to generate permutation of identity list from 1 to n [1,2, .., n].

permu(2) > [[1,2], ,[2,1]] permu(3) > [[1,2,3],[2,1,3],[2,3,1],[1,3,2],[3,1,2],[3,2,1]].

 

Reference no: EM133361878

Questions Cloud

Explanation of results of literature review : Give an explanation of the results of literature review and the connection to practice problem (Nurse Burnout).
Examine the program so you understand the code : Compile and execute the C program so you understand what the behavior looks like. Examine the program so you understand the code.
What is good diagnosis : What is a good diagnosis? What are some labs or images we can do? What medications are a good option for her ?
What are some diagnosis : 41-year-old female in clinic to follow up Pap results and she also reports a new palpable approx. 1x1 cm mobile, What are some diagnosis ?
Write in sml using pattern style of questions : Write in sml using pattern style of questions below of also showing sample runs. 1. Write a higher order function chcase to convert input string to uppercase.
Diagnosis is basal cell carcinoma of the skin : Diagnosis is basal cell carcinoma of the skin (nose lesion) for a 72-year-old male caucasian patient, types of biopsies:
Create tables for students and grades : Create tables for students and grades, and Insert appropriate data using SQL. Also write a SQL query to retrieve list of all the students and their highest
Maximizing independence for aggressive patient : Minimizing restrictions and maximizing independence for an aggressive patient
Woman has pelvic inflammatory disease : What laboratory test results would the nurse expect to find if the woman has pelvic inflammatory disease?

Reviews

Write a Review

Computer Engineering Questions & Answers

  How can you reply to this thesis in not less than hundred

How can you reply to this thesis in not less than hundred words: My thesis from last week was "CDC is well known for their information not only on ADHD

  Determine the conceptual model that you would use

Multi-Touch Screens vs. Mouse-Driven Screens- Determine the conceptual model that you would use when designing a product for your restaurant.

  Write a multithreaded java program for patient room access

Write a multithreaded Java program for patient room access control in a hospital.

  Write a recursive function that takes one parameter

Write a recursive function that takes one parameter n (n>0) of type int and returns

  Write a function to input a sound then create a canvas sound

Write a function to input a sound, then create a canvas sound of the same length. Copy samples from the input into the canvas every third position.

  A function that take a space delimited text as a parameter

Write a function named mostCommonWord() that takes a space delimited text as a parameter and return the most common word.

  Your program must provide a menu to the user this menu

your program must provide a menu to the user. this menu should list five different products of your choice. once the

  Compute a monte carlo estimate of the beta

Write a function to compute a Monte Carlo estimate of the Beta (3, 3) cdf, and use the function to estimate F (x) for x = 0.1, 0.2, ..., 0.9.

  Calculate the mean value and standard deviation of x

For t = 0 to 8?, take discrete sample data of the function x(t) with time interval of 0.025 sec, thus forming a dataset {x}.

  Find the two smallest values in a list are passed

What happens if the functions to find the two smallest values in a list are passed a list of length 1? What should happen, and why? How about length 0?

  Create a program that computes the sum of all integers

REAL1-GC MISCNew York University Create a program that computes the sum of all integers, under $n$, divisible by $a$ and $b$.

  Implement all the bytecode classes listed in the table

Implement ALL the ByteCode classes listed in the table on page. Be sure to create the correct abstractions for the bytecodes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd