I got a bunch of bad feed back from my instructor saying I’m getting the wrong h
ID: 3602122 • Letter: I
Question
I got a bunch of bad feed back from my instructor saying I’m getting the wrong help. This class is a C# programming class and unfortunately I’ve been doing C + instead of C# please would you help me solve these problems using C# TY Use array, an enumeration, and basic properties of the combo box and numeric up down controlled by creating event procedures for menu controls.1.Create a C# program that utilizes arrays. Write a C# program that reverses the elements in a two dimensional array. Assume you have a matrix of size m x n, The element in position (0,0) Will be swapped with the element position (m-1,n-1). The element position (0,1) Will be exchanged with the element position (m-1, n-2), and so on.
Using GUI objects 2. A. Write C# windows form program to ask your name in a (text box) and prints The following message in (the label): hello, your name B. Write C# windows form program that asks for 3 numbers and prints the average value. Please make sure it’s C# programming TY for help I really need this help I got a bunch of bad feed back from my instructor saying I’m getting the wrong help. This class is a C# programming class and unfortunately I’ve been doing C + instead of C# please would you help me solve these problems using C# TY Use array, an enumeration, and basic properties of the combo box and numeric up down controlled by creating event procedures for menu controls.
1.Create a C# program that utilizes arrays. Write a C# program that reverses the elements in a two dimensional array. Assume you have a matrix of size m x n, The element in position (0,0) Will be swapped with the element position (m-1,n-1). The element position (0,1) Will be exchanged with the element position (m-1, n-2), and so on.
Using GUI objects 2. A. Write C# windows form program to ask your name in a (text box) and prints The following message in (the label): hello, your name B. Write C# windows form program that asks for 3 numbers and prints the average value. Please make sure it’s C# programming TY for help I really need this help Use array, an enumeration, and basic properties of the combo box and numeric up down controlled by creating event procedures for menu controls.
1.Create a C# program that utilizes arrays. Write a C# program that reverses the elements in a two dimensional array. Assume you have a matrix of size m x n, The element in position (0,0) Will be swapped with the element position (m-1,n-1). The element position (0,1) Will be exchanged with the element position (m-1, n-2), and so on.
Using GUI objects 2. A. Write C# windows form program to ask your name in a (text box) and prints The following message in (the label): hello, your name B. Write C# windows form program that asks for 3 numbers and prints the average value. Please make sure it’s C# programming TY for help I really need this help 1.Create a C# program that utilizes arrays. Write a C# program that reverses the elements in a two dimensional array. Assume you have a matrix of size m x n, The element in position (0,0) Will be swapped with the element position (m-1,n-1). The element position (0,1) Will be exchanged with the element position (m-1, n-2), and so on.
Using GUI objects 2. A. Write C# windows form program to ask your name in a (text box) and prints The following message in (the label): hello, your name B. Write C# windows form program that asks for 3 numbers and prints the average value. Please make sure it’s C# programming TY for help I really need this help
Explanation / Answer
using System.IO;
using System;
class Program
{
static void Main()
{
int [,] a = { { 1, 2 }, { 2, 3 }, { 3, 4 } };
reverse(a);
}
// Reverses an array
static void reverse(int[,] arr){
int m = arr.GetLength(0);
int n = arr.GetLength(1);
for(int i=0; i<m/2; i++){
for(int j=0; j<n/2; j++){
int temp = arr[i,j];
arr[i,j] = arr[m-1-i, n-1-j];
arr[m-1-i, n-1-j] = temp;
}
}
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.