Programmers/Coders write the instructions for a Computer.
line 4
if salary < 30000
error missing ":"
solution
if salary < 30000:
line 6
tax = salary * 0.2
error is missing identifier for tax
solution add identifier for tax on line 3
tax = 0.0
line 11
error syntax
solution is move tax = salary * 0.4 + 6000 to the right
tax = salary * 0.4 + 6000
Answer and Explanation:
In C programming language:
char fun(int*a, int*b){
printf("enter two integers: ");
scanf("%d%d",a,b);
int e;
printf("please enter a character: ");
e=getchar();
return e;
}
int main(int argc, char *argv[]) {
int d;
int f;
int g;
fun();
printf("%d%d%d", d, f, g);
}
We have declared a function fun type char above and called it in main. Note how he use the getchar function in c which reads the next available character(after the user inputs with printf()) and returns it as an integer. We then return the variable e holding the integer value as char fun() return value.
Jim is the main antagonist while Edward is the main protagonist of the movie.
Answer:
The ArrayList initial functionality is 5, there were 4 components.
Then, add 25 more elements by using add()calling 25 times So total number of elements after the completed operation would be 4 + 25= 29.
5th component will be introduced without calling ensureCapacity(); while adding 6th element-> ensureCapacity(2* 5+ 1) it will call, making the capacity 11.
So ArrayList's capacity will be 11.
Next 7th to 11th components will also be added automatically once the 12th element is added, it will name ensureCapacity(2* 11+ 1) and make the capacity 23.
While adding 24th dimension, ensureCapacity(2* 23+ 1) will be called again and this will make the capacity 47.
There will therefore be 3 (three) calls to ensure the feature Ability).
Elements of Rest 25th to 29th will be added seamlessly as ability becomes 47.