Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Inventory Management System | Dictionaries and Key-Value Collections
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Lists & Collections

bookChallenge: Inventory Management System

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 5
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Inventory Management System

Sveip for å vise menyen

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 5
single

single

some-alt