Determine whether the number is an armstrong number

Assignment Help Computer Engineering
Reference no: EM132316048

Objectives

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.

Verified Expert

This assignment is of C#.net programming. There are 8 short questions to solve, which pertains to the basics of C#.net programming.

Reference no: EM132316048

Questions Cloud

Netflix going to china by merge and acquisition strategy : I chose Netflix going to China by Merge and Acquisition strategy. You will choose a company who has international business or does not in the USA.
Write out the hypothesis and explain the testing procedure : Employees from Company A and Company B both receive annual bonuses. What information would you need to test the claim that the difference in annual bonuses.
Identify the risks and benefits of your choices : Suppose you need $1 million dollars to start your Dream Business. Research ways to get the money for such a business. Compare two (2) sources of financing you.
Discuss how the price of a bond is determined : Share your understanding of bonds as a form of financing a corporation. Discuss how the price of a bond is determined and provide an example of each.
Determine whether the number is an armstrong number : ITAP1001 - Software Development Fundamentals - Victorian Institute of Technology - determine whether the number is an Armstrong number
Calculate your total based on the number of shares : Determine the current value of your total investment. Do not make any changes to your investment at this time. Calculate your total based on the number.
Why the method you selected would be beneficial to company : Imagine you are the senior accountant at your organization and management is unsure of the difference between the indirect method and the direct method.
Describe the advantages that the redesign provides : Describe the advantages that this redesign provides for both the employee and the organization. Identify any problems or issues that may arise during.
Is activity-based costing useful for companies : Identify at least two activities at Apple and at Google that cause cost to be incurred. Do you believe these companies should be concerned about controlling.

Reviews

inf2316048

8/1/2019 4:15:40 AM

okay thanks Is ti alright ai pay half right now and Half after assignment Payment done ! Payemnt done please send my solution in my email The delivered time is prompt. Agreed its a good work done by experts. I would like to appreciate the team and their work, will certainly refer to my friends.

inf2316048

7/31/2019 4:30:55 AM

ou made 3 my assignment last time And I hot like average score on all of them. Payment done ! I would like to Thanks that expert who made this assignment solution . I will give you another assignment very soon.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd