Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Inventory Management System | Dictionaries and Key-Value Collections
C# Lists & Collections

bookChallenge: Inventory Management System

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 5
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Inventory Management System

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 5
single

single

some-alt