Answer:
Option A.
Explanation:
Only option A satisfies the definition of push statements. So it is only the correct option.
Answer:
cloudsearch.google.com
Explanation:
This is where you will be able to hopefully find what your missing.
Procedure SumEvenOdd(stdin: array [0..100] of integer)
var
i, sum_even, sum_odd: integer;
begin
for i := 0 to 100 do begin
if stdin[i] < 0 then
break;
if stdin[i] mod 2 = 0 then //even number
sum_even := sum_even + stdin[i]
else
sum_odd := sum_odd + stdin[i];
ShowMessage('sum of even is ' + IntToStr(sum_even) + ' ' + 'sum of odd is' + IntToStr(sum_odd) ) ;
end;
end
- Answer:
I have no idea about this worksir
Explanation:
ok sir I dont know sfe
Answer:
see attachment
Explanation:
You have not specified the language, or the details of the I/O form or prompts. Here is a program that does that, written in Wolfram language (the language of Mathematica).
It prompts separately for student name and student score. The minimum score is presumed to be higher than -99999. If only one student name is entered, the second output is that score with no name listed. There is no error checking.
We have elected to keep a list only of the two two scores, and to sort that list again each time a new entry is made.
__
The attachment shows the output of the program below the program listing.