Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Read numbers form user and place them in array:
Program is to read a group numbers of numbers form user and place them in array type of float and sort them
void sort(float a[]);
int i,n;
void main()
{
clrscr();
float a[20];
cout <<" enter no of terms: ";
cin>>n;
cout<<" enter the elements ";
for(i=0; i { cin>>a[i]; } sort(a[i]); } void sort(float a[]) { int t,j,po; float min; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
cin>>a[i];
}
sort(a[i]);
void sort(float a[])
int t,j,po;
float min;
for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
min=a[i];
po=i;
for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
min=a[j];
po=j;
t=a[po];
a[po]=a[i];
a[i]=t;
for(i=0;i cout<<" sorted elements "; cout< }
cout<<" sorted elements ";
cout< }
The voltage at the terminals of a battery is 52V when no load is linked and 48.8V when a load taking 80A is connected. Find the internal resistance of the battery. What wou
Explain Rules for constructing variable names? The Rules for constructing variable names : a) A variable name is any combination of alphabets, 0 to 9 digits and undersc
C Coding to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can be found
create algorithm for doubly link list using c data structure
Explain the different types of errors in PHP. Warnings, Notices and Fatal errors are the types of errors in PHP Notices: Notices signifies non-critical errors, i.e. ac
Unions A union is also like a structure, except that only single variable in the union is stored in the allocated memory at a time. It is a collection of mutually exclusive var
The default Constructor and Destructor If you fail to write a constructor and destructor function, the compiler automatically supplies them for you. These functions have publi
store the name of the political parties and the corresponding votes in two lists of equal length. access the lists is provided by two methods, each of which creates an interator th
In this assignment, you will be modifying your Assign-05 code to use more inheritance. As well, in this assignment, you will be asked to use newand delete, throw and catch except
Problem Description Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new techn
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!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd