Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Does anyone actually read these?!?! This is now the FOURTH time I have submitted

ID: 3681129 • Letter: D

Question

Does anyone actually read these?!?! This is now the FOURTH time I have submitted this question. The last response was done in command prompt when I needed it in Windows Form Application, I really don't know how much clearer I can be.....

PLEASE read the instructions. I GREATLY appreciate the help HOWEVER I have had to ask this question THREE times now and I don't know how I can ask it any clearer. I am just beginning to learn C# and I have no experience in any other language either, this is my first foray into any kind of programming. I am asking for a response in a certain format so that I can understand it in regards to what I have learned so far. The 2 prior responses to this question didn't respond in the way I asked and were beyond my current level of understanding. Please do not answer this question if you are not willing to respond in the format I am asking so that someone else may be able to. Don't mean to be a jerk and again I do appreciate the help but I am wasting my monthly question allowance.

In C# and using Microsoft Visual Studio 2015 and in Windows Form Application. What I have learned so far is you drag tools from the toolbox in the left column into the blank gui window labeled form1.cs(design). Then when you have all your tools dragged onto the window you can switch to the tab labled Form1.cs where Visual Studio will have auto-generated code for all the tools you have used and then you can modify the code for what you need it to do. (I realize everyone reading this knows all this but I am trying to be AS CLEAR AS POSSIBLE due to not getting responses I could understand on previous answers).

What I would like is a list of all the tools that I need to drag onto that gui window from the toolbox (in text, tell me what tools to use). Then I would like the final code. That way I can drag what needs to be drug into the window, and then compare what is autogenerated in my program to what the final code is so I can see what needs to be added to make everything do what it needs to do.

Please note there is some modifications to the original problem at the end under "amended as follows".

- Create a program named FlexibleArrayMethod that declares at least three integer
arrays of different sizes. In turn, pass each array to a method that displays all the
integers in each array and their sum.

amended as follows.

The arrays should be of sizes 3, 5, 7 (write your program, including array initialization, in the
way applicable to much larger arrays as well). Populate them with random numbers from 1 to 99
generated automatically. The results for each array
should be displayed on a separate line.

Explanation / Answer

Hi,

I understand your frustration. Sorry you couldn't get what you wanted. I will try my best to help you here.

I understand you are trying to run a C# program using the Windows forms application in visual studio 2015. When you open the form1. After that go to the toolbox and expand it.

Notice the Solution Explorer on the right side of your screen. (If you can't see the Solution Explorer, click its entry on the View menu at the top of Visual Studio Express.) If you compare it with the Solution Explorer when you created your Console Application, you can see the similarities.

Both projects have sections for Properties, References, and a Program.cs file. Double click the Program.cs file to open it, and you'll see some familiar code.

Now try pasting the below code over there and try running it:

using System;

namespace ArrayManagment
{
class Program
{
static void arrayMath(int[] myArray, out int sum)
{
sum = myArray.Sum();
}
static void displayArray(int[] myArray)
{
Console.Write("Your numbers are: ");
for (int i = 1; i < 99; i++)
Console.Write(myArray[i] + " ");
Console.WriteLine();

}

static int[] fillArray()
{
int[] myArray;
myArray = new int[99];
int count = 0;
do
{
Console.Write("Please enter a number to add to the array or "x" to stop: ");
string consoleInput = Console.ReadLine();
if (consoleInput == "x")
{
return myArray;
}
else
{
myArray[count] = Convert.ToInt32(consoleInput);
++count;
}

} while (count < 99);

return myArray;

}

static void Main(string[] args)
{
int[] myArray;
myArray = new int[99];
myArray = fillArray();
int sum;
arrayMath(myArray, out sum);

displayArray(myArray);


}
}
}

If you still face issue in these, please comment. I will be more than happy to help you :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote