Wednesday, March 22, 2006

Who's the scribe today???

.... O.o
o.O

Friday, March 17, 2006

Long weekend post!

Hey folks,

Hope you guys had a productive class on Thursday while I was away sick. Just a reminder that "What's on the Menu?" is due next week and from what I saw on Wednesday, people are progressing quite nicely. I have to say that I think that you guys have come a long way since the beginning of the course. The "visual" part of VB is not too hard to learn, the labels, command buttons, list boxes, ...etc. It's the actual programming part that involves the difficult concepts of coding. Things like If-Then statements, For-Loops, Functions are the fundamental building blocks of programming. From what I can see in the past few weeks you guys seem to be grasping most of these basic building blocks.
So overall I just wanted to say that I'm proud of what I'm seeing so far and to keep working hard and stick with it. Programming is an art and you have, and will have more, many little tools to use along with basic fundamentals that you, the artist must decide which tool(s) to use given a task. Just like an artist is master of creating depth, fading, 3-D imaging, sharpness, and other features individually, he or she must use their knowledge about art to decide which one of their "tools" to use for each painting. For those of you who like sports, such as basketball, I played in highschool, here at DMCI and I still play organized basketball all the time. When I have the ball and I want to get past my check, I've got to decide, in a matter of 5 seconds or less, should I drive, make a jumpshot, post-up, fake a shot, pass the ball away or wait for a pick. The concept is still the same. The only difference is I have less than seconds to decide which "tool" is best for the job at hand.
Have a great weekend folks and see you on Monday!!

Wednesday, March 15, 2006

Nothing Really to Scribe About...

Well... lets see.... today was a work period so there is nothing really new to tell... We have tomorrow and Monday then this is due... Well I hate to make a post this short but I really have nothing at all to say... Well I don't know what else, there isn't really a scribe list so I don't know who's done it this cycle already... So I guess the next scribe is Margaret... Well good luck everybody!

Tuesday, March 14, 2006

Sweet I'm Scribe XD



Today we got our new assignment it is called ... "What's on the menu?" . Well , in this assignment we are give a couple tasks .

First we have to make it password protected . This part is probably The easiest part . I'm not exactly sure if I can type some code for this assignment so I'm not going to bother . For this part make sure that it is NOT case sensitive . Also make sure that the password is "MENU"

*hint hint * You have to use Ucase()

The second thing I is that We must use 4 different forms .One for the Math marks menu option.

For this option you must allow the user to enter three test marks and the prgram should find the AVERAGE , MEDIAN , and , the last on I forgot . This I find my be a problem when I start it . I thing for this one at home you should plan it out if you don't have Visual Basic just in so you can pass this one without much problems .

The second thing we must do in this assignment is the Easy as MNO ? This one should be the easier than the Test thing because we have done something like this . But this time we must stop the user from putting more than exatly five name in the list boxes . That is pretty easy.


The third is the "The Greeting" menu option . This one require you knowlegde of using the & function also our lesson from yesturday using loops . For information on that read the last post made but Mary Ann not Mr.Malandrakis . O.o For this one we have to make the user type how long their name is and an input box poping up asking for the letters in there name I'm guessing one by one . Then a msgbox saying , "Hello usersname ...". For this one suggest using what Mr.M told us about IsNumeric function . I would explain it but I still don't fully understand it .

Now for the the Introduction you have to make a nice form that will make the user think the program is cool I guess . So you have to make stuff move and use the right colors and make it like awesome .

The final thing is to end the program *cough cough* ( Use end on the select case for the menu . Just Type End there and that part is done ) .

Remember Use lots of menu for almost everything and you will be fine this project should be easy to finish but time consuming . You also have only 3 days to complete this so use your lunch times and Mornings to get this done . I mean waking up at 6:00 to make it to school isn't gonna kill anyone ... At least I hope so X( ... . That is all .


The next scribe I will choose is .. . I dont know maybe Graeme or someone XD

Monday, March 13, 2006

Is Michael today's scribe?

Hey folks,

Based on the last short scribe below I'm assuming Michael is tonight's scribe. Now the reason I'm posting today is because today's class is a VERY IMPORTANT one. If by chance Michael dosen't make a post by 8:00 pm at the latest, could someone please be the "fill-in" scribe for tonight and make a post covering today's class? That would be greatly appreciated.
Also don't forget to check out the "Built-in VB Functions" link in the "Links" section below. If you recall I mentioned on Friday that this was up. It includes all a lot of little conversion functions and so on. Very much worth checking out as you will end using most of these at some point. Have a great night folks!!

For...Loops

Today Mr. Malandrakis introduced something new to us in class called For Loops. It's used when you know exactly how many times you want to do something.

