Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write 3 short programs, each in a different programming language. Specifically,

ID: 3654021 • Letter: W

Question

write 3 short programs, each in a different programming language. Specifically, you should choose 3 different languages, according to the following rules: - at least one of them should be a scripting language (examples: JavaScript, Python, VBScript) -at least one of them should be a functional language (examples: LISP, Scheme, F#, you could even use mixed languages such as C# and Javascript, as long as you use functional aspects from that language) -at least one of them should be object oriented you should use both strongly typed and dynamically typed languages The programs should do the following: The first program should calculate and print the first 10 prime numbers (note: it should calculate the numbers, not just hardcode them!) The second program should accept a string as input, and should print out how many instances of each letter of the alphabet the string contains (i.e. how many a's, how many b's etc. Example: "hello world" should report 1*d, 1*e, 1*h, 3*l, 2*o, 1*r, 1*w) The third program should accept as an input a number, and it should print out if the number is odd or even.

Explanation / Answer

TO PRINT THE PRIME NUMBERS:{using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication16 { class Program { void prime_num(long num) { bool isPrime = true; for (int i = 0; i