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
/*  THIS PROGRAM IS TO ASK USER TO INPUT TWO DATE & PRODUCE A NEW DATE  */ #include #include struct date  {   int dd;   int yy;   int mm;  }; date add(date d1,date d2)    {

I. COURSE DESCRIPTION Develops a working knowledge of object-oriented concepts in areas of classes, inheritance, data structures, error handling, templates and file processing.

When you are designing a generic class to have or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or

C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() {           float i=0,c=0;           clrscr();           printf("ENTER THE DIGI

We need an E Commerce site likefifacointrader. you must have experience with that kind of work You have to show a sample of work like that site. Skills required are C Prog

Member Functions of a Class A member function of the class is similar as an ordinary function. Its declaration in a class template must explain its return value as well as the

Abstraction is of the process of hiding unwanted details from the user

A: Use operator overloading to present a friend left-shift operator, operator #include class Fred { public: friend std::ostream& operator ... private: int i_; // onl

I need plugin for amibroker using c++ Project Description: Need to prepare plugin for amibroker using c++. Should be system bound after installing. System should show based o

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.   #include float start_point, /* G