to find the many values such as highest, smallest, standard deviation, and many more |
I think you're falling into the trap of 'design as code' rather than 'design before code'.
When programming, the first thing you should do is the program design. Once you have the design, then you start coding from the design - in small chunks so that you compile frequently and test before coding another chunk of say no more than about 20 lines. Once you're completed the code as per the design, then the program should work OK. It it doesn't then either there's a design issue or in your last chunk of code.
In the overall time taken to produce a working program, a 'rule of thumb estimate' is:
design - 40% - 50%
testing/debugging 10% - 20%
coding - no more than 50% of the overall time
Many people learning to program think that design time is either wasted time or not needed. For anything other than trivial programs, this is not right. Design time is often the most valuable productive time. When I did my degree many, many, many years ago, we had to first produce a program design - which was marked - before we wrote the code.