Project for Alexandros Nikolaos Z.
Budget $20 USD
Hi Alexandros Nikolaos Z., you finished a project already in sml I was wondering if you could give me that file also. Thank you very much
1.) Write a function il2rl of type int list -> real list that takes a list of integers and returns a list of the same numbers converted of type real. For example, if you evaluate il2rl [1,2,3] you should get [1.0,2.0,3.0].
2.) write a function ordlist of type char list -> int list that takes a list of characters and returns the list of the integers codes of those characters. For example, if you evaluate ordlist [#”A”,#”b”,#”C] you should get [65,98,67].
3.) Write a function squarelist of type int list -> int list that takes a list of integers and returns the list of the squares of those integers. For example, if you evaluate squarelist [1,2,3,4] you should get [1,4,9,16].
4.) Write a function multpairs of type (int * int ) list -> int list that takes a list of pairs of integers and returns a list of the products of each pair. For example, if the input is [(1,2),(3,4)], your function should return [2,12].
5.) Write a function sqsum of type int list -> int that takes a list of integers and returns the sum of the squares of those integers. For example, if you evaluate sqsum [ 1,2,3,4} you should get 3.0.