NSFCD

Generally Speaking => Power On => Topic started by: Allegretto on January 30, 2009, 10:26:17 AM

Title: Computer programming.
Post by: Allegretto on January 30, 2009, 10:26:17 AM
I am currently part of a Computer Programming class during my Junior year of highschool, as anyone else ever been a part of a class similar to this?

An example of the work we have to do is as followed

And this is actually one of the easier projects we have had to do.

Public Class Form1
    Public G1 As Double
    Public G2 As Double
    Public G3 As Double
    Public G4 As Double
    Public G5 As Double
    Public G6 As Double
    Public G7 As Double
    Public G8 As Double
    Public G9 As Double
    Public G10 As Double
    Public Total As Double
    Public average As Double
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

    End Sub

    Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
        PictureBox1.Visible = False
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        G1 = Val(TextBox1.Text)
        G2 = Val(TextBox2.Text)
        G3 = Val(TextBox3.Text)
        G4 = Val(TextBox4.Text)
        G5 = Val(TextBox5.Text)
        G6 = Val(TextBox6.Text)
        G7 = Val(TextBox7.Text)
        G8 = Val(TextBox8.Text)
        G9 = Val(TextBox9.Text)
        G10 = Val(TextBox10.Text)
        Total = G1 + G2 + G3 = G4 = G5 = G6 = G7 = G8 = G9 = G10
        average = Total / 10.0
        TextBox11.Text = average
        TextBox12.Text = Total
        If (average <= 98.0) Then
            TextBox13.Text = "A+"
            PictureBox1.Visible = True
            PictureBox1.BackgroundImage = My.Resources.A_Face
        ElseIf (average >= 94.0) Then
            PictureBox1.Visible = True
            PictureBox1.BackgroundImage = My.Resources.A
        ElseIf (average >= 90.0) Then
            PictureBox1.Visible = True
            PictureBox1.BackgroundImage = My.Resources.B_
        ElseIf (average >= 88.0) Then
            PictureBox1.Visible = True
            PictureBox1.BackgroundImage = My.Resources.B_face
        End If
    End Sub
End Class
Title: Re: Computer programming.
Post by: Jono2 on January 30, 2009, 11:02:15 AM
what language are you programming in? o_O
Title: Re: Computer programming.
Post by: Silverhawk79 on January 30, 2009, 11:13:44 AM
Quote from: Jono2 on January 30, 2009, 11:02:15 AM
what language are you programming in? o_O
...Java? Python? Anyways, I'm a CS major, so...WHOO C++ SO FUN.
Not really. I'm starting to dislike C++.
Title: Re: Computer programming.
Post by: Jono2 on January 30, 2009, 11:59:31 AM
Quote from: Silverhawk79 on January 30, 2009, 11:13:44 AM
Quote from: Jono2 on January 30, 2009, 11:02:15 AM
what language are you programming in? o_O
...Java? Python? Anyways, I'm a CS major, so...WHOO C++ SO FUN.
Not really. I'm starting to dislike C++.

I'm a CS major as of next year, and I'm in Java right now, but I'm wondering what "Public G1 As Double" is from.
Title: Re: Computer programming.
Post by: Doodle on January 30, 2009, 01:52:35 PM
Well, they gave me a Web Publishing class for this semester. So, I'll have to learn HTML.
Title: Re: Computer programming.
Post by: Lotos on January 30, 2009, 02:39:34 PM
My school doesn't have poop as far as I know.  I'm too confused by the cpp tutorial I've been viewing, or maybe because it's too tl;dr?
Title: Re: Computer programming.
Post by: Hishipi on January 30, 2009, 03:43:53 PM
Just started a C++/Java class today. :o
Title: Re: Computer programming.
Post by: Jono2 on January 30, 2009, 03:57:52 PM
Quote from: Hishipi on January 30, 2009, 03:43:53 PM
Just started a C++/Java class today. :o

grade school or university?
Title: Re: Computer programming.
Post by: Hishipi on January 30, 2009, 04:13:01 PM
Quote from: Jono2 on January 30, 2009, 03:57:52 PM
Quote from: Hishipi on January 30, 2009, 03:43:53 PM
Just started a C++/Java class today. :o

grade school or university?

9th grade.
Title: Re: Computer programming.
Post by: Jono2 on January 30, 2009, 07:22:41 PM
Quote from: Hishipi on January 30, 2009, 04:13:01 PM
Quote from: Jono2 on January 30, 2009, 03:57:52 PM
Quote from: Hishipi on January 30, 2009, 03:43:53 PM
Just started a C++/Java class today. :o

grade school or university?

9th grade.

D:

lucky, i didnt get to start until grade 10.

C++ is boring, but you'll probably get into visual stuff in grade 11 or 12.  stick it out, it gets much more fun (if it's not fun already).
Title: Re: Computer programming.
Post by: Titus Andronicus on January 30, 2009, 07:45:32 PM
I'll be a CS major next year, and have no idea how to do any of that. My school didn't have any computer science classes. Those hoes.
Title: Re: Computer programming.
Post by: Zovistograt on January 30, 2009, 07:50:19 PM
I'm going to be a CS major in the fall and have taken a CS course in my school and am now taking AP Computer Science A as an independent study.  Both are Java so I know Java decently well.  I think I'll be using C++ in college though, which I understand is quite similar to Java.
Title: Re: Computer programming.
Post by: Jono2 on January 30, 2009, 08:45:31 PM
Quote from: SolidSNK on January 30, 2009, 07:45:32 PM
I'll be a CS major next year, and have no idea how to do any of that. My school didn't have any computer science classes. Those hoes.

you're diving straight into computer science?  is that normal?

at our university, most students take "University 1", so that they can get their bearings and choose what they want.  first year courses are generally pretty cheap here, and it really sends people in the right direction, and roots out those that don't belong.

there are plenty of people who were in my CS1010 class that hadn't programmed before, and are in my CS1020 class.  You should be fine.
Title: Re: Computer programming.
Post by: Commander Awesome on January 30, 2009, 09:35:58 PM
The computer science classes at my old high school were pretty much, "lol how i work ms office" with a dumbpoop as a teacher.
I saw this, aced the class, and didn't bother with the Computer Programming class they offered.

Since, I've been self-teaching myself anyway.
Title: Re: Computer programming.
Post by: BOSSNIG on January 30, 2009, 09:57:03 PM
I can code LUA, HTML, CSS, and a bit of Javascript.

LUA is painfully easy actually.
Title: Re: Computer programming.
Post by: Link3588 on January 30, 2009, 10:10:09 PM
I despise coding java.  Or maybe the teacher is the reason I hated it.  I don't know, I am enjoying learning basic HTML however.