Level 2 Creating an event driven computer program using Visual Basic ( )

Similar documents
Level 2 Creating an event driven computer program using Java ( )

Level 2 Creating a procedural program using COBOL ( )

Level 3 Creating an event driven computer program using Visual Basic ( / )

Level 2 Creating an event driven computer program using Java ( )

Level 3 ICT systems and network management ( )

Level 2 Create software components using Java (7266/ )

Level 3 Creating an object oriented computer program using Java ( / )

Level 3 Develop software using Java (7266/ )

Level 2 Creating an event driven computer program using VisualBasic.Net ( )

Level 3 Software design fundamentals ( / )

Level 3 Install, configure and integrate networked hardware and software ( )

Level 2 Creating an event driven computer program using Visual Basic.NET ( )

Level 2 Install and Configure Equipment and Operating Systems ( )

Level 2 Install and configure ICT equipment and operating systems ( )

Level 3 Creating an event driven computer program using Visual Basic.NET ( / )

Level 3 Web fundamentals ( )

Level 2 Select and use IT 2 ( )

Level 2 Install, configure and test ICT networks (7266/ / )

Level 3 Develop software using Visual Basic.NET (7266/ )

Level 3 Website software ( )

Level 2 Security for IT Users ( )

Level 2 Creating an event driven computer program using C# ( )

Level 3 Designing and creating advanced websites ( )

Level 1 Dismantle, assemble, install and maintain a desktop computing system (7266/7267/ )

Level 2 Security for IT users (ITS ) ITQ (QCF) Assignment guide for Candidates Assignment A. March 2010 Version 1.

Level 2 Networking Principles ( )

Level 2 Networking Principles ( )

Level 1 Multimedia Software (MM )

Level 1 Dismantle, assemble, install and maintain a desktop computing system (7266/7267/ )

Level 2 Set up an IT system (SIS )

Level 2 Create Software Components Using C# (7266/ )

Level 3 Network management and security ( )

Level 3 Implementing an ICT systems security policy ( / )

Level 3 Develop software using C# (7266/ )

Level 3 Network management and security ( )

Level 2 Create software components using Visual Basic.NET ( )

Level 2 Creating an event driven computer program using C# ( )

Level 2 FS IT user fundamentals (IUFFS )

Level 1Using mobile IT devices (UMD )

Level 3 Design and maintain ICT networks software components ( )

Level 2 Install, configure and test ICT networks ( )

January 2010 Version 9.0

Level 2 Networking, telephony and VoIP for the digital home technology integrator ( )

Level 3 Voice and data communications ( )

Level 2 Designing and creating multimedia presentations (7266/ )

Level 1 IT user fundamentals (IUF:FS )

Level 2 Control and security systems for the digital home technology integrator ( )

Level 2 Audio/video installation for the digital home technology integrator ( )

Level 1 IT user fundamentals (IUF:FS )

Level 3 Install, configure and integrate networked hardware and software ( )

Level 3 Design and maintain ICT network software components ( )

Level 2 Digital Home Technology Integrator ( )

Level 3 Install, configure and upgrade ICT software ( / )

Level 2 Designing and creating databases (7266/ )

Level 3 Using the Internet (INT )

Level 3 Voice and data communications ( )

Level 3 Design software ( )

Level 1 Creating simple web pages (7266/ )

Level 1 Using the Internet for finding and sending information (7266/ )

Level 1 Internet Safety for IT Users ( )

Level 1 Using the Internet for finding and sending information (7266/ )

Systems and Principles Unit Syllabus

Level 3 Principles of ICT Systems and Data Security ( / )

Level 2 Data management software (DMS )

Level 1 Internet Safety for IT Users ( )

Level 3 Design Software ( )

Level 3 Multimedia software (MM )

Level 1 Design software (DIS )

Level 3 Software design fundamentals ( / )

Level 1 Producing simple databases (7266/ )

Level 1 Desktop publishing software (DTP )

Level 1 Design software (DIS )

Level 2 IT software fundamentals (ISF:FS )

Level 1 Working with desktop publishing applications (7266/ )

Level 3 Desktop publishing software (DTP )

Level 3 Database Software ( )

Level 3 Using collaborative technologies (UCT )

Level 3 Word processing software ( )

Level 3 Develop designs and test software components (7266/ )

Level 3 Database software ( )

Systems and Principles Unit Syllabus

Level 3 Data management software (DMS )

Level 2 Designing and creating documents using desktop publishing software (7266/ ) e-quals Assignment guide for Candidates Assignment C

Level 3 Multimedia Software (MM )

Systems and Principles Unit Syllabus

Level 3 Word processing software (WP )

Level 2 Designing and creating multi-page websites (7266/ )

Level 2 Website software (WS )

Level 3 Using (EML )

