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

Please assist me with the following... Create three arrays of type double . Do a

ID: 3543541 • Letter: P

Question

Please assist me with the following...
Create three arrays of type double. Do a compile-time initialization and place 10 different values in two of the arrays.Write a program to store the product of the two arrays in the third array. Produce a display using the MessageBox class that shows the contents of all three arrays using a single line for an element from all three arrays. I thank you for your time and assistance. Please assist me with the following...
Create three arrays of type double. Do a compile-time initialization and place 10 different values in two of the arrays.Write a program to store the product of the two arrays in the third array. Produce a display using the MessageBox class that shows the contents of all three arrays using a single line for an element from all three arrays. I thank you for your time and assistance. Please assist me with the following...
Create three arrays of type double. Do a compile-time initialization and place 10 different values in two of the arrays.Write a program to store the product of the two arrays in the third array. Produce a display using the MessageBox class that shows the contents of all three arrays using a single line for an element from all three arrays. I thank you for your time and assistance. Please assist me with the following...
Create three arrays of type double. Do a compile-time initialization and place 10 different values in two of the arrays.Write a program to store the product of the two arrays in the third array. Produce a display using the MessageBox class that shows the contents of all three arrays using a single line for an element from all three arrays. I thank you for your time and assistance. Please assist me with the following...
Create three arrays of type double. Do a compile-time initialization and place 10 different values in two of the arrays.Write a program to store the product of the two arrays in the third array. Produce a display using the MessageBox class that shows the contents of all three arrays using a single line for an element from all three arrays. I thank you for your time and assistance.

Explanation / Answer

//the pasted solution is here too http://pastebin.com/SC7x0Jch


//I am using Visual C# 2012 for this
//1. Start a new project - File -> New Project -> Console Application -> OK.
//2. On the right side of the screen (unless you've changed its position) is the Solution Explorer - right click on References and click Add Reference. On my machine this takes a little while to load, so don't get impatient with it.
//3. Scroll down the list until you find "System.Windows.Forms", click it and then click OK //Paste the following code. Thank you


using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
namespace ConsoleApplication2 { class Program { static void Main(string[] args) { double[] array1 = new double[10]; double[] array2 = new double[10]; double[] array3 = new double[10];
int i=1; string input; while (i <= 10) { Console.WriteLine("Enter ["+i+"] number of array 1"); input= Console.ReadLine(); array1[i - 1] = double.Parse(input); i++; } i = 1; while (i <= 10) { Console.WriteLine("Enter [" + i + "] number of array 2"); input = Console.ReadLine(); array2[i - 1] = double.Parse(input); i++; } for (i = 0; i < 10; i++) { array3[i] = array1[i] * array2[i]; } DialogResult dialogResult=MessageBox.Show("Array values are "+ array3[0]+" " + array3[1]+" " + array3[2]+" " + array3[3]+" " + array3[4]+" " + array3[5]+" " + array3[6]+" " + array3[7]+" " + array3[8]+" " + array3[9]+" "); } } }