Before we started working on the code, we were told to put a list box, a command button, and a menu on our form. Our menu had to be called For Loop, and we had to have 7 sub menus.

First step was to declare our variables.


Dim n, x As Integer 'DUMMY COUNTERS USED AS LOOP COUNTERS
Dim userNumber As Integer


We're using "n" and "x" as the variables since it's easier to type rather than using "counter".

Next we needed to bring up the click event for the command button, which we named "cmdClear" because that would clear what was in the listbox.


Private Sub cmdClear_Click()

lstClear.Clear

End Sub


Now next we had to bring up the event for the sub menu. I named mine "mnuLoop". Under that line of code we typed in the select case statement.


Private Sub mnuL_Click(Index As Integer)

Select Case Index

Case 0...

...Case 6

End Case


Now this is where the actual looping begins. For the first Case (Case 0) we had to make a message box pop up 5 times. To do this, you have to first type in "For", then your variable which is "n". when looping you want to put the number that you want to start off with, and the number you want to end at. In this case we want the loop to start at 1 and end at 5. To end the code you'll have to type in "Next n". This is what the code looks like..


Case 0

For n = 1 To 5 'LOOP WHICH EXECUTES 5 TIMES MESSAGE BOX SHOWS UP 5 TIMES

MsgBox "Hi"

Next n 'WHEN PUTTING n IT LETS YOU INCREASE BY ONE EACH TIME.


Oh..and you have to remember to indent..I can't really do that here on blogger..


For case 1 we want to add the loop counter into the list box. for this one, we were told to make the loop go from 1 to 7.

Case 2 'NUMBERS FROM 1 TO 7

For n = 1 To 7 'LOOP EXECUTING 7 TIMES

lstNumbers.AddItem n 'ADDING THE LOOP COUNTER TO THE LISTBOX EACH TIME THROUGH THE LOOP

Next n

Case 2, we had to make the loop count from 1 to 15, but by 2's. since it's starting at one it would be counting by odd numbers. (ex. 1-3-5-7-9...15). When going up by a certain number you have to add in the word "step" in your code. When you add "step" it means to increase by that much each time in the loop.

Case 2 'ODD NUMBERS

For n = 1 To 15 Step 2

lstClear.AddItem n

Next n

Case 3: We wanted the user to enter a number of their choice in an inputbox.


Case 3 'ASK ME

userNumber = InputBox("PLEASE ENTER A NUMBER", "NUMBERS")

'FOR LOOP SHOWING ALL EVEN NUMBERS STARTING AT ZERO
'AND STOPPING AT THE NUMBER ENTERED BY THE USER.

For n = 0 To userNumber Step 2

lstClear.AddItem n

Next n


Case 4: We had to put a loop inside another loop...


Case 4 'NESTED LOOPS

'IN NESTED FOR...LOOPS THE INSIDE LOOP EXECUTES
'COMPLETELY FOR EVERY "STEP" OF THE OUTSIDE LOOP.

For n = 1 To 3 'OUTSIDE LOOP EXECUTING 3 TIMES

For x = 1 To 4 'INSIDE LOOP EXECUTING 4 TIMES

lstClear.AddItem "HI"

Next x 'END OF INSIDE LOOP

Next n 'END OF OUTSIDE LOOP

'"HI" WILL SHOW UP 12 TIMES IN THE LISTBOX.

In case 5 were to start the loop from 100 to 1 and go down by one. Also, to make it divisible by 3. When counting down by 1 you would have to add a negative sign (-) in front of the number. In this loop we had to include an If statement.

Case 5 'multiples of

For n = 100 To 1 Step -1

If n Mod 3 = 0 Then

lstClear.AddItem n

End If

Next n

Last one. In Case 6 we had to make the loop go from 16000 to 1 and go by multiples of 27. Your basically doing the same thing that you did in Case 5, except your changing some bumbers.

Case 6 'multiples of 27 between 1 and 16000

For n = 16000 To 1 Step -1

If n Mod 27 = 0 Then

lstClear.AddItem n

End If

Next n

End Select

For the remainder of the class we looked at the solution for "Motion in the Ocean" We looked at Graeme's because he completed it and got his to work out. GOOD JOB GRAEME !

And that's what we learned and did today. I hope I explained things well and didn't leave out anything important..If I did, I'm real sorry >.<

Next scribe will be Micheal. Since he really wants to to be the next scribe. =D

Saturday, March 11, 2006

XD Can I be Scribe Next ???

Can I be scribe next after Mary Ann lol . =]

Friday, March 10, 2006

NEXT SCRIBE IS....

Mary Ann..

SHORT POST.. SCRIBING WISH COMES TRUE


