Show the source code for

     

1. (TCO 3) Show the source code for a C# console application called “Area” to display the area of a parking lot with length 203.5 ft. and width 30.5 ft. (Note that area is length times width.)

· Declare and initialize appropriate variables for length and width.

· Include at least three descriptive comments.

· State what your program displays when it runs.

· State how you would use the debugger to check the values of your variables as your program runs.

2. (TCO 5) Describe two types of loops that can be used to write the C# code required to print every fifth integer from 0 to 500 (i.e., 0, 5, 10, 15, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop. 

3. (TCO 8) Briefly describe how parameter passing by-value and by-reference are accomplished in memory. Write statement 1 to call method A below. Write statement 2 to call method B. Which method uses pass by-value? Which method uses pass by-reference?

static void Main()
{
int balance = 20000;
//statement 1
//statement 2
}
 

//method A
public static void getBalance(ref int balance)
{
balance = balance + 500;
}
 

//method B
public static int getBalance(int balance)
{
return (balance + 500);
}

How could each of the three errors be corrected to improve the user experience?

. (TCO 9) Identify an example of one of each of the following GUI design errors in Figure 2:

· inconsistency

· misalignment

· clutter

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.