Write a recursive method that computes the sum of the first n integers.
What will be an ideal response?
```
public int sum(int n)
{
if(n == 0)
return 0;
else
return n + sum(n-1);
}
```
You might also like to view...
___________ is the process of extracting the main features of a problem (and ignoring the details).
a. Problem abstraction b. desk check c. Problem specification d. Program engineering e. Implementation
What is a user permitted to do when using an Access Database Executable file?
A) Modify data B) Modify VBA code C) Make changes to the forms and/or reports D) Create new forms and/or reports
The Text Effects feature in the Font group is a new Word 2010 feature
Indicate whether the statement is true or false
The syntax of the Focus method is ____, where "object" is the name of the object to which you want the focus sent.
A. object.GetFocus() B. object.SetFocus() C. object.Focus() D. object.FocusThis()