Page under construction!!

Solution of exercise: Analysis of requirements specifications to identify goals

  1. Specs: Write a function which, given a slice of integers as parameter, finds the ones that are greater than 7 and multiple of 4 and returns their product.
  1. Specs: Write a program that reads 10 integers from standard input and for each one prints if it is even or odd.
  1. Specs: Write a program that reads a sequence of words from standard input and prints the first word which begins with the character ‘a’, or “no word with ‘a’ found”
  1. Specs: Write a program that reads a sequence of integers from standard input and, for each one after the first one, prints if it is the successor of the number entered before it.
  1. Specs: Write a function that receives a word as parameter and returns true if the word contains (at least) a double letter, false otherwise.
  1. Specs: Write a program that reads a sequence of words from standard input and prints the length of the shortest word.
  1. Specs: Write a program that reads an integer number from the command line. The number represents the balance of a bank account. The program then reads a sequence of expenses to be charged to the bank account and prints the final balance.
  1. Specs: Write a program that reads a sequence of integers from standard input and prints the smallest odd number among them. The input sequence may contain both positive and negative numbers.
  1. Specs: Write a program that reads a sequence of positive integers ended by -1 from standard input and prints the first number greater than 100, if there is one; otherwise it prints “no numbers greater than 100”.
  1. Specs: Write a program that reads a sequence of positive integers ended by 0 from standard input, prints ’+’ every time the new value is greater than or equal to the preceding one, ‘-’ otherwise.