Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Ask your questions and receive precise answers from experienced professionals across different disciplines. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

Lists and Procedures Pseudocode Practice
For each situation, provide a pseudocoded algorithm that would accomplish the task. Make sure to indent where appropriate.

Situation A
Write 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 B
Write 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) → 17

difference30(46) → 92

difference30(30) → 0

Situation C
Write 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