Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Seating Chart | Working with 2D Arrays
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Seating Chart

Uppgift

Swipe to start coding

You have learned how to declare and use 2D arrays. In this task, you will practice by creating and displaying a classroom seating chart.

  • Create a 2D string array with 3 rows and 4 columns where each element is a student's name.
  • Return the seating chart from the CreateSeatingChart function.
  • Print the seating chart in table format using the PrintSeatingChart function so that each row of names appears on a new line, and names in the same row are separated by " | ".

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Seating Chart

Svep för att visa menyn

Uppgift

Swipe to start coding

You have learned how to declare and use 2D arrays. In this task, you will practice by creating and displaying a classroom seating chart.

  • Create a 2D string array with 3 rows and 4 columns where each element is a student's name.
  • Return the seating chart from the CreateSeatingChart function.
  • Print the seating chart in table format using the PrintSeatingChart function so that each row of names appears on a new line, and names in the same row are separated by " | ".

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 4. Kapitel 2
single

single

some-alt