# Search:

Type: Posts; User: Mister C

Page 1 of 20 1

## Search: Search took 0.01 seconds.

by Mister C
Replies
37
Views
5,621

### Here is one way to do it in Java: int...

Here is one way to do it in Java:

int countVowels(String s) {
if (s.length() == 0) return 0;
int tailResult = countVowels(s.substring(1));
switch (s.charAt(0)) {
case ‘a’: case ‘e’: case...

by Mister C
Replies
37
Views
5,621

### clegs I gave you the recursive sol'n The base...

clegs I gave you the recursive sol'n

The base case involves the empty string, which contains zero vowels. For other cases, examine the first letter and add one, if necessary, to the result of...

by Mister C
Replies
37
Views
5,621

### He means something like... numChars =...

He means something like...

numChars = str.length()
for (i = 0; i < numChars; i++)
{
switch(str.at(i))
{
case 'a':
case 'e':

by Mister C
Replies
37
Views
5,621

### The base case involves the empty string, which...

The base case involves the empty string, which contains zero vowels. For other cases, examine the first letter and add one, if necessary, to the result of applying the procedure to the substring...

by Mister C
Replies
37
Views
5,621

### Here is the start of a non-recursive sol'n ...

Here is the start of a non-recursive sol'n

int vowel = 0; /* counts the total vowels */
int length; /* length of str */

for ( index = 0; index < length; index++ ) {
if (...

by Mister C
Replies
37
Views
5,621

### Why don't you try getting to work non-...

Why don't you try getting to work non- recursively first- then rewrite using recursion?

by Mister C
Replies
37
Views
5,621

### Two comments 1. Usually it is an if/else with...

1. Usually it is an if/else with recursion

int vowels(string phrase)
{
if (phrase.empty())

return 0;
8. ## Thread: 99 Bottles of Beer...

by Mister C
Replies
1
Views
1,640

### 99 Bottles of Beer...

Neat site:

http://www.99-bottles-of-beer.net/
9. ## Thread: basic prime numbers

by Mister C
Replies
40
Views
2,934

### Anon is correct ..Bohm and Jacopini in 1960's...

Anon is correct

..Bohm and Jacopini in 1960's stated that a Turing compatable language is a language can be used to solve any solvable problem. It was proved by them that in terms of controls...
10. ## Thread: Encoding charset to use card suits ASCII characters

by Mister C
Replies
23
Views
24,600

### In C++ with Windows: static_cast(5);...

In C++ with Windows:

static_cast<char>(5);
static_cast<char>(4);
static_cast<char>(3);
static_cast<char>(6);
11. ## Thread: removal of a return statment

by Mister C
Replies
10
Views
970

### Thanks, Quazh - I realized I had a mistake after...

Thanks, Quazh - I realized I had a mistake after I had posted- but I figured why bother to correct- when I was likely to be bashed anyway...by certain people on this board.

Just wanted to gather...
12. ## Thread: removal of a return statment

by Mister C
Replies
10
Views
970

### removal of a return statment

This question or suggestion involves the use of the return- used here to terminate the code- not as a function returning a value.

This code is found in a C programming book:

void print(int...
13. ## Thread: This sucks... Failing out

by Mister C
Replies
57
Views
6,598

### That's why alot of instructors who teach...

That's why alot of instructors who teach programming (myself included) only have about 25-40% grade based on programs...good reasons why stated above...

Most colleges/university usually have...
14. ## Thread: Alice Programming Language..

by Mister C
Replies
19
Views
4,435

### Well here are some excerpt from the preface of a...

Well here are some excerpt from the preface of a Alice programming book

Why Alice...

"Alice by itself isn't all useful if our goal is to train people so that they can be professional computer...
15. ## Thread: Lots of questions

by Mister C
Replies
5
Views
1,969

### Well it does not match the Knuth series...:) ...

Well it does not match the Knuth series...:)

For a cheap copy look online at Amazon or others. If you still live in Georgia Prelude you may check around...some colleges in Georgia have adopted...
16. ## Thread: Alice Programming Language..

by Mister C
Replies
19
Views
4,435

### Alice Programming Language..

Don't get a chance to come to this board much anymore..but would like to still chime in from time to time...

Alice is the new language of choice for many colleges/universities now in teachin...
17. ## Thread: Lots of questions

by Mister C
Replies
5
Views
1,969

### >15. Can you recommend any good tutorials on OOP...

>15. Can you recommend any good tutorials on OOP and C#?

http://www.csharpcorner.com/

Or a good search engine...

18. ## Thread: I fail at learning...

by Mister C
Replies
20
Views
3,697

### Well I thought it might be time to chime in... I...

Well I thought it might be time to chime in...
I teach CS at a Two year college.

1. C++ is not dead, a real good CC would offer (programming langs): C++, VB. NET, Java, and C#- Those are...
19. ## Thread: C++ Primer vs. Plus

by Mister C
Replies
14
Views
24,179

### gL_nEwB Why don't you look at both books...

gL_nEwB

Why don't you look at both books yourself..I would not take one bad review of the Prata book- and then make my decision solely on it.

C++ Prata is a good reference book- not the best-...
20. ## Thread: My new website

by Mister C
Replies
19
Views
3,541

### Well I meant links do not work- but why do you...

Well I meant links do not work- but why do you have them when they link to http://dhost.info/ only. I know they are placeholders but why put all 20 out there. When you have no tutorials to point...
21. ## Thread: My new website

by Mister C
Replies
19
Views
3,541

### Remember others may not know to view it at that...

Remember others may not know to view it at that resolution. Good web design means you should design around that fact. It your computer- not mine.

Do google seach- you will see that good web design...
22. ## Thread: My new website

by Mister C
Replies
19
Views
3,541

1. you are having (x)html problems- tutorials 2 & 3 are all "squished" together on the left side? Why?

by Mister C
Replies
8
Views
1,748

### Some critique for you.. 1.The black background...

Some critique for you..

1.The black background is hard to read- Not the most user friendly for tutorials.

lesson 5:
24. ## Thread: C++ programming design

by Mister C
Replies
11
Views
1,135

### Well there are also: Structure Charts and ...

Well there are also:

Structure Charts

and

Nassi Schneiderman Diagrams :)
25. ## Thread: Any teachers here?

by Mister C
Replies
10
Views
1,923

### Have not posted here in over 3 months I teach...

Have not posted here in over 3 months

I teach programming at the 2 year college. This semester C and Java...