Arrays, Structures And Strings - C# Programming Exercises

Explore our curated selection of Arrays, Structures, and Strings C# Programming Exercises! Tailored to provide practical experience with essential data structures and string manipulation in C#, these exercises offer a dynamic learning journey for beginners. From mastering array manipulation to understanding the intricacies of working with structures and strings, each exercise is designed to enhance your proficiency in C# programming. Dive in and elevate your programming skills today!

  •  Reverse array

    In this C# exercise, you are asked to write a program that prompts the user for 5 numbers, stores them in an array, and displays them in reverse order. ...

  •  Search in array

    In this C# exercise, you are asked to write a program that checks if a given data belongs to a previously created list. The steps to follow are:

  •  Array of even numbers

    In this C# exercise, you are asked to write a program that asks the user for 10 integer numbers and displays the even ones. This exercise w...

  •  Array of positive and negative numbers

    In this C# exercise, you are asked to write a program that asks the user for 10 real numbers and displays the average of the positive ones and the average of t...

  •  Many numbers and sum

    In this C# exercise, you are asked to write a program that asks the user for several numbers (until they enter the word "end") and then displays the sum of the...

  •  Two dimensional array

    In this C# exercise, you are asked to write a program that asks the user for marks for 20 pupils (2 groups of 10, using a two-dimensional array), and then disp...

  •  Statistics V2

    In this C# exercise, you are asked to create a statistical program that allows the user to perform the following actions: - Add new data - See all data ...

  •  Struct

    In this C# exercise, you are asked to create a struct to store data of 2D points. The fields for each point will be: - x coordinate (short)

  •  Array of struct

    In this C# exercise, you are asked to expand the previous exercise that used a struct to store 2D points. Now, you need to store up to 1,000 points usin...

  •  Array of struct and menu

    In this C# exercise, you are asked to expand the previous exercise (array of points) so that the program displays an interactive menu. The menu should a...

  •  Books database

    In this C# exercise, you are asked to create a small database that will be used to store information about books. For each book, the following data should be kept:

  •  Triangle V2

    In this C# exercise, you are asked to create a program that asks the user for their name and then displays a triangle made from that name, starting with 1 letter and ...

  •  Rectangle V3

    In this C# exercise, you are asked to create a program that asks the user for their name and a size, then displays a hollow rectangle made from that name.

  •  Centered triangle

    In this C# exercise, you are asked to create a program that asks the user for their name and a size, then displays a hollow rectangle made from t...

  •  Cities database

    In this exercise, you are asked to create a database to store information about cities. In the first approach, you will store only the name...

  •  Banner

    This Exercise in C# involves creating a program that imitates the basic Unix SysV "banner" utility, allowing you to display large texts in a similar manner. The purpo...

  •  Triangle right side

    This Exercise in C# involves creating a program that asks the user for a text string and displays a right-aligned triangle using that string. The triang...

  •  Strings manipulation

    This Exercise in C# involves creating a program that asks the user for a text string and performs three specific transformations on it. The program must...

  •  Nested structs

    This Exercise in C# involves creating a struct to store two pieces of data for a person: their name and their date of birth. The date of birth...

  •  Sort data

    This Exercise in C# involves creating a program that asks the user for 10 integer numbers (from -1000 to 1000), sorts them, and then displays them in ascending...

  •  Two dimensional array as buffer for screen

    This Exercise in C# involves creating a program that declares a 70x20 two-dimensional array of characters and "draws" 80 letters (e.g., 'X') in random positions withi...

  •  Two dimensional array 2: circunference on screen

    This Exercise in C# involves creating a program that declares a 70x20 two-dimensional array of characters and "draws" a circumference with a radius of 8 inside it. To...

  •  Computer programs

    Exercise in C# involves creating a program that can store up to 1000 records of computer programs. For each program, the following data should be stored: name,...

  •  Exercise tasks

    This exercise in C# consists of creating a program that can store up to 2000 "to-do tasks". Each task must store the following data: • Date (a set of 3 data: ...

  •  Household accounts

    This exercise in C# consists of creating a program that can store up to 10,000 costs and revenues, to create a small domestic accounting system. For eac...

 More C# Programming Exercises Grouped

  •  First contact with C# Sharp

    Explore our set of C# programming exercises! Specifically designed for beginners, these exercises will help you develop a solid understanding of the basics of C#. From variables and data types to control structures and s...

  •  Flow Control

    Explore our curated collection of Flow Control C# Programming Exercises! Designed to strengthen your understanding and mastery of flow control structures in C#, these exercises offer a hands-on approach to learning. From...

  •  Basic Data Types

    Explore our comprehensive collection of Basic Data Types C# Programming Exercises! Designed to provide hands-on practice with fundamental data types in C#, these exercises are perfect for beginners looking to solidify th...

  •  Functions

    Embark on a journey of learning with our Functions C# Programming Exercises! Tailored for beginners, these exercises offer a hands-on approach to mastering the art of functions in C#. From understanding the basics of fun...

  •  OOP Object Oriented Programming

    Unlock the power of Object-Oriented Programming (OOP) with our C# exercises! These lessons cover classes, objects, and core principles like inheritance and polymorphism. Perfect for beginners, each exercise offers a hand...

  •  OOP More On Classes

    Dive deeper into Object-Oriented Programming with our advanced C# exercises! This section explores advanced class features, interfaces, and more. Whether you're reinforcing your OOP skills or preparing for complex projec...

  •  File Management

    Explore File Management in C# with our hands-on exercises! Learn to create, read, write, and manage files in your applications. These lessons are perfect for gaining practical experience with file handling in C#. Enhance...

  •  Object Persistence

    Master the art of Object Persistence in C#! These exercises focus on saving and retrieving objects, helping you build applications that store data effectively. Perfect for learners ready to explore advanced storage techn...

  •  Access To Relational Databases

    Delve into Access to Relational Databases in C#! These exercises provide practical experience connecting to and working with databases like SQL Server. Learn to execute queries, manage data, and integrate database functi...

  •  Dynamic Memory Management

    Learn Dynamic Memory Management in C#! These exercises guide you through concepts like pointers and memory allocation, crucial for building efficient applications. Develop a deeper understanding of how C# manages memory ...

  •  Additional Libraries

    Discover Additional Libraries in C#! These exercises introduce libraries that expand the capabilities of your C# applications. From working with collections to threading and beyond, these lessons will elevate your progra...

 Maybe you will be interested in these C# Programming Exercises

  •  Functions: greeting + farewell

    In this C# exercise, you are asked to write a program where the main structure is the Main method. Inside this method, two functions should be called: SayHello...

  •  Function with parameters

    In this C# exercise, you are asked to write a program where the Main method must be like this:public static void Main(){ SayHello("John"...

  •  Function returning a value

    In this C# exercise, you are asked to write a program where the Main method must be like this:public static void Main(){ int x = 3;

  •  Function returning a value V2

    In this C# exercise, you are asked to write a program where the Main method must be like this:public static void Main(){ Console.WriteLi...

  •  Function write centered

    In this C# exercise, you are asked to write a function that displays the given text centered on the screen (assuming a screen width of 80 characters). The code should...

  •  Function write underlined

    In this C# exercise, you are asked to write a function that displays the given text centered on the screen (assuming a screen width of 80 characters) and then underli...