Welcome! Log In Create A New Profile

Advanced

Second Semester 2010: Assignment 2 - Question 1

Posted by Sabrina275 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Second Semester 2010: Assignment 2 - Question 1
July 21, 2010 01:43PM
How have other students approached question 1? I have set my program up to look for the first space in the sentence and then add the character before the space to the acronym. Then to go on and look for the next space in the sentence and so on. The final step is to add the last character of the sentence to the acronym.
Does anyone else have a different idea of how to tackle this question?
HTC
Re: Second Semester 2010: Assignment 2 - Question 1
July 22, 2010 08:52PM
Hi ,

Here follows quasi pseudo code al la carte;

Try to read a line of text from the keyboard then print an acronym from the firt letter of each word.

Use class with line read from standard in.

Split string into words. Convert to uppercase and print first letter?

smile
Re: Second Semester 2010: Assignment 2 - Question 1
August 14, 2010 09:21PM
Hi guys, i'm stragling with this question really !

I managed to write a code, but it only read the first word of the sentence only.

How can I read the second word in a sentence . please help i'm stagged.

e-mail 0834761661@mtnloaded.co.za
Sorry, only registered users may post in this forum.

Click here to login