Answer:
# include<iostream>
# include<stdio.h>
# include<stdlib.h>
using namespace::std;
int main()
{
int *a=NULL;
int n; int score=0;
cout<<"Enter the value of N";
cin>>n;
a=new int[n];
cout<<"Enter the elements of a";
for(int i=0;i<=n;i++)
{
cin>>a[i];
}
int num=n;int k=n;int j=num;
while(j>=num)
{
if(n%2==0)
{
for(int i=0;i<=k;i++)
{
score+=a[i];cout<<score; }
if(a[0]>a[n])
{
a[n]=0;
n--;
}
else if(a[0]<a[n])
{
a[0]=0;
n--;
}
else if(n==1)
{
exit(0);
}
}
else
{
for(int i=0;i<=n;i++)
{
score-=a[i];
}
if(a[0]>a[n])
{
a[n]=0;
n--;
}
else if(a[0]<a[n])
{
a[0]==0;
n--;
}
else
{
exit(0);
}
}
j--;
}
cout<<"score"<<score;
return 0;
}
Explanation:
The array above is created dynamically, and rest is as mentioned in question.
Computer
a machine that processes information under the control of a program
Example(s)
(First Electronic Computer) The Electronic Numerical Integrator and Computer (ENIAC)
PC (Personal Computer)
Desktop
Laptop
Hope this helps!
Answer:
The below mentioned portion is missing from the question
<em>A part of the sacrifice means the payment of more money in taxes. In my Budget Message I shall recommend that a greater portion of this great defense program be paid for from taxation than we are paying today. No person should try, or be allowed, to get rich out of this program; and the principle of tax payments in accordance with ability to pay should be constantly before our eyes to guide our legislation.
</em>
<em />
The passage provides the reason why extra taxes must be collected should America decide to join the war or it introduces the claim that patriotic Americans should be willing to sacrifice and pay extra taxes.
Answer:
Which statement best describes the qualifications for Information Technology professions? Most Information Technology fields require at least a technical certificate for entry level jobs.