Data entry options for an array using goto statement
Data entry options for an array using goto statement:
//Multiple Input and output options for an array
#include<iostream>
using namespace std;
void main()
{
int arr[5];
int option,i;
int counter=0;
xyz:
cout<<"press 1, input"<<endl;
cout<<"press 2, output"<<endl;
cout<<"press 3, reverse"<<endl;
cout<<"press 4, to multiply data by 3"<<endl;
cout<<"press 5, addition"<<endl;
cin>>option;
if(option==1)
//input
{
cout<<"Enter the values of array"<<endl;
for(i=0;i<5;i++)
{
cin>>arr[i];
}
counter=counter+1;
}
else if(option==2)
{
if(counter==0)
{
cout<<"Firstly enter the array data"<<endl;
goto xyz;
}
//output
for(i=0;i<5;i++)
{
cout<<arr[i]<<" ";
}
cout<<endl;
}
else if(option==3)
{
if(counter==0)
{
cout<<"Firstly enter the array data"<<endl;
goto xyz;
}
//output
for(i=4;i>=0;i--)
{
cout<<arr[i]<<" ";
}
cout<<endl;
}
else if(option==4)
{
if(counter==0)
{
cout<<"Firstly enter the array data"<<endl;
goto xyz;
}
//output
for(i=0;i<5;i++)
{
cout<<arr[i]*3<<" ";
}
cout<<endl;
}
else if(option==5)
{
if(counter==0)
{
cout<<"Firstly enter the array data"<<endl;
goto xyz;
}
//output
int sum=0;
for(i=0;i<5;i++)
{
sum=sum+arr[i];
}
cout<<"sum is: "<<sum<<endl;
}
else
cout<<"Invalid Option"<<endl;
goto xyz;
}
Download:
To download this code click on the given link below:
{Another {reason why|reason|reasons why|good reason that} {people don't|individuals don't|folks don't|people do not} {go for|choose|select|opt for} online {home based|work from home|home-based|work at home} data entry jobs {is that they|is they|is because they|is because} don't {receive the|get the|have the|obtain the} actual money {which is|that is|which can be|that's} paid {by the|through the|from the|with the} employer|Such services {includes a|features a|carries a|incorporates a} {wide range of|number of|great deal of|massive amount} back office and BPO - Business Process Outsourcing and ITO - Information Technology Outsourcing enabled {data processing|information systems|computer} services|Outsourcing data entry {is a good|is a great|is an excellent|is a superb} plan {unless you|if you don't|until you|if you do not} {figure out|determine|find out|discover} {the best|the very best|the most effective|the top} {in that|for the reason that|because|in this} business and delegate them tasks {that are|which are|which can be|which might be} quite {feasible to|possible to|possible} undertake with due respect {to the|towards the|for the|on the} time frame| Finding the right person {for the job|to do the job|for the position|for the task} {is a|is really a|can be a|is often a} task {in itself|by itself|alone|itself} {and is also|and it is|and is particularly|which is} expensive| Companies can avoid such task by outsourcing their requirements to reputed entry company| It involves PDF conversion, XML conversion, Document conversion; Document digitizing, RTF Conversion and RTF conversion}. { There {is a|is really a|can be a|is often a} delicate balance between {using a|utilizing a|employing a|by using a} keyword {too little|not enough|inadequate|weak hands} and {using a|utilizing a|employing a|by using a} {keyword phrase|keyword|search term|search phrase} too much| You must {choose the|pick the|select the|find the} data entry services form reputed outsourcing company {to get|to obtain|to have|to acquire} secure, accurate {and on|as well as on|and also on|and so on} time entry service at feasible cost| Additional {benefit of|advantage of|good thing about|benefit for} outsourcing is saving cost on resources {which could|that could|which may|that may} be {invested in|committed to|dedicated to|purchased} widening {the business|the company|the business enterprise|the organization} activity| Minding confidentiality and integrity {of data|of information|of knowledge|of internet data} {might seem|may appear|may seem|might appear} {as a|like a|being a|as being a} trivial issue {at first|in the beginning { It may includes data-entry into websites, tracking debit or {credit card|charge card|bank card|plastic card} transactions, entry into electronic have been|there was|there are} no online payment processors| Businesses keep their favored {service providers|providers|companies|agencies} by sending over {hundreds of|countless|a huge selection of|numerous} bulk projects {that are|which are|which can be|which might be} {to be|to become|being|to get} done minding {the time|time|enough time|some time} and budget constraints|- Don't be put off {by a|with a|by way of a|by the} {lack of|insufficient|not enough|deficiency of} testimonials - Just because a company {doesn't have|does not have|doesn't always have|doesn't need} testimonials {doesn't mean|does not mean|does not imply|doesn't suggest} {they aren't|they are not|they're not|they may not be} {a good|a great|an excellent|a fantastic} company}. data entry invoice
ReplyDeleteImpressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. data entry quote
ReplyDelete