{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assignment1 Problems

# Assignment1 Problems - 20 points 3 A string is...

This preview shows page 1. Sign up to view the full content.

Sheet1 Page 1 Assignment #1 Due Date: Monday, January 26 at 11:59pm Submit: WebCT Late Policy: -1 point per minute late Instructions: This is an individual assignment. Answers should be your own work. Chapter 1 20 points 1) Prove by induction ( note: replace "sum" with the sigma summation symbol in the formula belo n n n sum (i*i*i) = ( sum i ) * ( sum i ) i=0 i=0 i=0 20 points 2) The count of vowels in a string could be found recursively by having each recursive call chec Write a class called Vowels having a recursive static method called "countVowels" to do this. Include a main method to demonstrate that your countVowels method works.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 20 points 3) A string is a "palindrome" if it reads the same forwards and backwards, such as the string "rac Write a class called Palindrome having a recursive static method called "checkString" to do th Include a main method to demonstrate that your checkString method works. 40 points 4) Write a generic class called Trio that has one type parameter. It contains three attributes (do Submit to WebCT. Problem1.xxx where xxx is txt, doc, docx, or pdf Vowels.java Palindrome.java Trio.java...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern