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 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
OCaml question help!

A pangram is a sentence that contains all the letters of the Engli...
Questions
question
Computers and Technology, 10.10.2019 21:50
question
Mathematics, 10.10.2019 21:50
question
Mathematics, 10.10.2019 21:50
question
Mathematics, 10.10.2019 21:50
question
Mathematics, 10.10.2019 21:50
question
Biology, 10.10.2019 21:50
Questions on the website: 13722361