Answer:
// Program is written in Coral Programming Language
// Comments are used for explanatory purpose
// Declare and input n; n stands for the number of input data
integer n
n = Get next input
// Declare and initialise two Variables to 0;
// The first Variable Sum, is used for addition and the second, Max is used for the max
integer sum
integer max
Sum = 0
Max = 0
// Declare and intialise Variable count to hold the number of positive input data
integer count
count = 0
// Declare array. The array is used to hold all input data
integer array(n) Arr
// Declare iterating variable I
integer i
//Use the following iterative statement to input array data
for i = 0; i < Arr.size; i = i + 1
Arr[I] = Get next input
if Arr[i] >= 0
Sum = Sum + Arr[i]
count = count + 1
if Arr[i] >= Max
Max = Arr[I]
// Declare Variable average
float average
//Calculate and print average
average = Sum/count
Put average to output
Put Max to output
Answer:
Explained
Explanation:
Binding is the association of an object with its attributes, operations, or name there are many different types of bindings and bindings can occur at different times
.
for example:
1)language definition time binding: for example-binding * to multiplication
2)language implementation time binding: int size and operations
3)compile time binding: binding type to a variable
for instance in int x; x will be treated as an int from here forward
4)link time binding: binding function name to a specific function definition
5)load time binding: binding variable to memory location
6)run time binding: binding variable to memory location or bind a polymorphic variable to specific class type
.
binding time for the
a)6 run time binding
b)1 language definition time binding
c)2 language implementation time binding
d)5 load time binding
e)4 link time binding
f)3 compile time binding
g)3 compile time binding:
h)6 run time binding
<u>Answer:</u>
<em>A prototype for a function called isPrime that returns is true.</em>
<u>Explanation:</u>
Function prototype is just a skeletal part of the function which has <em>a return type, function name and the respective parameters. </em>
There is a difference between function and function prototype.
Function is nothing but a <em>function definition</em>, where it actually has all the lines of codes which need to be processed when it is called. It can be invoked any number of times and anywhere within the<em> scope of the function</em>. <em> </em>
As per the given question, the prototype can be,
<em>bool isPrime (int);
</em>
Submit command, as it hands in the data to the server
Answer:
1. A) Language of graphics-oriented.
B) Initial public offering
C)
D) Central processing unit
2A) False
B) True
C) False
D) True