For each situation, provide a pseudocoded algorithm that would accomplish the task. Make sure to indent where appropriate.Situat
ion AWrite a program that:Takes the list lotsOfNumbers and uses a loop to find the sum of all of the odd numbers in the list (hint: use Mod).Displays the sum.Situation BWrite a procedure that takes a positive integer as a parameter. If the number given to the procedure is no more than 30, the procedure should return the absolute difference between that number and 30. If the number is greater than 30, the procedure should return the number doubled.Examples:difference30(13) → 17difference30(46) → 92difference30(30) → 0Situation CWrite a procedure ConvertToBinary that takes an input as a number from 0 to 16 (including 0 but not 16) and converts it to a binary number. The binary number should be returned as a list.SubmitA file (.pdf, .doc, etc.) detailing your responses.