Preview

Computer science industrial attachment propasal

Satisfactory Essays
Open Document
Open Document
343 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer science industrial attachment propasal
UNIT CODE: BIT 3102
UNIT TITLE: EVENT DRIVEN PROGRAMMING
Assignment Two
This assignment focuses on the following
• Controlling program flow using if control structure and select case control structure
• Use of option buttons and checkboxes
Create a VB project and save it as assignment two – your name and in this project add the following forms
i. A form that reads in a student’s cat1, cat2 and final exam marks then computes the total and displays the total in a text box. It then displays a remark as “pass” in a textbox if the students total is greater than or equal to 40 otherwise it displays fail. Use the if control structure. ii. Add a text box grade to the above form and a command button with the caption/text as “Grade” that computes the grade when it is clicked. The grade is computed as follows
• Total greater than or equal to 80 – Grade “A”
• Total greater than or equal to 65 and less than 80 – grade “B”
• Total greater than or equal to 50 and less than 65 – grade “C”
• Total greater than or equal to 40 and less than 50 – grade “D”
• Total less than 40 – grade “F” iii. A form that gets two numbers from the user through text boxes. Displays four options using option buttons. The options include Add, Multiply, Divide and Subtract. The user should enter two numbers, select an option and when he clicks on a command button the appropriate result is displayed in a text box. Use select case control structure. iv. A form with one text box and three checkboxes captioned bold, hide, italic. When the bold button is checked the text in the textbox turns bold and when it is unchecked the bold is removed. The same applies to all buttons. Note that properties can be changed at run time e.g.
If CheckBox1.Checked = True Then TextBox1.Visible = False

End If

The above example checks if the control named checkbox1 is checked if it is then the textbox1 is hidden.

Note:
Take note of user interface design principles and vb controls

You May Also Find These Documents Helpful

  • Better Essays

    2. Create a Windows application that contains a button labeled OK and a textbox labeled Name. Change the…

    • 1713 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    2.Write a program to (a) display a “?” (b) read two decimal digits whose sum less than 10 (c) display them and their sum on the next line. Page: 80…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 5 Assignments New

    • 754 Words
    • 6 Pages

    3.) Design an if-then-else statement that assigns 0 to variable b if variable a is less than 10, otherwise it should assign 99 to variable b. (Alternative if statement)…

    • 754 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    H. Name the passing score the threshold in cell B5 with the range name Passing. Display a message in the last grade book column based on the student’s semester performance. If a student earned a final score of 70 and higher, display Enroll n CS 202. Otherwise, display RETAKE CS 101.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Save this form on your computer as a Microsoft Word document. You can expand or shrink each area as you need to include the relevant data for your client.…

    • 1986 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Modericsn Phys

    • 561 Words
    • 3 Pages

    There will be two take-home exams. The first will cover chapters 1-3 and the second chapters 5-8. The final exam, which may be a take-home exam, will consist of the rest of the material that has been covered in class.…

    • 561 Words
    • 3 Pages
    Powerful Essays
  • Better Essays

    Input Control

    • 1095 Words
    • 5 Pages

    One type of input control is the standard text box. The text box can display messages or provide a place for the user to enter data. The text box is used when the system requires the user to type information such as city names, airport codes, or web page addresses. When using a text box, it is often helpful to use an auto complete function to help ensure proper data entry. This would be beneficial when the number of choices are too numerous to be displayed in a drop down list box. The data integrity error that is possible from using a text box is almost always going to occur due to human error. If the text box is programmed to accept letters (i.e. Name) and the user inserts a number, this will result in a data integrity error.…

    • 1095 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Teen Health Assessment

    • 3250 Words
    • 13 Pages

    Save this form on your computer as a Microsoft Word document. You can expand or shrink each area as you need to include the relevant data for your client.…

    • 3250 Words
    • 13 Pages
    Satisfactory Essays
  • Powerful Essays

    Event Driven Module

    • 18359 Words
    • 74 Pages

    [pic] VIRTUAL CAMPUS, UNION TOWERS, 6TH FLOOR.P.O BOX 13495-00100 GPO Nairobi. Email:distance.learning@mku.ac.ke,0700-912353,0702-041042. BACHELOR OF BUSINESS INFORMATION SYSTEM BBIT 3206 : EVENT DRIVEN PROGRAMMING AUTHOR : Njuguna Patrick :0721238570 email :…

    • 18359 Words
    • 74 Pages
    Powerful Essays
  • Good Essays

    ICAB Entry Criteria

    • 675 Words
    • 5 Pages

    -Points to be considered as Grade ‘A’ = 10 points, ‘B’= 6 points, ‘C’=4 points…

    • 675 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Honda Mission & Vision

    • 630 Words
    • 3 Pages

    Sub …………………………… …………………………………………………… Private Sub CmdShowForm2_Click() Me. Hide Form1.Show vb Moduless End Sub …………………………… …………………………………………………….…

    • 630 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Learning Paradigm

    • 362 Words
    • 2 Pages

    Q2. Create a simple application to accept names and roll numbers by utilizing arrays and display it. Refer to the data entry screen (Screen One) below:…

    • 362 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Fritz

    • 765 Words
    • 4 Pages

    | A box with input and control logic on one side, and output on the other.…

    • 765 Words
    • 4 Pages
    Good Essays
  • Good Essays

    My Teacher My Hero

    • 960 Words
    • 4 Pages

    Select true and click OK when prompted to choose the value for the new boolean…

    • 960 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Campaign Speech

    • 689 Words
    • 3 Pages

    My name is Allen Kade and I am currently your child’s choral music teacher. Upon passing, this class will fulfill the fine arts credit needed for graduation from Princeton Senior High School. This course also provides the training and enhancement of vocal skills necessary for participation in Chorus II-IV, Ladies Ensemble, Madrigal Singers, and CENTERSTAGE show choir. These are auditioned groups to students in grades 10 through 12.…

    • 689 Words
    • 3 Pages
    Good Essays

Related Topics