Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Objective(s)

This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming.

Details & Problems

In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console Programs to demonstrate your ability to use C# input/output via command line, C# primitive and built-in C# types, C# operators and expression, C# conditional statements, C# loop construct, and show your ability to validate the inputs to avoid run-time errors.

Q1) What is managed and unmanaged code?

Q2) Give examples of reserved keyword, literals and data types in C#.

Q3) What is the difference between "continue" and "break" statements in C#? Explain it with example.

Q4) What will be the output / error of given program? static void Main(String[] args)
{
const int m = 100; int n = 10;
const int k = n / 5 * 100 * n; Console.WriteLine(m * k); Console.ReadLine();

}

Q5) Give the output for the set of programming code.
class Program
{
static void Main(string[] args)
{
int i;
for ( i = 0; i < 5; i++)

{
}
Console. WriteLine(i); Console. ReadLine();
}
}

Q6) Write a program that would convert temperature given in Centigrade scale to Fahrenheit - the number can be integer or real. Use the formula: F = 1.8C + 32

Q7) Given a three-digit integer as input write a C# program to determine whether the number is an Armstrong number. An Armstrong number is one for which the sum of each digit raised to the power of number of digits results in the number itself.
For a three digit number 153 = 13 + 53 + 33
Note: Confine to 3-digit examples only i.e., number values between 100 to 999.

Q8) Use Euclid's Algorithm given below to determine the LCM and HCF for given two integer numbers.
- Take in as input two numbers A and B.
- Subtract the smaller of the two numbers from the Larger Number and assign the answer to the larger number.
- The above process is repeated until both the numbers are equal, say X.
- Apparently, the residual number (X) that we have obtained is the HCF.
- LCM could then be computed using the formula (A*B)/HCF Print out your answers.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93132560
  • Price:- $50

Guranteed 36 Hours Delivery, In Price:- $50

Have any Question?


Related Questions in Computer Engineering

Discuss the criteria necessary to establish a factor as a

Discuss the criteria necessary to establish a factor as a confounder and provide an example applying these criteria?

Compare remote authentication dial-in user service radius

Compare Remote Authentication Dial-In User Service (RADIUS) and Terminal Access Controller Access-Control System Plus (TACACS+).

Show your steps of how you found your calculations please

Show your steps of how you found your calculations. Please type reponse. Suppose the daytime processing load consists of 60% CPU activity and 40% disk activity. Your customers are complaining that the system is slow. Aft ...

When a developer creates an app should they make it

When a developer creates an app, should they make it backwards compatible, so that the app can be handled by older versions of the operating system? Why or why not?

Research one job and company that interests you one that

Research one job and company that interests you, one that you think might be a good fit for you after graduation. i.Identify why that job and company is a good fit for you Prepare a cover letter for that job. i.Include y ...

Refer to the cyclic redundancy check crc codes discussed in

Refer to the Cyclic Redundancy Check (CRC) codes discussed in the textbook and follow the conventions used in the textbook. Consider the 5-bit generator, G=10011, and suppose that D has the value 1010101011. What is the ...

Please discuss the design principles that guide the authors

Please discuss the design principles that guide the authors of instruction sets in making the right balance. Provide examples of application of each of the three design principles while designing instruction sets.

How can word processing software give a person the ability

How can Word Processing software give a person the ability to better position themself or a business, in today's society? Why?

How to design a java program that reads a sentence say s

How to design a Java program that reads a sentence, say s, consisting of lower-case words with .nextLine() method, identifies the words using .indexOf() and .substring() methods and saves them in String variables. Then t ...

Suppose users share a 3 mbps link also suppose each user

Suppose users share a 3 Mbps link. Also suppose each user requires 150 kbps when transmitting, but each user transmits only 10 percent of the time. When circuit switching is used, how many users can be supported? For the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As