Welcome! Log In Create A New Profile

Advanced

Assignment 2

Posted by basicgerm 
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 Re: Assignment 2
March 22, 2010 06:36PM
cbrunsdonza Wrote:
-------------------------------------------------------
><snip>
>
> ... ok done, now I can concentrate on my
> ICT262{1,2}

damn, you're doing those too? damn! i though i was a loner, ah well,! smiling bouncing smiley
avatar Re: Assignment 2
March 22, 2010 07:08PM
Yeah, ICT2621 is easy, but I'm behind on ICT2622 with the pretty pictures. Going to have to concentrate seriously on this one. As a heads up, learn how to write (and draw) stuff by hand as no computers in the exam.

My worst exam was 2yrs back, COS111, where I had to do a basic C++ app and struggled to write the code by hand. Took me 30minutes to do a basic hello world.

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
avatar Re: Assignment 2
March 22, 2010 11:23PM
@cbrunsdonza

Are ICT2621/2 using the same book, or has that changed now?
avatar Re: Assignment 2
March 23, 2010 05:02AM
^-^same book: Systems analysis and design in a changing world, 5th edition.

how do i submit the INF assignment, screen shots of the code and of the interface, or the code itself + screen shot of the interface, or just the interface?
avatar Re: Assignment 2
March 23, 2010 01:18PM
I did a cut 'n paste of the code, and then screenshots of the UI as per their requirements.

Not 100% sure if I supplied the correct ones (object Tree). Its seems that for Q3 you need to supply a screenshot of your actual AP in progress, where in Q1 you supply just a screenshot of the form designer.

Guys, please correct me if you feel I'm wrong. We are here to help.

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
avatar Re: Assignment 2
March 23, 2010 01:46PM
I did a screen shotof the object tree from all three question and a also a screen shot of UI at design time for Q 1 and 2 and run time for Q3 (as asked).
I copied and pasted the code requested and formated to courier, so nesting and indenting are shown correctly.

In question 2, they also mentioned the randomize function must be in the forms OnShow event, but they did not ask it as a question. So how they to know you did this? So I also copied this procedure with the UI and objects screen shots.
avatar Re: Assignment 2
March 23, 2010 02:06PM
may I ask for help with regard to this question 2.7 & 2.8
I have not got a grasp of the topic yet and time's hammering me down with ICT2621/2 and FAC1601 breathing down my neck.
Re: Assignment 2
March 23, 2010 04:07PM
Question 2.7 user can only add 5 names, the constant and disabling the two buttons?
avatar Re: Assignment 2
March 23, 2010 07:01PM
2.7) Just do a check after each name added to make sure you have not reached the count. If you have reached the count then disable the button.

I also added a check to make sure the name added was not blank - habit.

2.8) You need to randomise your rand generator!!!!!!!!!!

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
avatar Re: Assignment 2
March 23, 2010 07:02PM
basicgerm Wrote:
-------------------------------------------------------
> may I ask for help with regard to this question
> 2.7 & 2.8
> I have not got a grasp of the topic yet and time's
> hammering me down with ICT2621/2 and FAC1601
> breathing down my neck.


Personally I would just moving on with ICT262{1,2} as its more time consuming. You can always come back to Delphi next week.

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
avatar Re: Assignment 2
March 23, 2010 07:46PM
Quote

2.7) Just do a check after each name added to make sure you have not reached the count. If you have reached the count then disable the button.
Umm, The buttons are disabled before adding names. When there is at least one name then you enable the buttons.

That is the way I understand it.
Re: Assignment 2
March 23, 2010 08:05PM
This is how far i've managed to go:-


procedure TForm1.btnAddNamesClick(Sender: TObject);
const maxbookings = 5;
var
stadium: string;
NoOfStadiums: integer;
begin
stadium := InputBox('FIFA Stadium', 'Please enter the name of the stadium:', ''winking smiley;
lstStadiums.Items.Add(stadium);
end;
end.

(what else do you code afterwards coz anything i try raises an error. what have i done wrong in the code so far)
avatar Re: Assignment 2
March 23, 2010 10:18PM
@aviwe.
There is nothing wrong with that code?

What are you trying that raises an error?

Also, because a max of 5 stadia must be entered, you need to check how many you have already before using the inputbox in case there are five already entered.
avatar Re: Assignment 2
March 24, 2010 01:21PM
kiolb Wrote:
-------------------------------------------------------
> 2.7) Just do a check after each name added to make
> sure you have not reached the count. If you have
> reached the count then disable the button.
> Umm, The buttons are disabled before adding names.
> When there is at least one name then you enable
> the buttons.
>
> That is the way I understand it.


Sorry, your right. You need to enable the button after the first entry has been added. Can see my brain has moved on to other modules

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
Re: Assignment 2
March 25, 2010 08:52PM
Hey guys!!!

I am stuck on the 2.7 & 2.8 parts of the assignment.

My code works for 2.7 & everything but how am i meant to limit it to 5 inputs?

My code also does everything its meant to for 2.8 but how are u meant to work out the total cost from the random numbers generated? It keeps telling me that it cant convert the string into integer cause its not compatable.

Help!!
avatar Re: Assignment 2
March 25, 2010 08:55PM
gooi your code here and let us have a go at it,

Language: Delphi
begin //make sure you gooi it like this; {so we can have a go at it};
avatar Re: Assignment 2
March 25, 2010 09:48PM
leandi90 Wrote:
-------------------------------------------------------
> Hey guys!!!
>
> I am stuck on the 2.7 & 2.8 parts of the
> assignment.
>
> My code works for 2.7 & everything but how am i
> meant to limit it to 5 inputs?

Use a constant (remember) and before each input, check the count of your list. If your list has fewer than 5 items, then proceed with the input box, if its already five (or more?) then do nothing.



> My code also does everything its meant to for 2.8
> but how are u meant to work out the total cost
> from the random numbers generated? It keeps
> telling me that it cant convert the string into
> integer cause its not compatable.

>
> Help!!

IntToStr

Remember this and type it out a hundred times. I suspect that we will get this in our exams as its use pops up too often during this module.

--------------------------------------------------------------
Don't Assume Everything is a Nail Just Because You Have a Really Big Hammer
Re: Assignment 2
March 28, 2010 08:30PM
Hi folks...

I'm stuck on part 2.8 of assignment 2 and don't know how to proceed... confused smiley
I'd be extremely grateful if someone could just point me in the right direction...

Thanks...
Rid1...
avatar Re: Assignment 2
March 28, 2010 11:23PM
Quote
45741549
Hi folks...

I'm stuck on part 2.8 of assignment 2 and don't know how to proceed... confused smiley
I'd be extremely grateful if someone could just point me in the right direction...

Thanks...
Rid1...

Ex 7.2 step 5 can be used as a basic structure for the answer.
Re: Assignment 2
March 29, 2010 09:14AM
Hi Guys

Please help!

Im having trouble with converting the values from sedScore1 to string in lblResult?

...
begin
Score1 := sedScore1.Value;
Score2 := sedScore2.Value;
if Score1 > Score2 then
begin
lblResult.Caption := edtTeamName1.Text + ' beat ' + edtTeamName2.Text + InToStr(sedScore1.Value) ...

Thanks

Krish
...
Sorry, only registered users may post in this forum.

Click here to login