https://github.com/osoco/clear-top-half-image-clockworkorange
clear-top-half-image-clockworkorange created by GitHub Classroom
https://github.com/osoco/clear-top-half-image-clockworkorange
Last synced: 3 months ago
JSON representation
clear-top-half-image-clockworkorange created by GitHub Classroom
- Host: GitHub
- URL: https://github.com/osoco/clear-top-half-image-clockworkorange
- Owner: osoco
- License: mit
- Created: 2019-07-17T06:49:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T06:49:18.000Z (almost 7 years ago)
- Last Synced: 2025-03-05T17:37:35.268Z (over 1 year ago)
- Size: 62.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

The image should be changed to the following one:

## 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.