Pseudo Code? 2

Write a program, that uses three separate functions, to capitalize the first character of each word in a given phrase, insert a “:” separator symbol between every third word and replace any “!” exclamation or “?” by a period “.”, respectively. To do this, you will need to detect the beginning of a new word. You may also need to create intermediate or temporary strings to allow for insertions. Do not use any of the string functions other than size, length, clear or the [ ] operator.

Using these strings:

s1 = “just gonna stand there and watch me burn! but that's alright because I like the way it hurts!”

s2 = “can't you taste this gold?”

s3 = “can we pretend that airplanes in the night sky are like shooting stars?”

Can anyone break this down it terms of a sort of psuedo code?

For instance,

Pseudo code:

decalre vairable x
decalre variable y
declare variable sum

main function start

sum = variable x + varible y

display sum

stop

Proper code:

int x = 2;
int y = 2;
int sum;

int main () {

sum = x + y;

cout << sum;

}

I would really appreciate any kind of help.
Last edited on
Topic archived. No new replies allowed.