An open API service indexing awesome lists of open source software.

https://github.com/osoco/clear-top-half-image-rydnr

clear-top-half-image-rydnr created by GitHub Classroom
https://github.com/osoco/clear-top-half-image-rydnr

Last synced: 4 months ago
JSON representation

clear-top-half-image-rydnr created by GitHub Classroom

Awesome Lists containing this project

README

          

# Clear top half exercise

This is a very simple exercise to check computational thinking skills.

## Description

We have to program a function named `clearTopHalf()` receiving a parameter `picture` representing an image.

The function should make the top half of the input image all white.

## Test case

Given the following input image:

![Input image](https://raw.githubusercontent.com/osoco/clear-half-top-image-exercise/master/assets/alan_kay.jpg)

The image should be changed to the following one:

![Resulting image](https://raw.githubusercontent.com/osoco/clear-half-top-image-exercise/master/assets/alan_kay_top_half.jpg)

## Solution hints

You can use any existing programming language you know or an invented syntax (something like pseudocode).

You can suppose the existence of any number of auxiliary functions you need. Simply enumerate them in your solution file with a
brief description about their behaviour.

Write your solution in a `solution.md` file in this repository. In the case you think alternative solutions write them
as `solution-1.md`, `solution-2.md`, and so on.