Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Phonebook Application | Dictionaries and Key-Value Collections
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Lists & Collections

bookChallenge: Phonebook Application

Taak

Swipe to start coding

Create a simple phonebook application using a dictionary to manage contacts. Implement three functions: one to add contacts, one to search for a contact by name, and one to delete a contact by name.

  • Add a contact by setting the provided name as the key and the number as the value in the dictionary.
  • Search for a contact by name and return the associated number if found, or the string "Contact not found" if the name does not exist in the dictionary.
  • Delete a contact by name and return true if the contact was deleted, or false if the name was not found in the dictionary.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 3
single

single

Vraag AI

expand

Vraag AI

ChatGPT

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

close

bookChallenge: Phonebook Application

Veeg om het menu te tonen

Taak

Swipe to start coding

Create a simple phonebook application using a dictionary to manage contacts. Implement three functions: one to add contacts, one to search for a contact by name, and one to delete a contact by name.

  • Add a contact by setting the provided name as the key and the number as the value in the dictionary.
  • Search for a contact by name and return the associated number if found, or the string "Contact not found" if the name does not exist in the dictionary.
  • Delete a contact by name and return true if the contact was deleted, or false if the name was not found in the dictionary.

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 3
single

single

some-alt