/PSM

Requirements Create a program that we can use to add promotional images to our advertisements. Our ads vary in size, and so sometimes we may include one large image or sometimes we may include several images in a paged gallery within the ad. This program can be a command-line program, a library, or an API. Expected Input ● Number of images to output ● Image keywords to match as a comma-separated-value, i.e. “blue, flowers, desert” Expected Output ● Total number of results ● Image URL ● Image Width ● Image Height The output format can be a table of HTML data if you feel that is easier, but in most cases simply printing output to the command line or screen in a structured format will be good enough. Image Data You can use a simple hash or array of data, a flat file of data (like JSON or TOML), or you can build a small db table if you are so inclined. The data is not as important as the structure of your code, your functions, and the ability for us to run your code with this test data.

Primary LanguageJavaScript

Stargazers

No one’s star this repository yet.