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
avatar
Mac
Q 1 and 2 Assignment 2.
March 19, 2010 07:14AM
1. Write a program that prints the following pattern:

Language: HTML
" " " " " " " " " "
2. Write a program that reads a line of text from the keyboard, and prints an acronym formed from the 1st letter of each word.

Example:

Enter a line of text: Just another valuable artifact
JAVA
Ron
Thanks 4 q1 and q2
March 19, 2010 09:20AM
Thank you for this Dr. vd Merwe, and these are relatively easier questions
Ron
A bit odd
March 19, 2010 09:39AM
Language: HTML
Dr. vd Merwe, on the forum you have written the first question as asking one to write a program that displays four quotes (" " " ") in one line, then a quote(") in each of the following three lines, and lastly, two quotes in the last line. Are you certain this is correct? That is, is it not a single quote on the 1st line, then 2 quotes on the second, three on the 3rd and so on, something that could be done with a "for loop"? I was kind of anticipating a figure akin to say, a pyramid of quotes or something. Please verify and lastly should there be spaces between the quotes. Please confirm.
Ron
Re: A bit odd
March 19, 2010 09:42AM
Ron
Re: A bit odd
March 19, 2010 09:45AM
Language: Java
You probably meant the 4th button/icon from the RIGHT in the toolbar and not left as you wrote earliear on how to post
avatar
Mac
Re: Q 1 and 2 Assignment 2.
March 19, 2010 10:37AM
Yes, from the right sorry - but only when you include Java code smiling smiley .

I am sorry - I never checked the output here above - it is fixed now.
Ron
Ok it's clarified
March 19, 2010 12:01PM
Language: HTML
Ok, thanks for clarifying question 1. Now as far as testing the classes goes, are you looking for a basic test with instantiation and results or the JUnit type of test with "assertTrue()" and all that?
avatar
Mac
Re: Q 1 and 2 Assignment 2.
March 19, 2010 01:57PM
basic
Re: Q 1 and 2 Assignment 2.
March 19, 2010 04:31PM
i do the pseodocode and jot the program by hand but i get it dificult to run.can any1 clarify how to run the problem cos the clue in the text book is not working for me plz help?
Re: Q 1 and 2 Assignment 2.
March 19, 2010 11:45PM
Mac, I am confused now. On Tut101 Ass 2 Question 1 is exercise 3 on pg 97 not exercise 1 as you mentioned. And Q2 is on exercise 2 on page 204 which is for the class Forex converting currencies. Please clarify even though it may be after the closing date...
avatar
Mac
Re: Q 1 and 2 Assignment 2.
March 22, 2010 11:07AM
Now you have me confused as well - don't have the text book with me on this public holiday - I may just have named it 1 and 2 here, not as per the book... will have to look tomorrow
avatar
Mac
Re: Q 1 and 2 Assignment 2.
March 22, 2010 11:08AM
You need to add code earlier in the chapter.
avatar
Mac
Re: Q 1 and 2 Assignment 2.
April 06, 2010 10:23AM
Will accept the answers for 1 (as here above) or the forex one (in the handbook).
Sorry, only registered users may post in this forum.

Click here to login