DURATION: 90MIN MARKS: 60 DATE: EXAMINERS : MODERATORS: This MEMO consists of 9 pages including this page. SUGGESTED TIME REQUIRED TO ANSWER THIS QUESTION PAPER QUESTION SUBJECT MARKS TIME IN MINUTES 1 QUESTION 1 2 QUESTION 2 3 QUESTION 3 TOTAL QUESTION: 1 [25 MARKS] 1.1 Write a program to calculate the final mark of students and to display the marks in a listbox using sequential files. The input values (icasno‚ name
Premium Class SQL Table
21 Basic Tools in Visual Basic 0.6 Control Description Pointer Provides a way to move and resize the controls form PictureBox Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls. TextBox Used to display message and enter text. Frame Serves as a visual and functional container for controls. CommandButton Used to carry out the specified action when the user chooses it. CheckBox Displays a True/False or Yes/No option. OptionButton
Premium Widgets Display device
message box. Thoughts to guide you: Function Example Left Left(“Visual Basic”‚ 4) results in “Visu” Right Right(“Visual Basic”‚ 3) results in “sic” Mid Mid(“2/24/72”‚ 3‚ 2) results in “24” UCase UCase(“Number 7”) results in “NUMBER 7” Trim Trim(“ Bob Jones “) results in “Bob Jones” Len Len(“February”) results in 8 InStr InStr(“Visual Basic”‚ “Bas”) results in 8ON STRING AND STRING-RELATED NUMERIC FUNCTIONS Notice that I use double quotes when
Premium Decimal Roman numerals Source code
Reviewer of Visual Basic 6.0 and Vb.net DATA TYPE Type | Stores | Memory required | Values | Boolean | Logical value | 2 bytes | True‚ False | Byte | Binary number | 1 byte | 0 to 255 (unsigned) | Char | One character | 2 bytes | One character | Date | Date and Time information | 8 bytes | Returns date and time | Decimal | Fixed-point number | 16 bytes | Large number values | Double | Floating-point number | 8 bytes | Number with decimal places | Integer | Integer | 4 bytes | Whole
Premium Data type Decimal
Calculator In this tutoral‚ Basic Calculator in VB.Net‚ we will look at creating a basic calculator. The calculator will have the following functionality: * Addition * Subtraction * Division * Multiplication * Square Root * Exponents (Power Of) * Clear Entry * Clear All There will be a 2nd tutorial that will cover some more advanced features such as * Adding a number to memory * Removing a number from memory * Calculating with a number in memory * Entering numbers
Premium 1918 1920 1916
INTRODUCTION Structured programming is one of the several different ways in which a programming language can be constructed. "It was originally introduced as a means of getting away from the ’spaghetti’ code that was used in the early days and to provide some means by which programmers could more easily follow code written by other programmers." (Hendren‚ 1998) Structured programming is a procedure-oriented method of designing and coding a program. At a low level‚ structured programs are composed
Premium Programming language
gives each of its customers a maximum amount of credit. A customer’s available credit is determined by subtracting the amount of credit used by the customer from the customer’s maximum amount of credit. As you did in programming challenge 1‚ perform steps 1 through 6 of the programming process to design an application that determines a customer’s available credit. Steps 1-6 1. Clearly define what the application is to do. 2. Visualize the application running on the computer and design its
Premium Computer programming Mathematics Algorithm
Practical 1 Aim: - WAP to perform arithmetic operation using command buttons. (Declare variables globally). Design:- Source code :- Path :- F:\Program Files\Microsoft Visual Studio\COMMON\IDE\IDE ‘Initialize variable global Dim a‚ b‚ c As Integer ‘event for clear content Private Sub Command1_Click() ‘clear text box Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub ‘option for addition Private Sub Option1_Click() a = Val(Text1.Text) b = Val(Text2.Text) ‘Perform operation c = a + b Text3
Premium Source code Prime number
Introduction to Programming (ITE3101) Topic 1 – Basic Programming Concepts ITE3101 Introduction to Programming Basic Programming Concepts © VTC 2012 Topic 1‚ p.1 Introduction to Programming (ITE3101) Lesson Intended Learning Outcomes • Upon completion of this lesson‚ you should be able to: – Identify input‚ output and processing from a problem description – Design solution algorithms in pseudocode for simple problems with appropriate control structures Basic Programming Concepts © VTC 2012
Premium Programming language Algorithm Computer program
The Toolbox Controls The Toolbox window holds all of the controls available to your VB.NET programs. Basic Controls First‚ let’s focus on the basic controls that are used in most programs. These controls are so essential that VB.NET would be utterly useless without them 1- Button The Button control is a key ingredient for an effective user interface. Buttons are normally found on the main form of a program and are used to perform tasks or bring up additional forms for the user. Notable
Premium Graphical user interface