Numbers and pass them to the function

Assignment Help Basic Computer Science
Reference no: EM131406774

Write a C# function called Compare Numbers to compare two numbers and return a code that indicates their relationship: 0 if they are equal, 1 if the first number is larger, and -1 if the first number is smaller. Your main module should prompt the user for the two numbers and pass them to the function. The result is printed in your main module.

The output should look like this (note that it should work for any values that are input; these are just examples).

Enter a number: 10

Enter a number: 21

10 is smaller than 21

Reference no: EM131406774

Questions Cloud

Construct an e-r model for this scenario : Students can book through the agency, while payment is made directly to the resort. Construct an E-R model for this scenario.
Conclusion of instruction : Suppose that the following instructions are found at the given locations in memory a. Show the contents of the IR, the PC, the MAR, the MDR, and A at the conclusion of instruction 20
Optimize database components : Evaluate at least two methods that can be used to optimize database components such as queries, reports SQL transaction processing, and data consumption. Provide a real-world example that explains how these methods would help an organization proce..
Draw an e-r diagram for a patient appointment system : Draw an E-R diagram for a patient appointment system. Consider the entities patient, patient appointment, doctor, prescription, and pharmacy. Identify and depict the cardinality of each relationship. Also identify the attributes and candidate key ..
Numbers and pass them to the function : Write a C# function called Compare Numbers to compare two numbers and return a code that indicates their relationship: 0 if they are equal, 1 if the first number is larger, and -1 if the first number is smaller. Your main module should prompt the ..
How many employees can work on a project : Could TOOL be modeled as an associative entity? Why or why not?
Discuss about the federal trade commission : Evaluate how effective the Federal Trade Commission (FTC) has been in protecting consumer privacy and targeting deceptive and unfair trade practices on the Internet. Support your opinion with specifics.From the e-Activity, discuss your reaction t..
Classful and classless types of ip addresses : What are the difference between classful and classless types of IP addresses?
What is the identifier for certificate associative entity : Now, assume that the same employee may take the same course multiple times, on different dates. Does this change your answer to part a? Why or why not?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Types of computer programming languages

What are the types of computer programming languages?

  Payments and total amount of interest paid

Complete parts a, b, and c for the loan described below. (a) Find the payment necessary to amortize the loan. (b) Find the total payments and the total amount of interest paid based on the calculated annual payments. (c) Create an amortization tab..

  Textbook ordering system deployment diagram

System architects and analysts use unified modeling language (UML) deployment diagrams to model the configuration of the hardware and software components of a system and how they will be deployed in a production environment.

  What is the pmf of b

What is the PMF of B?

  What is the expected height of the tree as a function of n

What is the expected height of the tree as a function of n?

  Determine the mass of the steam

Determine the mass of the steam that has entered and the pressure of the steam in the supply line.

  Version of the operating system that you used

Describe your experience installing the Microsoft Office Suite software. Indicate the version of the software that you installed, and the name and version of the operating system that you used.

  Internet domain names are linked to trademark issues

Internet domain names are linked to trademark issues. Technology makes it easy to copy and distribute music and movies without paying royalties. Business conducted on the internet raise security and privacy issues.

  Er diagram, normalization, relational structure only

The proprietors of BigM have approached you and asked if you could design a database to help them manage their business. The management has commissioned you (in your capacity as a Database Management System consultant) to analyse, design and devel..

  Advantages of the database approach

What are the advantages of the database approach over the traditional approach to database management? What is a data center, and why are they becoming increasingly important

  Consultant to work on the system installation

A company hired a consultant to work on the system installation. The consultant hires your group as a subcontractor to do the work of creating and moving files, deleting files and listing the date/time to a file name. Instead of creating each with..

  Exception error and explain potential implications

Select a Java program that contains an exception error. The exception error can be one that you have encountered yourself or one you located using the Internet. Describe your chosen exception error and explain potential implications.

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