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

bookChallenge: Seating Chart

Opgave

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 alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Seating Chart

Stryg for at vise menuen

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 2
single

single

some-alt