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

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

Level 2 Create software components using Java (7266/ )

Level 1 Imaging software (DIS )

Level 3 Video Software ( )

Level 2 Imaging software (DIS )

Level 1 Certificate in Design and Craft

Level 1 Certificate in Design and Craft

Level 1 Certificate in Design and Craft

Level 1 Certificate in Design and Craft

Level 1 Certificate in Design and Craft

Level 2 Certificate in Design and Craft

Level 3 Certificate in Design and Craft

Level 2 Certificate in Design and Craft

Level 2 Award, Certificate and Diploma in Creative Techniques [7112] Level 2 Balloon Artistry units

Level 3 Certificate in Design and Craft

Level 3 Diploma in Design and Craft

Level 1 VRQ Qualifications in Photo Imaging (7512) Assessment pack

Level 1 Award, Certificate and Diploma in Creative Techniques [7111] Level 1 Sugar Decoration units

Level 2 Award, Certificate and Diploma in Creative Techniques [7112] Level 2 Floral units

Level 3 Certificate in Design and Craft

PRACTICAL TASK MANUAL

Level 3 Award, Certificate and Diploma in Creative Techniques [7113] Level 3 Fashion units

Entry 2 Skills for Working Life ( )

Entry 3 Skills for Working Life ( )

Entry 2 Skills for Working Life ( )

PRACTICAL TASK MANUAL

PRACTICAL TASK MANUAL

Entry 3 Skills for Working Life ( )

Candidate Instructions

PRACTICAL TASK MANUAL

Entry 3 Skills for Working Life ( )

Level 3 Certificate in Design and Craft

Entry 3 Skills for Working Life ( )

PRACTICAL TASK MANUAL

PRACTICAL TASK MANUAL

Level 2 VRQ Qualifications in Photo Imaging (7512)

Functional Skills English Entry 3 Reading Sample Assessment

Level 2 NVQ in Digital Print Production ( )

DRAWING IN VISUAL BASIC

Level 3 Certificate in Design and Craft

Functional Skills English Entry 3 Reading Sample Assessment

Producing mechanical engineering drawings using a CAD system

Hairdressing, Barbering, Beauty, Media Makeup, Nail Services and Complementary Therapies

SOUTH AFRICAN QUALIFICATIONS AUTHORITY REGISTERED QUALIFICATION: Occupational Certificate: Visual Merchandiser

Functional Skills Mathematics Entry 3 Sample assessment

Level 1, 2 and 3 Award, Certificate and Diploma in Creative Techniques (7111, 7112 and 7113)

Level 1, 2 and 3 Award, Certificate and Diploma in Creative Techniques (7111, 7112 and 7113)

Level 3 Qualification in Photo Imaging (7512) Qualification handbook

Level 2 Awards in Excavation Support Systems ( ) September 2017 Version 1.1

EUROPASS DIPLOMA SUPPLEMENT

aspexdraw aspextabs and Draw MST

Sample Paper 4 Level 1 Functional Skills Mathematics

Producing CAD models (drawings) using a CAD system

IRISYS ISI Series Imager Report Writing Software

1 Higher National Unit credit at SCQF level 7: (8 SCQF credit points at SCQF level 7)

CREATIVE imedia. Cambridge NATIONALS LEVEL 1/2. Sample Learner Work with commentary. ocr.org.uk/creativeimedia

Technical Certificate in Electrical Installation Version Sample September Question Paper Pack

Sustainable Development

Architectural Design Sketching and Drawing

UNIT Computer Aided Draughting (CAD) for Engineers (SCQF level 5)

PRACTICAL TASK MANUAL

COVER LETTER GUIDE. Office of Career Services North 103. Dr. M ary Rigali, PM P Director of Career Services

Laser App Integration User Guide

Credit Value 7 QCF Level 2 GLH 50. Learner pack

NATIONAL CERTIFICATE (VOCATIONAL)

Brad Luke. Director Peddle Thorp Auckland

Undertake Drawing Practice for Blacksmithing and Metalworking

University of Northampton. Graduate Leaders in Early Years Programme Audit Monitoring Report by the Quality Assurance Agency for Higher Education

STUDENT USER S MANUAL

PRACTICAL TASK MANUAL

ArtWorks code of practice

Level 1, 2 and 3 Award, Certificate and Diploma in Creative Techniques (7111, 7112 and 7113)

It is expected that this standard will evolve over time; however the use of this standard should remain consistent within individual projects.

Exercise01: Circle Grid Obj. 2 Learn duplication and constrain Obj. 4 Learn Basics of Layers

