Challenge 2018-12

Maths Challenge

Write a program that outputs all possibilities to put + or – or nothing between the numbers 1,2,…,9 (in this order) such that the result is 100.
For example 1 + 2 + 3 – 4 + 5 + 6 + 78 + 9 = 100

Quick Text Challenges

Write a program to enter a word or sentence, then do one of the following:

  • Find the longest word in a sentence
  • Sort the letters to print them in alphabetical order
  • Replace every letter with the letter following it in the alphabet (c becomes d, z becomes a)
  • Capitalize every vowel
  • Using the TextWindow, print each word on a new line in a rectangular frame. For example the sentence “Hello World in a frame” gets printed as:

Harder Text Challenges

Write a program that automatically converts English text to Morse code and vice versa
Given two strings, write a program that efficiently finds the longest common subsequence

Graphics Challenges

Draw a picture of a face with eyes that blink
Plot a graph of Sin, Cos and Tan functions
File:Mplwp sin cos tan piaxis.svg - Wikimedia Commons

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *