Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Inventory Management System | Dictionaries and Key-Value Collections
C# Lists & Collections

bookChallenge: Inventory Management System

Taak

Swipe to start coding

Build a C# program that manages a store's inventory using a dictionary. The program should allow adding products with their quantities, restocking products, and listing products that are currently out of stock.

  • Add a product with a specified quantity to the inventory.
  • If a product already exists, increase its quantity by the specified amount.
  • Restock a product by increasing its quantity in the inventory.
  • If a product does not exist when restocking, add it with the specified quantity.
  • Return a list of products that have a quantity of zero.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me a real-world example?

close

bookChallenge: Inventory Management System

Veeg om het menu te tonen

Taak

Swipe to start coding

Build a C# program that manages a store's inventory using a dictionary. The program should allow adding products with their quantities, restocking products, and listing products that are currently out of stock.

  • Add a product with a specified quantity to the inventory.
  • If a product already exists, increase its quantity by the specified amount.
  • Restock a product by increasing its quantity in the inventory.
  • If a product does not exist when restocking, add it with the specified quantity.
  • Return a list of products that have a quantity of zero.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 5
single

single

some-alt