Arch Assignment
Arch Assignment
1
replaced with the integer value in cell 2. Cells are indexed from 0. The program should also
accept n number of cells, as the first integer will indicate the number of cells, similar to Question
1. The program should then print all cells in order. Finally, the sum of all cells should be printed
at the end.
Sample IO:
Enter n and formulae:
3
1
2
3
The values are:
1
2
3
6
Submission
Create a compressed archive, zip, of all files. Name the zip file with your student number and
upload to Automarker.
NOTE:
1. We can determine the end of a string inputted from console by checking for the line feed
(LF) character, which has an ASCII code of 0x0A or 10.