MY WISH CAME TRUE.. I'M THE SCRIBE FOR TODAY ahaha..

well as for today's class, I believe that we got today's whole class to finish working on our Practice Program called MOTION IN THE OCEAN.. hope everyone has they're program running smoothly and perfectly.. well as for me.. I have some minor adjustments to do.. and for those who didn't get to finish.. don't you worry.. Mr. Malandrakis will go over the solution with us next class on MONDAY.. just to think spring break's coming up soon.. well that's pretty much it.. THE NEXT SCRIBE IS.......

YOU'LL HAVE TO WAIT.. I'LL POST UP WHO THE NEXT SCRIBE IS WHEN I COME BACK!!!

SEE YOU ALL ON MONDAY.. HOPE YOU GUYS HAVE A WONDERFUL WEEKEND.. TAKE CARE.. BYE

Thursday, March 09, 2006

scribing again...

Just worked on your practice program, "MOTION IN THE OCEAN"

My project didn't really get off the ground. I don't think that I will get it done. Harder than I thought it would be.

Nothing really to say....

the next scribe will be....
Scott

Wednesday, March 08, 2006

The M scribe


As everyone know that i'm a lazy person and i can't remember much from our class, so i'll just write as much as i can remember.

Today we went into yesterdays class lesson, where MR. M gave me some time to get our code working. Then MR. M gave me a practice program to do called Motion to da ocean, where we need to make the image move, enlarge, reduce and in any spot in the form.

At the end of the class, MR. M talk to us about MC Donald foods, where the have bad burgers and take them 31 second to cook it. He said that if we have to order fast food, we should go to Burger King instead of MC Donald.

this is all i can remember, if i missed anything just give me a comment and i'll add it.

well guys, thats it for today bye bye.

The Next Scribe will be The one and only.................................................................................................. Masta "PAULO"

Tuesday, March 07, 2006

Opps


opps

next scribe will be Joung

ERROR

He has already did scribe yo. Pick someone else


ok

'Dim Jian as scribe 'can only find that in VB 2000.6 and the VB u using now is VB 6.0?



Dim
Sum as Chinese Food 'good to eat
Dim Thang, Indrew as string ' already did scribe this cycle
Dim NEXTSCRIBE as string
Const ERROR = "He has already did scribe yo. Pick someone else"

inputbox ("enter the name you wish to be next scribe")

inputbox = Next scribe + next scribe
'oh dear, i dont even know if that is
'how you store the name.
if NextScribe = Thang, Indrew then

msg ERROR
end if


Form Load

'Today was once again those days i feel out of place.
'I don't know if i should copy the codes or lesson to the teacher. I end up copying so i kind of have 'no idea what happen today.

'any ways today we learn about motion
'making a picture of our choice enlarge, reduce, move up move down. ' i think hahaha. like i 'said earlier i was too busy copying.
'also make it stop and go back to the starting point, and one more thing and is to make it go 'random places i anywhere in the form

'all those options are use in a menu
'heres something we did today yo!

Const IMAGEWIDTH = 1755
Const IMAGEHEIGHT = 1760

Const FORM_WIDTH = 7575 'WIDTH OF FORM
Const FORM_HEIGHT = 7560 'HEIGHT OF FORM

Const HOME = 0 'HOME POSITION FROM (0.0)

Const RANDOMPOINT = 3000

Dim xCoord As Double
Dim yCoord As Double

Dim H_and_V_CHANGE As Integer 'constant to represent how many twips vertically
'and horizontally it movies each interval of the timmer.

Private Sub mnuOptionx_Click(Index As Integer)

Select Case Index

Case 0
'enlarge

tmrEnlargeReduce.Enabled = True
H_and_V_CHANGE = 120

Case 1
'reduce
H_and_V_CHANGE = -120

Case 2
'move

xCoord = InputBox("enter an x-coordinete", "Horiantal", Val("250"))
yCoord = InputBox("enter a Y-coordinete", "vertical", Val("250"))

imgX.Move xCoord, yCoord

Case 3
' reset

imgX.Move HOME, HOME

Case 4
' let it move on it own

tmrMove.Enabled = True
H_and_V_CHANGE = 120

Case 5
' random number

imgX.Move FORM_WIDTH * Rnd, FORM_HEIGHT * Rnd

End Select

End Sub
Private Sub tmrEnlargeReduce_Timer()

If imgX.Width <= FORM_WIDTH And imgX.Height <= FORM_HEIGHT Then

imgX.Width = imgX.Width + H_and_V_CHANGE
'enlarge, reduce width
imgX.Height = imgX.Height + H_and_V_CHANGE
'enlarge, reduce width

End If

