Skip to content

Simple program that given a file with the information of the product catalog in stock, calculates the total amount

Notifications You must be signed in to change notification settings

dosper7/CalculateOrder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Simple Order Calculator

This is a simple program that given a .csv file with the product catalog in stock information calculates the total amount given the following format:

  • Path_to_catalog Product1 Quantity_P1 [Product2 Quantity_P2, ....]

The catalog format is the following [ProductID],[Stock],[Price].

Example: p4,10,250.00 P10,5,175.00 P12,5,1000.00

To use the program follow the steps:

  • Install .NET Core SDK - https://www.microsoft.com/net/download
  • Clone this repository
  • Execute the command dotnet run with the info you want. Example: dotnet run C://catalog.csv p1 5 p2 4 p12 8

I've included some sample data just facilitate, for instance:

  • input: dotnet run Assets/sample.catalog.csv P1 6 P2 5 P4 1
  • result: total order price: 180000

About

Simple program that given a file with the information of the product catalog in stock, calculates the total amount

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages