Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Seating Chart | Working with 2D Arrays
C# Arrays

bookChallenge: Seating Chart

Task

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 " | ".

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Seating Chart

Swipe to show menu

Task

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 " | ".

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 2
single

single

some-alt