Level 3 Integrating applications to create advanced presentations (7266/ )

Level 3 Designing and creating relational databases (7266/ ) e-quals

Level 2 Combining word processing, spreadsheet and database applications to present information (7266/ )

Level 2 Desktop publishing software (DTP )

Level 1 Producing simple word processed documents (7266/ )

Level 1 Creating simple presentations (7266/ )

Start IT (itq) Database software ( )

Level 2 Designing and creating databases (7266/ )

Level 1 Creating presentations using word processing, spreadsheet and presentation software (7266/ )

Level 2 Using word processing software to adapt and merge documents (7266/ )

Systems and Principles Unit Syllabus

Transcription:

Level 2 Creating an event driven computer program using Visual Basic (7540-006) Systems and Principles (QCF) Assignment guide for Candidates Assignment C www.cityandguilds.com January 2010 Version 1.0

About City & Guilds City & Guilds is the UK s leading provider of vocational qualifications, offering over 500 awards across a wide range of industries, and progressing from entry level to the highest levels of professional achievement. With over 8500 centres in 100 countries, City & Guilds is recognised by employers worldwide for providing qualifications that offer proof of the skills they need to get the job done. City & Guilds Group The City & Guilds Group includes City & Guilds, ILM (the Institute of Leadership & Management) which provides management qualifications, learning materials and membership services, NPTC which offers land-based qualifications and membership services, and HAB (the Hospitality Awarding Body). City & Guilds also manages the Engineering Council Examinations on behalf of the Engineering Council. Equal opportunities City & Guilds fully supports the principle of equal opportunities and we are committed to satisfying this principle in all our activities and published material. A copy of our equal opportunities policy statement is available on the City & Guilds website. Copyright The content of this document is, unless otherwise indicated, The City and Guilds of London Institute 2007 and may not be copied, reproduced or distributed without prior written consent. However, approved City & Guilds centres and learners studying for City & Guilds qualifications may photocopy this document free of charge and/or include a locked PDF version of it on centre intranets on the following conditions: centre staff may copy the material only for the purpose of teaching learners working towards a City & Guilds qualification, or for internal administration purposes learners may copy the material only for their own use when working towards a City & Guilds qualification The Standard Copying Conditions on the City & Guilds website also apply. Please note: National Occupational Standards are not The City and Guilds of London Institute. Please check the conditions upon which they may be copied with the relevant Sector Skills Council. Publications City & Guilds publications are available on the City & Guilds website or from our Publications Sales department at the address below or by telephoning +44 (0)20 7294 2850 or faxing +44 (0)20 7294 3387. Every effort has been made to ensure that the information contained in this publication is true and correct at the time of going to press. However, City & Guilds products and services are subject to continuous development and improvement and the right is reserved to change products and services from time to time. City & Guilds cannot accept liability for loss or damage arising from the use of information in this publication. City & Guilds 1 Giltspur Street London EC1A 9DD T +44 (0)844 543 0000 (Centres) T +44 (0)844 543 0033 (Learners) F +44 (0)20 7294 2413 www.cityandguilds.com learnersupport@cityandguilds.com

Contents Level 2 Creating an event driven computer program using Visual Basic (7540-006) Assignment C Introduction Information for Candidates 2 Candidate instructions 3 Appendix 8 Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006) 1

Level 2 Creating an event driven computer program using Visual Basic (7540-006) Assignment C Introduction Information for Candidates About this document This assignment comprises all of the assessment for Level 2 Creating an event driven computer program using Visual Basic (7540-006). Health and safety You are asked to consider the importance of safe working practices at all times. You are responsible for maintaining the safety of others as well as your own. Anyone behaving in an unsafe fashion will be stopped and a suitable warning given. You will not be allowed to continue with an assignment if you compromise any of the Health and Safety requirements. This may seem rather strict but, apart from the potentially unpleasant consequences, you must acquire the habits required for the workplace. Time allowance The recommended time allowance for this assignment is four hours. 2 Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006)

Level 2 Creating an event driven computer program using Visual Basic (7540-006) Candidate instructions Candidates are advised to read all instructions carefully before starting work and to check with your assessor, if necessary, to ensure that you have fully understood what is required. Time allowance: 4 hours Assignment set up: A scenario is provided below for this assignment. This assignment is made up of two tasks Task A - provides a detailed design specification for software to demonstrate the creation of a sequential file of member details. Task B - provides criteria that should be followed by candidates when producing their work. Scenario A software development company, Software Solutions, is developing a program for use as demonstration software for clients. As a contracted employee of Software Solutions, you have been asked to create and test the software. The program is to create a sequential member details file and have the following options: open a new file open an existing file add member records to the opened file close a file exit the program. Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006) 3