If imgX.Width < style="color: rgb(51, 51, 255);">Then ' this line of code is wrong
tmrEnlargeReduce.Enabled = True
End If


End Sub

Private Sub tmrMove_Timer()

imgX.Left = imgX.Left + H_and_V_CHANGE

If imgX.Left <= RANDOMPOIT Then

imgX.Top = imgX.Top + H_and_V_CHANGE

Else

imgX.Top = imgX.Top - H_and_V_CHANGE

End If

End Sub

'okay guys and girls, that is it for today so just let me finish this form up.

ok people i will decide that the next scibe will be indrew for picking me.


end sub


To see what my form look like when is play click here.

Monday, March 06, 2006

WE WERE ALLOWED TO LOOK THROUGH OUR CLASS LESSONS FOLDERS DURING THE PROGRAMMING TEST??!! WOW.. MAYBE NEXT TIME I SHOULD REALLY PAY MORE ATTENTION.. OR ASK....

iBLOG

I am the scribe once again! I will procced to explain what happened today. Today we did nothing much but a TEST! The test was mainly on some basic concepts with the first few pages being exactly multiple choices followed by fill in the blanks with the last page of filling the required criteria.


THE TEST IS DIVIDED INTO 2 PARTS!

  1. 1) Written part ^
  2. 2) Programming part

(Prior to the programming part of the test you must hand in your test.)
After you have handed it in then you proceed onto opening the computer screen and start programming filling the required criteria out.

All programming test allows you to have access to class lessons / notes.


My POV: I believe the test was ok, the stuff was based on what we did, so it shouldnt have been that hard but then again the programming part of the test was frustrating, certain aspects of the code did not fall into play and it was pretty time consuming. Maybe Mr.M should give us a clue on what the test will be on to better prepare ourselves?


Meanwhile ... I will stick with pc sci and see what happens. Cited by Mr. M. " It's like learning a new language, give it some time."

As for class lessons maybe Mr. M. should tell us a day ahead prior to the lesson.

That's it for now. The next scribe is Jan because he didnt scribe yet .

Have fun!

Saturday, March 04, 2006

Double Scribe


Two days ago, Margaret will suppose to be scribe. She was sick so Mr. Malandrakis asked me to be scribe. But I was too busy. I hope I can make it up by doing the first ever
double scribe. Here I go....

March 2nd

Today, we learned to use a new tool called "Select Case." Select Case it like an IF statement but more organized and used in different occasions.

Here is an example of how to use Select Case.

Select Case expression

Case value1
Block of one or more VB statements
Case value2
Block of one or more VB Statements
Case value3
Block of one or more VB statements

End Select

Another neat function, we learned was how to make menus. The ones you see in Windows programs that say file, edit, etc.
In order to make a menu, you go to tools then menu editor or Ctrl + E. To make an menu, you type a caption and a name. The name must begin with "mnu." To make a sub menu, you click on the -> arrow, then repeat the way to make a menu (all things in inside the menu within the sub menu make have the same name but different caption. To include a sarperator, just use - as your caption. Also, you can disable a menu option by clicking the check box next to the enabled.

Yesterday...

Yesterday, we learned to generate random numbers. Random numbers are just for a multide of thing. Example: the movement of a computer in a video game, the machines in casino, etc... The expession for random is rnd. When you use rnd it generates a number between 0 and 1.

Here is an example of one way random numbers are used.

Dim Value as Integer

Value = Value + (Rnd * 6) Generates random value between 1 and 6
.

I think I am missing somethings. I am sorry for any forgotten information. Oh-ya. I know a lot of people want VB, and that Mr. Malandrakis is trying hard to get a copy for us. I am not sure if I should be saying this and I hope I don't get in trouble, but I was able to retrieve a version of Visual Basic 6.0. But it is not Enterpise Edition like the one we use in school, it is professional. Its exactly the same but with more tools. Maybe, if anyone wants it they can ask me. Though, I am not sure if I could. Well ya. One more thing, I have a suggestion. If Mr. M can make a scribe list. Showing all the previous scribe, so that when it time for the scribe to pick the next person they know who has already scribed.


The next scribe will be...."iNdrew."

Wednesday, March 01, 2006

Test #1

Hey guys,

Your first test will be on Monday, March.6 and it will consist of two parts. A written part and a programming part. The written part will consist of mulitple choice, true-false questions, along with a small part where you might have to fill in some code.
The programming part will consist of a small program that you will have to complete during the remainder of the class. The form(s) will be pre-made for you and in your folders to begin and you will mainly have to write code to perform certain tasks.
The topics covered on the written portion are wide open to anything we've looked at so far this semester. You will have your monitors OFF during the written portion and once you're done the written portion you will hand that in and commence the programming portion.