English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Mr. Mitch B I only have an interface. I just got buttons and labels with pretty colors and all that. I have not written any codes can you help me or not.

Can someone tell me how to write the following program in Microsoft Visual Basics. My interface looks great but Im going to get an F unless I come up with the correct codes.
Please no smart *** answers. I am a full time student and I work a full time and part time job to take care of me and my family. I hate programming. I dont need anyone making remarks about me not reading or doing my work, This is serious business. Can someone just help me out please.

I have to Design an application that will accept students numerical score and return a letter grade. Please help me.

2006-10-08 15:49:51 · 4 answers · asked by DuceDuce 2 in Computers & Internet Programming & Design

4 answers

You posted this question twice, and I'm not sure what answer you're watching, so here's my previous answer again:

I'm going to assume you're using VB 2005, and that you do not need to store any other information other than a single grade, and return a single character value that is the person's grade.

From your toolbox, drag a button, a text box, and a label onto your form.

Name the button: btnGetGrade
Name the text box: txtboxGradeInput
Name the label: lblDisplayGrade
You can also add a descriptive label that prompts for the input if need be.

So here's what it should look like:
__________ ______
Input student's grade: |__txtbox___| |__btn__|
Label

Now, double click on the button (btnGetGrade)
And type in the below:

Private Sub btnGetGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGrade.Click
Dim studentScore As Integer = CInt(Me.txtboxGrade.Text)

If studentScore > 90 Then
Me.lblDisplayGrade.Text = "Student Grade Letter: A"
Else
If studentScore > 80 Then
Me.lblDisplayGrade.Text = "Student Grade Letter: B"
Else
If studentScore > 70 Then
Me.lblDisplayGrade.Text = "Student Grade Letter: C"
Else
If studentScore > 60 Then
Me.lblDisplayGrade.Text = "Student Grade Letter: D"
Else
Me.lblDisplayGrade.Text = "Student Grade Letter: F"
End If
End If
End If
End If
End Sub

2006-10-08 16:50:35 · answer #1 · answered by addtheninth 2 · 0 0

I disagree on those languages you chosen. i think of the programming language "Java" by way of fact Java has Gui(picture person interfaces) and great things which could help you acomplish this. i'm gaining wisdom of Java myself and that i could prefer to be taught it with somebody. I extremely have my very own web site I in simple terms began. e mail in the adventure that your fascinated. in any different case. in simple terms bypass with JAVA.

2016-11-27 01:52:30 · answer #2 · answered by lebling 3 · 0 0

I better not see anyone give this guy a smart @$$ answer.

2006-10-08 15:57:36 · answer #3 · answered by Brandon 3 · 0 0

... and what the teacher asked you to do ? You won't get our answer if you don't give us the question.

2006-10-08 18:47:46 · answer #4 · answered by papadaddy 3 · 0 1

fedest.com, questions and answers