Giter Site home page Giter Site logo

interview-practicum's Introduction

.NET Developer Practicum - Refactoring

Introduction:

The .Net Developer Practicum is an exercise to extend the functionality of an existing solution.

The .NET Developer practicum is evaluated on:

  1. Object Oriented Design and SOLID principles
  2. Readability
  3. Maintainability
  4. Testability
  5. Extensibility

Hints:

  • Take the time to walk through the existing functionality before trying to make changes
  • Feel free to add 3rd party packages as needed
  • Take opportunities to refactor the code and make it better.

Technical Requirements:

Solution must:

  • Compile without errors
  • Run from the command line
  • Pass all automated test cases
  • Demonstrate your knowledge of automated testing by implementing both unit and acceptance tests

Functional Requirements:

  1. Add ability to switch between morning and evening and have that be the first required parameter (case insensitive)
  2. Add ability to have different dishes in the morning and at night (See sample input/output below)
  3. You can have multiple orders of coffee in the morning (but still no more than 1 each of the other Dish Types)
  4. Dessert is not available as a morning Dish Type
  5. Preserve existing requirements:
    • You must enter a comma delimited list of Dish Types with at least one selection
    • The output must print Dish Names in the following order: entrée, side, drink, dessert
    • If invalid selection is encountered, then print "error"
    • Ignore whitespace in the input
    • Each Dish Type is optional (i.e. can have zero if not entered in the input)
    • You can have multiple orders of potatoes (but still no more than 1 each of the other Dish Types)
    • If more than one Dish Type is entered, output it once, followed by "(xN)", e.g. "potato(x2)"

Dishes for Morning

Dish Type Dish Name
1 (entrée) egg
2 (side) toast
3 (drink) coffee

Dishes for Evening

Dish Type Dish Name
1 (entrée) steak
2 (side) potato
3 (drink) wine
4 (dessert) cake

Sample Input and Output:

Input Output
morning, 1, 2, 3 egg,toast,coffee
Morning,3,3,3 coffee(x3)
morning ,1,3,2,3 egg,toast,coffee(x2)
morning, 1, 2, 2 error
morning, 1, 2, 4 error
evening,1, 2, 3, 4 steak,potato,wine,cake
Evening,1, 2, 2, 4 steak,potato(x2),cake
evening,1, 2, 3, 5 error
evening,1, 3, 2, 3 error

interview-practicum's People

Contributors

jeff-simeon avatar wylliec 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.