Find Jobs
Hire Freelancers

Code for Program to perform array operations in c++

$30-250 USD

Closed
Posted over 12 years ago

$30-250 USD

Paid on delivery
Code for Program to perform array operations like append, insert, delete, edit, display and search and element in C++ #include<iostream.h> #include<stdio.h> #include<conio.h> main() { int array[15]; int no_el; clrscr(); cout<<"Enter the no of element :"; cin>>no_el; for(int i=0;i<no_el;i++) { cout<<"Enter the element : "; cin>>array[i]; } while(1) { clrscr(); cout<<endl<<"1. Append"; cout<<endl<<"2. Insert"; cout<<endl<<"3. delete by value"; cout<<endl<<"4. edit"; cout<<endl<<"5. display"; cout<<endl<<"6. search"; cout<<endl<<"7. exit"; cout<<endl<<"Enter your choice : "; int choice; cin>>choice; switch(choice) { case 1: cout<<"Enter the new element : "; int new_el; cin>>new_el; array[no_el]=new_el; no_el++; break; case 2: cout<<"Enter the position at which you want to insert : "; int pos; cin>>pos; cout<<"Enter the new element : "; cin>>new_el; pos--; for(i=no_el-1;i>=pos;i--) array[i+1]=array[i]; array[pos]=new_el; no_el++; break; case 3: cout<<"Enter the value to be search : "; int key; cin>>key; for(pos=0;pos<no_el;pos++) { if(array[pos]==key) break; } if(pos==no_el) { cout<<"Search key not found"; break; } for(i=pos;i<no_el;i++) array[i]=array[i+1]; no_el--; break; case 4: cout<<"Enter the position to be edit : "; cin>>pos; cout<<"Enter the new value for old position : "; cin>>array[pos-1]; break; case 5: cout<<endl; for(i=0;i<no_el;i++) cout<<endl<<"The element is : "<<array[i]; break; case 6: cout<<"Enter the value to be search : "; cin>>key; for(pos=0;pos<no_el;pos++) { if(array[pos]==key) break; } if(pos==no_el) { cout<<"Search key not found"; break; } cout<<"Search key found at : "<<pos+1; break; case 7: return(0); break; } getch(); } }
Project ID: 1148190

About the project

75 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
75 freelancers are bidding on average $38 USD for this job
User Avatar
ready to deliver
$30 USD in 2 days
4.9 (81 reviews)
6.5
6.5
User Avatar
HI, I m an old C++ expert. Hussien Sharaf
$30 USD in 1 day
5.0 (13 reviews)
5.2
5.2
User Avatar
please check PM
$30 USD in 0 day
5.0 (2 reviews)
3.9
3.9
User Avatar
I beleive I can help you.
$30 USD in 1 day
5.0 (6 reviews)
3.4
3.4
User Avatar
Please check PMB
$100 USD in 2 days
3.0 (16 reviews)
5.1
5.1
User Avatar
nothing but a peanut
$30 USD in 1 day
4.5 (7 reviews)
2.4
2.4
User Avatar
I am very good in c++ coding...waiting for your reply about the requirements of the workk
$30 USD in 1 day
5.0 (1 review)
1.5
1.5
User Avatar
Hi, I have excellent knowledge of C,C++ and can finish your project with high quality. Regards, Charles
$30 USD in 1 day
5.0 (1 review)
1.7
1.7
User Avatar
interested to do
$30 USD in 1 day
4.0 (2 reviews)
1.7
1.7
User Avatar
I am a student of Computer Science & Engineering. i can do this as much as possible.
$30 USD in 1 day
5.0 (2 reviews)
0.4
0.4
User Avatar
please check pm.
$100 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
pls check pm
$80 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Please check your PMB.
$100 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi i can do this project
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Just have faith on me I will complete your project in just one day
$34 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
This is a easy task. I can do it easily.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
please check my bid i will complete your project
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello. It's a piece of cake for me. I've studied about c/c++ for 4 years.
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I can make it in 2 days . I have done those type of applications in my mca.
$50 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I already did a lot of those while in college. A couple of days of coding and then some testing and voilá.
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
kolkata, India
0.0
0
Member since Jul 25, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.