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

https://github.com/osoco/copy-top-third-exercise-valerialp

copy-top-third-exercise-valerialp created by GitHub Classroom
https://github.com/osoco/copy-top-third-exercise-valerialp

Last synced: 5 months ago
JSON representation

copy-top-third-exercise-valerialp created by GitHub Classroom

Awesome Lists containing this project

README

          

# Copy third down exercise

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

## Description

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

The function takes in a picture and copies the top third of the image onto the bottom third of the image.

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