simple program to know your skill... can you write this?


1. Write a program that reads n numbers (n<1000) from the file “sum_input.txt” (attached) and

store it in an array. Ask the user to input n using keyboard at runtime. Then:

a. Compute the sum of the numbers read using any of the loop constructors you have

b. Compute the sum of the numbers read using a recursive function.

learned (for, while or do-while).
Last edited on
Please note, that this is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attemts to solve this youself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find deriviative of function without knowledge in ariphmetics, you cannot do more complex tasks in programming without clear understanding of basics

EDIT: Good try with using reverse psychology and changing title of the thread.
In case someone wonders it was: can somebody write code for me
Last edited on
Topic archived. No new replies allowed.