Question Details

(solution) 1. Write the C# code to for the following problem. Declare an


1. Write the C# code to for the following problem.

Declare an array to store five values; they could be decimal numbers.

Prompt the user to store values into the array.

Then prompt the user for a value to multiply each element of the array.

Adjust the values and print the new values. Make sure you actually change the values in the array.

The output should look like this (note that it should work for any values that are input, these are just examples). You must use loop(s) to process the array.



Enter number: 10

Enter number: 20

Enter number: 30

Enter number: 40

Enter number: 50

Enter value to multiply by: 2

After multiplying by 2 the values are

20

40

60

80

100

Press any key to continue . . . 


2. What is the output of the following C# code?


            int x, y;
            x = 2;
            while (x <= 6)
            {
                y = 1;
                while (y < 3)
                {
                    Console.Write(y);
                    y = y + 1;
                }
                Console.WriteLine();
                x = x + 2;
            }


A. 1, 1

B. 12, 12

C. 12

D. 12, 12, 12

 


Solution details:

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 13, 2020

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.

Order Now