Task A - provides a detailed design specification for software to demonstrate the creation of a sequential file of member details. Candidates should use the following detailed specification to fulfil the company's requirements. In this task you are required to create a user interface to create and add member records to a sequential file. Your completed form should appear similar to the screen image shown below. frmmember Using the Integrated Development Environment: 1 Save the project at regular intervals as you work through the task. Save the form file as frmmember and the project file as TaskA. 2 In the General Declarations section declare an integer variable TextFileNum and a string variable OpenFileName. 3 Set the Caption property of the form to: Task A your name and the date 4 Set up a menu with the caption File the shortcut keys Ctrl+F and the name mnufile with the following items in a drop down menu. Option Name Shortcut Keys New mnunew Ctrl+N Open mnuopen Ctrl+O Close mnuclose - mnusep Exit mnuexit 5 Draw, size and position six text box controls. Name the controls txtmemberno, txtname, txtaddress1, txtaddress2, txtaddress3 and txtpostcode. 6 Draw, size and position four label controls. Name the controls lblmemberno, lblname, lbladdress and lblpostcode. Set their Caption properties to Member number, Name, Address and Postcode respectively. 4 Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006)

7 Draw, size and position a command button. Name the command button cmdadd and set the Caption property to Add and the Visible property to False. 8 Draw a common dialog control. Name the control CMDialog1 9 Code the Form_Load sub procedure as follows: set the string variable OpenFileName to empty set the Enabled property of the Close menu option to False. 10 Code the mnunew_click sub procedure as follows: set up file filters to give a choice of all files or.txt files in the common dialog set the FilterIndex property of the common dialog to default to all files display an Open file dialog (Note the Cancel button will not operate correctly) display the message You selected: filename assign the FreeFile number to the variable TextFileNum open the selected file as output set the OpenFileName variable to the common dialog FileName set the Visible property of the cmdadd button to True set the Enabled property of the New menu option to False set the Enabled property of the Open menu option to False set the Enabled property of the Close menu option to True. 11 Code the mnuopen_click sub procedure as follows: set up file filters to give a choice of all files or.txt files in the common dialog set the FilterIndex property of the common dialog to default to all files display an Open file dialog (Note the Cancel button will not operate correctly) display the message You selected: filename assign the FreeFile number to the variable TextFileNum open the selected file as append set the OpenFileName variable to the common dialog FileName property set the Visible property of the cmdadd button to True set the Enabled property of the Open menu option to False set the Enabled property of the New menu option to False set the Enabled property of the Close menu option to True. Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006) 5

13 Code the mnuexit_click sub procedure as follows: if a file is open close the file terminate the program. 14 Code the cmdadd_click sub procedure as follows: if the member number is not equal to 6 digits then display the error message "002 Member number not 6 digits" otherwise if the member number is a valid modulus 10 number (see Appendix A) write the data in the Text properties of the text box controls to the file clear the data from the text box controls otherwise display the error message "003 invalid Member number" then 15 Create test data for the member records and determine the expected results. 16 Test the program for all the menu options, print the records in the file and compare the output file with the expected results and correct any errors found. 17 Use the debugging facilities to help locate errors. 18 Print a program listing. 19 Print a copy of the form frmmember. Task B - provides criteria that should be followed by candidates when producing their work. Candidates should follow the criteria below when producing their work: 1 Meaningful names are to be used when declaring variables. 2 The program syntax is consistently indented to aid readability. 3 The program is commented. Note Candidates should produce the following for their assessor: test data and expected results printed output of the records in the test file printed program listing printout of the form frmmember When you have finished working: Sign each document above your name and label all removable storage media with your name. 6 Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006)

Hand all paperwork and removable storage media to your assessor. If the assignment is taken over more than one period, all paperwork and removable media must be returned to the test supervisor at the end of each sitting. End of assignment Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006) 7

Appendix A Modulus 10 check A modulus 10 check is carried out as follows: Multiply each digit in the reference number e.g. 277542, starting at the right, by the number 1, then 2, then 3 etc. Multiply by 6 5 4 3 2 1 Reference number 2 7 7 5 4 2 Result 12 35 28 15 8 2 The result of each multiplication is added together. 12 + 35 + 28 + 15 + 8 + 2 = 100 The result of the addition is then divided by the modulus (10). 100 divided by 10 = 10 remainder 0 If the remainder from the division is 0 the reference number is a valid modulus 10 number otherwise the reference number is not a valid modulus 10 number. The remainder is 0 so the reference number 277542 is a valid modulus 10 number. 8 Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006)

Published by City & Guilds 1 Giltspur Street London EC1A 9DD T +44 (0)844 543 0000 (Centres) T +44 (0)844 543 0033 (Learners) F +44 (0)20 7294 2413 www.cityandguilds.com City & Guilds is a registered charity established to promote education and training Assignment C Level 2 Creating an event driven computer program using Visual Basic (7540-006) 9