POS based in ruby using the terminal
2.6.3
- Write in your console the following command
- ruby main.rb
-
Introduce the code of the product that you want to scan, in this case this can be "A", "B", "C" or "D", it doesn't matter if this is majuscule or minuscule.
-
Select the option 1 to scan another product and the option 2 to get the total price of all the products scanned previously.
-
If you select the option 1 you have to do the step 2 again.
-
If you select the option 2, you will see 2 options again, first option called "S" is to start a new process of the POS and the option "n" is to finished the program.
-
Extra: If you want to run the tests, just write the following command:
- ruby tests.rb
Thanks for reading this :)