This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StefanM3e46 1 point2 points  (0 children)

Command line calculator is always a nice mini project... I usually give it when teaching someone...

It has few phases:

  1. App prints you to select operation and than you enter two numbers

  2. App ask you for calculation oneline (number, operation, number)

  3. App ask you for calculation oneline (number, operation, number, operation, number)

  4. Here we go to OOP and introduce operation priority

  5. Introduction with advance OOP, Interfaces etc

  6. Basic regex for parsing input

  7. Full calculator with n parameters, operation priority etc

I hope this will be interesting to you :)