develope a program, C/C++ Programming

Develop a program to meet the following requirements:

1. Must use at least one function in addition to main (you can use more)

2. Must use selection

3. Must use deference/indirection (the * operator)

Your assignment is to take two integers as input, compare them and
put them in smallest to largest order.

If they are not in smallest to largest order, use an exchange function
to swap their order. If they are already in order, do nothing.

Output both integers in smallest to largest order.

Use the following integer pairs as input (you will want to use more).

7 12
18 3
6 6
-12 0

A simple structure chart is shown below.

Main
|
Exchange
Posted Date: 10/27/2012 1:43:21 AM | Location : United States







Related Discussions:- develope a program, Assignment Help, Ask Question on develope a program, Get Answer, Expert's Help, develope a program Discussions

Write discussion on develope a program
Your posts are moderated
Related Questions
Write a C program to compute the factorial of  5 i.e. 1x2x3x4x5 etc Write a C program to calculate the output Y for a given value of X for the following formula.       Y=X 2

Difference between Echo and print statement. print()and echo() are language constructs in PHP, both are used to output strings. Both statements are of almost same Speed. ech

The Conditional Expression Operator An alternate method to using a simple if-else construct is the conditional expressions operator, ?:   A conditional expression operato

Explain the Symbolic Constants in c language? Symbolic constants are the constants of any type that declared by using the #define compiler directive and it is a preprocessor di


I need a project on car rental system using c programming only of college level

Objective of this Program: (a) To learn more about modularization of a program into independent modules, (b) To use arrays in a program, (c) To get some experience with us

The program will consist of two text fields, two buttons, and a counter label.  One text field will be input, where the user types the plain text.  The second text field will be ou

Project Description: I need to convert AFL code of Amibroker to DLL plugin to hide original formula, and also to protect the DLL and making it hardware locked. I need to wrap th

Array of Objects A class is a template, which can contain data items as well as member functions to operate on the data items. Various objects of the class can also be declared