question archive This project is based on a Real- World scenario
Subject:Computer SciencePrice: Bought3
This project is based on a Real- World scenario. A customer gets an updated price sheet from their vendor, Gardner Denver (https://www.gardnerdenver.com / https://www.gardnerdenver.com/en-us/industrials/products/compressors). This updated price sheet comes in the form of an Excel spreadsheet with three (3) columns - Material (aka part number), Description, Price.
The current software they use for managing their inventory, pricing, quotes, invoices, and other such fun things in business requires that their price update is in the form of a CSV file. But, not just any old CSV file, and not in the current format the pricing sheet comes in. And there are going to be three (3) files. One for the main warehouse, one for warehouse 00 and one for warehouse 01. The CSV files must meet the following criteria:
Here is a sample of the result from each warehouse file.
Main Warehouse
00001143 SP,136.41,227.35
00001223 SP,48.66,81.10
00001236 SP,149.72,249.53
0001-0003-00,100.95,168.25
00015172 W,85.32,142.20
Warehouse-00
00001143 SP-00,136.41,227.35
00001223 SP-00,48.66,81.10
00001236 SP-00,149.72,249.53
0001-0003-00-00,100.95,168.25
00015172 W-00,85.32,142.20
Warehouse-01
00001143 SP-01,136.41,227.35
00001223 SP-01,48.66,81.10
00001236 SP-01,149.72,249.53
0001-0003-00-01,100.95,168.25
00015172 W-01,85.32,142.20
Objectives / Deliverables
What you must do is develop a PowerShell script that converts this Excel file into the three separate CSV files with the above criteria. You CANNOT manipulate the Excel file OUTSIDE of PowerShell. This MUST be done completely within your PowerShell script.
This means that you must either have Excel installed on the machine or you will need to get and use the ImportExcel module to manipulate the Excel file. You do NOT need to use functions, but you can if you wish to.