Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)

Similar documents
FDSc in ICT. Building a Program in C#

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism

Revision for Final Examination (Second Semester) Grade 9

Lecture 10 OOP and VB.Net

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions

PROGRAMMING ASSIGNMENT: MOVIE QUIZ

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

I101/B100 Problem Solving with Computers

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)

Learning VB.Net. Tutorial 19 Classes and Inheritance

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Programming with Visual Studio Higher (v. 2013)

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

To enter the number in decimals Label 1 To show total. Text:...

DEVELOPING OBJECT ORIENTED APPLICATIONS

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

Object Oriented Programming

Visual Basic: Opdracht Structuur

OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

DO NOT COPY AMIT PHOTOSTUDIO

Else. End If End Sub End Class. PDF created with pdffactory trial version

Encapsulation. Mason Vail Boise State University Computer Science

Learning VB.Net. Tutorial 10 Collections

Mr.Khaled Anwar ( )

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

(Subroutines in Visual Basic)

How to Validate DataGridView Input

A Complete Tutorial for Beginners LIEW VOON KIONG

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

1. Create your First VB.Net Program Hello World

Interacting with External Applications

What qualifications and Apprenticeship frameworks are in scope for change?

C16 Visual Basic Net Programming

This PDF was generated in real-time using DynamicPDF; Generator for.net.

BSc (Hons) Computer Science with. Network Security. BSc (Hons) Business Information Systems. Examinations for 2018 / Semester 1

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

IN COLLABORATION WITH IVTB. Diploma in Information Technology. Examinations for / Semester 2

CGS 2405 Advanced Programming with C++ Course Justification

Chapter 02 Building Multitier Programs with Classes

How to work with data sources and datasets

Disclaimer. Trademarks. Liability

MIS 216 SPRING 2018 PROJECT 4

C:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Tran834X220A1\Form1.vb Imports Edidev.FrameworkEDI

NATIONAL CERTIFICATE (VOCATIONAL) PRINCIPLES OF COMPUTER PROGRAMMING (Second Paper: Practical) NQF LEVEL 3 NOVEMBER 2009

Relational Operators. > greater than < less than >= greater than or equal to <= less than or equal to <> not equal to = equal to

Assignment front sheet

Assignment front sheet

COURSE SPECIFICATION

MATFOR In Visual Basic

BTEC Centre Guide to Standards Verification

Section 7 The BASIC Language II

Chapter 2 Exploration of a Visual Basic.Net Application

BTEC Centre Guide to Standards Verification

Lab 3 The High-Low Game

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1

Procedural Programming

9/19/2018 Programming Data Structures. Polymorphism And Abstract

โปรแกรมช วยทดสอบหม อแปลงกระแส

Déclaration du module

Assignment front sheet

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Disclaimer. Trademarks. Liability

CS708 Lecture Notes. Visual Basic.NET Object-Oriented Programming. Implementing Client/Server Architectures. Part (I of?) (Lecture Notes 5A)

Step-by-step guide. Cambridge. Technicals. Interchange. Admin Instructions for Cambridge Technicals. A step-by-step guide for OCR Assessors TECHNICALS

Reception Operations and Services

Handle Web Application Errors

Introduction 3. Support 4. Reminder for Getting started 6. Registering as a Lead Internal Verifier 7

Cambridge Assessment International Education Cambridge International Advanced Subsidiary and Advanced Level. Published

Start with every Pearson option in one go and choose your path to success

Computing Science Unit 1

CS112 Lecture: Defining Classes. 1. To describe the process of defining an instantiable class

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class.

Chapter 2. Building Multitier Programs with Classes The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

DRAWING AND MOVING IMAGES

EHWLC Exams Terms & Conditions:

Chapter 5 Object-Oriented Programming

The exam registration is performed by the primary level user [Lecturer/ Course advisor].

I101 Introduction to Informatics

Lab 4: Adding a Windows User-Interface

Server 2008, Network Infrastructure, Configuring (70-642)

Unit 112: Cisco IT Essentials (Part 2)

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

Setting up an IT Network

VB. Microsoft. TS- Microsoft.NET Framework 3.5 -C Windows Workflow Foundation

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET

System Analysis and Design

Advanced Programming Using Visual Basic 2008

Assessment Malpractice

Designing Messaging Solutions with Microsoft Exchange Server 2007 (70-237)

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

Centre Guidance for Onscreen Tested Vocational Qualifications Edexcel BTEC Level 3 in Customer Service (QCF)

Post-results service fees From August 2018 to 31 July 2019 UK

The New Brew-CQ Synchronous Sockets and Threading

CORE JAVA TRAINING COURSE CONTENT

Public Function CountEntriesAge(filename As String) As Integer Dim entry_counter As Integer = 0 Dim age_counter As Integer = 0

Decision Structures. Start. Do I have a test in morning? Study for test. Watch TV tonight. Stop

How to apply for special consideration and special arrangements

Transcription:

Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title: Level 3 BTEC Nationals for IT Practitioners 15 Object Oriented Programming Assignment 1 - Features of Object Oriented Programming Internal Verification of assignment: Date: Outcome and Principal Objective(s): P1 explain the key features of object oriented programs P2 demonstrate the use of object oriented tools and techniques M1 explain the importance of encapsulation, polymorphism and inheritance on object oriented programming D1 evaluate the suitability of object oriented programs for graphical applications Overall Achievement (Fail/Pass/Merit/Distinction): Outcome P1 P2 M1 D1 Achieved Assessor's Comments: Hand out date: 17/09/2012 Due Date Submitted date Grade Assessor Verifier 1 12/10/2012 L. Shand 2 L. Shand 3 L. Shand I certify that this is my own work: 1

Pass Merit Distinction P1 explain the key features of event driven programs P2 demonstrate the use of object oriented tools and techniques M1 explain the importance of encapsulation, polymorphism and inheritance on object oriented programming D1 evaluate the suitability of object oriented programs for non-graphical applications P3 design an object oriented application to meet defined requirements P4 implement a working object oriented application to meet defined requirements P5 test an object oriented application P6 create on-screen help to assist the users of a computer program. M2 give reasons for the tools and techniques used in the production of an object oriented application M3 analyse actual test results against expected results to identify discrepancies M4 create technical documentation for the support and maintenance of a computer program. D2 evaluate an object oriented application. 2

Scenario While studying for your BTEC Nationals, you have been asked to provide some material for the college Wiki called All about programming. This resource aims to help people who want to learn programming and provides access to a wide range of information related to programming Tasks 1. The lead programmer has asked you to provide a short presentation that will explain the key features of object oriented programming. You must describe the features clearly and logically. Your presentation should be no more than 5 slides. You do not have to present your presentation. (P1) 2. Use an appropriate IDE to write the following program: a. Form: The form should look like the one in Figure 1. It is Form1.vb as shown in Figure 2. txtaccountnumber txtbalance txtamount radcheque radsavings radgeneral btngetbalance btnwithdraw Figure 1 Figure 2 3

b. Code listing for the Calculate button: Public Class frmteller Private Sub frmteller_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub btngetbalance_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngetbalance.click 'Dim oaccount As Account = New Account() Dim ochequeaccount As ChequeAccount = New ChequeAccount() Dim osavingsaccount As SavingsAccount = New SavingsAccount() Try If radcheque.checked Then txtbalance.text = ochequeaccount.newbalance(cint(txtaccountnumber.text)).tostring ElseIf radsavings.checked Then txtbalance.text = osavingsaccount.newbalance(cint(txtaccountnumber.text)).tostring 'ElseIf radgeneral.checked Then ' txtbalance.text = oaccount.getbalance(cint(txtaccountnumber.text)).tostring End If Catch eexception As Exception MsgBox(eException.Message) End Try End Sub Private Sub btnwithdraw_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnwithdraw.click Dim osavingsaccount As SavingsAccount = New SavingsAccount() Try txtbalance.text = osavingsaccount.withdraw(cint(txtaccountnumber.text), CDbl(txtAmount.Text)).ToString Catch eexception As Exception MsgBox(eException.Message) End Try End Sub 4

c. As shown in Figure 2, you will need to add three classes called: i. Account.vb ii. ChequeAccount.vb iii. SavingsAccount.vb d. The code for Account.vb is as follows: Public MustInherit Class Account Private intaccountnumber As Integer Private dblbalance As Double Protected Function GetBalance(ByVal AccountNumber As Integer) As Double intaccountnumber = AccountNumber 'Data normally retrieved from database. Hardcoded for demo only If intaccountnumber = 1 Then Return 1000 ElseIf intaccountnumber = 2 Then Return 2000 Else Throw New Exception("Account number incorrect.") End If End Function 'Withdraw method Public Function Withdraw(ByVal AccountNumber As Integer, ByVal Amount As Double) As Double dblbalance = GetBalance(AccountNumber) If dblbalance >= Amount Then dblbalance -= Amount Return dblbalance Else Throw New Exception("Not enough funds.") End If End Function Public Function newbalance(byval AccountNumber As Integer) As Double dblbalance = GetBalance(AccountNUmber) Return dblbalance End Function e. The code for SavingsAccount.vb is as follows: Public Class savingsaccount Inherits Account f. The code for ChequeAccount.vb is as follows: Public Class ChequeAccount Inherits Account g. Using the above program, explain what tools and techniques you used to write this object oriented program. Take into account things like functions, IDE, types of variables (ie global, local, static, overloads and instances) (P2) 5

3. Using your program in Task 2 and other resources explain the following terms and explain why they are important: a. Encapsulation b. Polymorphism c. Inheritance You can make use of a presentation or a short website to explain these features. (M1) 4. Looking at the program you wrote in Task 2, evaluate the suitability of object oriented programs for graphical applications. A short report of not more than 300 words will be sufficient for this task. (D1) 6