MEASUREMENT CAMERA USER GUIDE

Model Curriculum. Crochet Lace Tailor SECTOR: SUB-SECTOR: OCCUPATION: REF ID: NSQF LEVEL:

Study: Visual Communication & Design

Investigation and Exploration Dynamic Geometry Software

ActionCAD. ActionCAD provides a professional service to the Construction Industry

EUROPASS DIPLOMA SUPPLEMENT

CORPORATE SOCIAL RESPONSIBILITY

HSBC Recruitment. Your candidate guide post offer. What happens next? PUBLIC

ISO Graphical symbols Safety colours and safety signs Part 3: Design principles for graphical symbols for use in safety signs

with MultiMedia CD Randy H. Shih Jack Zecher SDC PUBLICATIONS Schroff Development Corporation

SIN 57 Issue 2.4 May 2018

-SQA-SCOTTISH QUALIFICATIONS AUTHORITY NATIONAL CERTIFICATE MODULE: UNIT SPECIFICATION GENERAL INFORMATION. -Module Number Session

AutoCAD LT 2009 Tutorial

AutoCAD LT 2012 Tutorial. Randy H. Shih Oregon Institute of Technology SDC PUBLICATIONS. Schroff Development Corporation

-SQA-SCOTTISH QUALIFICATIONS AUTHORITY HIGHER NATIONAL UNIT SPECIFICATION GENERAL INFORMATION AUGUST

AutoCAD 2D I. Module 16. Isometric and Dimensioning. IAT Curriculum Unit PREPARED BY. January 2011

Policy for CCG Engagement with the Pharmaceutical Industry

Appointment of External Auditors

PORTFOLIO ACTIVITIES 2012 / 2013

SDC. AutoCAD LT 2007 Tutorial. Randy H. Shih. Schroff Development Corporation Oregon Institute of Technology

COMIC-CON INTERNATIONAL & WONDERCON ANAHEIM

Getting Started. Before You Begin, make sure you customized the following settings:

Unit Title: Undertake Colour Management Procedures

UNIT Construction Crafts: Bench Joinery (Intermediate 2)

Pictorial Drawings. DFTG-1305 Technical Drafting Prepared by Francis Ha, Instructor

Public Call to Artists for Expressions of Interest Newton Recreation Centre Glass Curtain Wall Design for glass frit application

Transcription:

Level 2 Creating an event driven program using Visual Basic (7540-006) Assignment guide for Candidates Assignment D www.cityandguilds.com October 2017 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)20 7294 2800 F +44 (0)20 7294 2400 www.cityandguilds.com learnersupport@cityandguilds.com

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

Level 2 Creating an event driven program using Visual Basic (7540-006) Assignment D Introduction Information for Candidates About this document This assignment comprises all of the assessment for Level 2 Creating an event driven 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 4 hours. 2 Creating an event driven program using Visual Basic (7540-006)

Level 2 Creating an event driven 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 for candidates in the form of a company specification for a service they require. This assignment is made up of two tasks Task A - provides a detailed design specification for software to demonstrate the use of graphics. Task B - provides criteria that should be followed by candidates when producing their work. Scenario A software development company, TD Software, is developing a program for use as demonstration software for clients. As a contracted employee of TD Software, you have been asked to create and test the software. The program is to use menus and scroll bars to demonstrate the following graphics facilities draw freehand lines draw a line draw a circle with different radii draw an ellipse with different aspect ratios change the colour of the pen being used change the width of the lines being drawn change fill styles for a circle and ellipse change fill colours for a circle and ellipse. Task A Candidates should use the following detailed specification to fulfil the company's requirements. In this task you are required to create and test a user interface to show the different types of graphics that can be drawn. Menus are used to allow options for the type of object to be drawn, the colour to be used for lines and fills and the fill style to be used for circles and ellipses. Scroll bars are used to specify values for the line (pen) width, radius for a circle and ellipse and aspect ratio for an ellipse. Your completed form should appear similar to the screen image shown below. Level 2 Creating an event driven program using Visual Basic (7540-006) 3

frmdrawing Using the Integrated Development Environment: 1 Save the project at regular intervals as you work through the task. Save the form file as frmdrawing and the project file as TaskA. 2 In the General Declarations area set up variables for the mode, pen colour, radius, aspect ratio, fill style, start value of x, start value of y, old value of x and old value of y. 3 Set the Caption property of the form to: Task A Drawing your name and the date. 4 Set up a menu with the caption Draw and the name mnudraw with the following items in a drop down menu. Option Freehand Line Circle Ellipse Clear Exit Name mnufreehand mnuline mnucircle mnuellipse mnuclear mnuexit 5 Set up a menu with the caption Colours and the name mnucolours with the following items in a drop down menu. Option Red Blue Green Name mnured mnublue mnugreen 4 Creating an event driven program using Visual Basic (7540-006)

