Complete a Sample project in .NET

  • Hali: Closed
  • Zawadi: $100
  • Wasilisho Zilizopokelewa: 5
  • Mshindi: vladom81

Maelezo ya Shindano

General Instructions
1. Use Visual Studio 2019
2. Use .NET Core
3. Use the latest C# language features (dependency Injection, Separation of Layers, Unit Tests). This is must. Do not submit solution with just one project in it. Need to have Servicelayer, Models etc. Use DI where you think is applicable.

Problem Statement: Need a sample Vending Machine application. Simple console application is fine. The main thing is to use above guidelines along with SOLID principles. Need to use async Tasks/Parallel Linq to take advantage of Parallel programming !!
The vending machine should start with the following inventory:

1 Coke: Quantity=10; Price=$1.25
2 M&M’s: Quantity=15; Price=$1.89
3 Water: Quantity=5; Price=$.89
4 Snickers: Quantity=7; Price=$2.05
where 1, 2, 3 & 4 are the unique Item Numbers.
You can store these in a csv file.
• The console application should accept the following two commands:
1. inv
2. order <amount> <item_number> <Quantity>

• Command 1: inv
Displays the current inventory in format: {Item Number} {Item Desc} {Quantity} {Price}
For example:
1 Coke (10): $1.25
2 M&M’s (15): $1.89
3 Water (5): $.89
4 Snickers (7): $2.05

• Command 2: order <amount> <item_number> <Quantity>
This command is used to place an order for an item. User would enter order followed by the above params.
For example, this is how to buy three packs of M&M’s from the vending machine
order 5.67 2 3

To keep it simple, require exact change (for now)
Tell the user if their order was successful. If the order was not successful, tell the user why.

Need the final code by Sunday 9PM IST

Ujuzi unaopendekezwa

Wasilisho kuu kwenye hili shindano

Angalia wasilisho zaidi

Bodi ya Ufafanuzi ya Umma

  • pulkitgupta317
    pulkitgupta317
    • Miaka 3 iliyopita

    Hi Henu, Any updates?

    • Miaka 3 iliyopita

Jinsi ya kuanza kwa kutumia mashindano

  • Chapisha Shindano Lako

    Chapisha Shindano Lako Haraka na rahisi

  • Pokea wasilisho nyingi

    Pokea Wasilisho Nyingi Kutoka kote ulimwenguni

  • Tuza wasilisho bora zaidi

    Tuza wasilisho bora zaidi Pakua faili - Rahisi!

Tuma Shindano Sasa ama Jiunge nasi Leo!