In computer sciences, a Methods section is often broken into two parts, namely theory (often mathematical algorithms) and implementation (how those algorithms were used). Because experimental results in this field are often simply the outcome of the implementation, a Results section sometimes follows immediately after the implementation is described.
Methods in a computer science paper should not simply be a list of different approaches that either worked or did not work; in general, you should describe only the method(s) that worked. For Results, full code should not be reported; rather, use explanatory diagrams or code snippets. Failed approaches, secondary results, or raw code (if appropriate for the assignment) can be reported in an Appendix.