Code Monkey home page Code Monkey logo

c3projects--randommenugenerator's Introduction

Random Menu Generator

Breakfast

Create a random menu generator that can be played from the Terminal.

Your code should use three arrays, each containing a different type of word, phrase, ingredient, or descriptor you would associate with food. Your generator should pull one item from each array to create a "menu item".

For example, you could have a list of adjectives, cooking styles and foods in order to create something like:

  • hot pan-fried dumplings
  • soft steamed clams

Each array should contain ten items. When the program runs, it should create and show a list of ten different numbered menu items.

1. hot pan-fried dumplings
2. soft steamed clams
3. ...
...
10. creamy taco cake

Lunch

Expand your solution to use any number of menu items that you provided. So if you expand your arrays to contain 15 or 20 items, your program will show a list of 15 or 20 items.

Dinner

Expand your solution to ensure that no descriptive term in a menu item is ever repeated. Expand your solution to allow the user to determine how many items they'd like to see via user input.

Dessert

Instead of using hardcoded or predefined arrays, make your program accept user input. Then generate menu items from the user provided input. You'll need to prompt for and store a varying number of entries for each array.

c3projects--randommenugenerator's People

Contributors

wangg131 avatar jnf avatar sojeri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.