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

Write C# code that let\'s the user type 5 values of an array of type double. The

ID: 3815389 • Letter: W

Question

Write C# code that let's the user type 5 values of an array of type double. The program will then print the al numbers in the array plus 10. Write C# code that calculates the result of adding the two integer arrays: H 5 17 2 2 H + H 103 5 1 10 H 0Write for loop that prints all numbers from 0 to 100, EXCEPT for the number 7. 4. Write a C# method called Product(int x, int y, int z). It returns x*y*z. Write a C# method called 1sOdd(int x) This method returns a bool. If x is odd, then return true. Else, return false.

Explanation / Answer

The program for question 1 is in the following.

static void Main(string[] args)
{
double [] numbers = new double[5];
//string no=" ";
System.Console.WriteLine("enter five numbers");
for (int i = 0; i < 5; ++i)
{
//no=Console.ReadLine();
numbers[i] =Convert.ToDouble(10) + Convert.ToDouble(Console.ReadLine());
}
System.Console.WriteLine("All enterned numbers plus ten are:");
for (int i = 0; i < 5; ++i)
{
System.Console.WriteLine("" + numbers[i]);
  
}
System.Console.Read();
}

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