subject

OCaml question help!

A pangram is a sentence that contains all the letters of the English alphabet at least once. For example, the quick brown fox jumps over the lazy dog is a pangram. The program you are to write must read in an input file (input. txt - a plain text file which contains 5 sentences), line by line and check if the line read is a pangram or not. If the sentence read is a pangram, it writes true to the output file. If it is not, it writes false to the output file.

Create a pangram function that takes in two strings as arguments: the first for the name of input file and second for the name of output file. The function must adhere to the following type signature: string * string -> unit. This should be written in the language oCaml

Skeleton code **

let pangram ( (inFile : string), (outFile : string) ) : unit =

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
You know the right answer?
OCaml question help!

A pangram is a sentence that contains all the letters of the Engli...
Questions
question
Biology, 16.10.2020 18:01
question
Physics, 16.10.2020 18:01
question
English, 16.10.2020 18:01
question
Law, 16.10.2020 18:01
question
French, 16.10.2020 18:01
Questions on the website: 13722359