Question: 23355666577 AP (10) Given the array above as ages[ ], write an algorithm and draw a flow chart for a software solution that can sum
23355666577 AP (10) Given the array above as ages[ ], write an algorithm and draw a flow chart for a software solution that can sum all the numbers set their sum into the last cell. (b) Write the syntax for the following: AN(10) i. Declaring a variable AP(5) ii. Simple IF..ELSE statement iii. while loop iv. Initializing a variable during declaration v. Declaring a constant variable (c) State any five rules followed when declaring a variable [Total: 25 marks] 7. (a) i. The program below will cause an infinite loop. Briefly explain how to break or stop such a loop. Rewrite the code correcting it from the infinite looping. AN(10) int main(){for(inti=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
