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

In this assignment you are required to develop a program that allows the creation, viewing and storage of information about ITECH7603 Students. In order to complete the task you ha


Employ operator () instead of operator[]. While you have multiple subscripts, the cleanest way to do it is along with operator () instead of with operator[]. The reason is that

Many human diseases could be controlled by the knowledge of the gene’s structure and pattern. The human gene could be represented by four nucleotides. Each nucleotide is represente


My file pointer is going to the location which i specified and writing the value but it is in next line so,please help me iam developing in visual studio6

Within programs we very often want to execute a different section of code, depending upon various conditions within C the If statement is used to achieve this. The If statement con

C program to add, average and deviation of numbers: void main() {                 int sum=0,a[10],i;                 float avg=0,dev,vari=0,var;                 pri

Inheritance and Reuse Consider a car manufacturing company. When they require building a new car, they have two choices. They can start from the scratch, or they can change an