Yellow mnuyellow 6 Set up a menu with the caption FillStyle and the name mnufillstyle with the following items in a drop down menu. Option Name Solid mnusolid Transparent mnutransparent Horizontal Line mnuhorline Vertical Line mnuvertline Cross mnucross Diagonal Cross mnudiagonal Line 7 Draw, size and position a picture box control and name it picdraw. 8 Draw size and position three horizontal scroll bar controls for the pen width, radius and aspect and name them hsbpenwidth, hsbradius and hsbaspect respectively. 9 Set the Min and Max properties of the three horizontal scroll bar controls to appropriate values. 10 Draw, size and position three label controls next to the horizontal scroll bars. Name the controls lblpen, lblradius and lblaspect. Set their Caption properties to Pen Width, Radius and Aspect respectively. 11 Code the Form_Load sub procedure as follows: set the starting pen colour to Red set the starting DrawWidth property of the picture box control to 2 set the mode variable to 0. 12 Code the sub procedures for the menu options for the Colours menu so that the pen colour is changed to the selected colour option. 13 Code the sub procedures for the menu options for the Fill Style menu so that the fill style is changed to the selected fill style. 14 Code the Change sub procedures for the scroll bar controls hsbradius and hsbaspect to store the new values in the appropriate variables. 15 Code the Change sub procedure for the scroll bar control hsbpenwidth to change the DrawWidth property of the picture box control to the new value. 16 Code the sub procedures for the menu options for the Draw menu as follows: Freehand - set mode variable to 1 Line - set mode variable to 2 Circle - set mode variable to 3 Ellipse - set mode variable to 4 Clear - set mode variable to 0 and clear the picture box control Exit terminate the program. 17 Code the picdraw_mouseup sub procedure as follows: Level 2 Creating an event driven program using Visual Basic (7540-006) 5

set the DrawMode of the picture box control to 13 if the Button parameter is 1 and the mode variable is not equal to 0 then if the mode variable is 1 draw a freehand line if the mode variable is 2 draw a line from the start point to the current point if the mode variable is 3 draw a circle if the mode variable is 4 draw an ellipse. 18 Code the picdraw_mousedown sub procedure as follows: if the mode variable is 1 then set the DrawMode property of the picture box control to 13 set the DrawStyle property of the picture box control to a solid line otherwise set the DrawMode property of the picture box control to 7 set the FillStyle property of the picture box control to the fill style variable value set the DrawStyle property of the picture box control to a solid line set the ForeColor property of the picture box control to the pen colour variable value set the FillColor property of the picture box control to the pen colour variable value set the start value of x variable and the old value of x variable to X (current x position of cursor) set the start value of y variable and the old value of y variable to Y (current y position of cursor). 19 Code the picdraw_mousemove sub procedure as follows: if the Button parameter is not equal to 0 if the mode variable is equal to 1 draw a freehand line otherwise draw a line from the start point to the current point set the old value of x variable to X set the old value of y variable to Y. 20 Test the program with different positions on the scroll bar controls and all the menu options. Compare the expected results to the actual results and correct any errors found. Use the debugging facilities to help locate errors. 21 Print a program listing. 22 Print a copy of the form frmdrawing. Task B Candidates should follow the criteria listed below when producing their work: 1 The program conforms to the design specification. 2 Meaningful names are to be used when declaring variables. 3 The program syntax is consistently indented to aid readability. 4 The program is commented. 6 Creating an event driven program using Visual Basic (7540-006)

Note Candidates should produce the following for their assessor: A printed program listing. A printout of the frmdrawing form. At the conclusion of this assignment, hand all paperwork and removable media to the test supervisor. Ensure that your name is on the removable media and all documentation. If the assignment is taken over more than one period, all removable media and paperwork must be returned to the test supervisor at the end of each sitting. Level 2 Creating an event driven program using Visual Basic (7540-006) 7

Published by City & Guilds 1 Giltspur Street London EC1A 9DD T +44 (0)20 7294 2468 F +44 (0)20 7294 2400 www.cityandguilds.com City & Guilds is a registered charity established to promote education and training 8 Creating an event driven program using Visual Basic (7540-006)