Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
108 views

Visual Programming - CS410 Fall 2009 Assignment 01

This document provides instructions for Assignment #1 of the Visual Programming (CS410) course. It outlines the rules for marking, including requirements that the assignment be submitted by the deadline and in MS Word format. It also advises students to upload their assignment at least two days before the deadline to avoid issues. The assignment contains two questions - the first asks students to match expressions from two columns, and the second asks students to write a C++ program that calculates the sum of even numbers in an array by passing the array to a function. Students are instructed to submit their solutions to both questions in a single Word document, rather than a .CPP file.

Uploaded by

muhammadkamran05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views

Visual Programming - CS410 Fall 2009 Assignment 01

This document provides instructions for Assignment #1 of the Visual Programming (CS410) course. It outlines the rules for marking, including requirements that the assignment be submitted by the deadline and in MS Word format. It also advises students to upload their assignment at least two days before the deadline to avoid issues. The assignment contains two questions - the first asks students to match expressions from two columns, and the second asks students to write a C++ program that calculates the sum of even numbers in an array by passing the array to a function. Students are instructed to submit their solutions to both questions in a single Word document, rather than a .CPP file.

Uploaded by

muhammadkamran05
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

www.VUSR.

net

Visual Programming (CS410)


Assignment # 1
Total marks = 20
Deadline Date = 19-10-2009

Please carefully read the following instructions before attempting the


assignment.

Rules for Marking


It should be clear that your assignment would not get any credit if:

§ The assignment is submitted after due date.


§ The submitted assignment does not open or file corrupt.
§ The assignment is copied. Note that strict action would be taken if the
submitted assignment is copied from any other student. Both students will be
punished severely. SR
1) You should concern recommended books to clarify your concepts as handouts are not
sufficient.
2) You are supposed to submit your assignment in MS Word format and any other
formats like scan images, PDF, Zip, rar, docx format etc will not be accepted
3) You are advised to upload your assignment at least two days before Due date.
U
Important Note: Assignment comprises of Two questions. Note that no
assignment will be accepted after due date via email in any case (whether it is the
V

case of load shedding or emergency electric failure or internet malfunctioning etc.).


Hence, refrain from uploading assignment in the last hour of the deadline, and try
to upload Solution at least 02 (two) days before the assignment to avoid
inconvenience later on.

For any query please contact: CS410@vu.edu.pk

http://lms.vusr.net All VU Past Study Resource


www.VUSR.net

Question – 1 [Marks 10]

For each expression in Column-1, find the appropriate expression from Column-2
and write the answer in Column-3.

Column-1 Column-2 Column-3 (Answers)


Dos Programming GUI
Windows Typedef
Cout<< *ptr; No Multitasking
Creates synonym for some Structure
datatype
Collection of variables Pointer de-referencing
under single name

Question – 2 [Marks 10]

Write a C++ program, which declares an array of ten (10) integers. This array is then
passed to a function with the name “EvenTotal(…)”. The function “EvenTotal(…)” has
following declaration: SR
int EvenTotal (int * ptrArray, int Size);

This function is called from main function. It takes the address of first array element and
size of array as arguments, it then uses a loop structure to calculate the sum of all the
even integers in the array, the sum is then returned to main function, which then prints
this number on console. E.g.
U
For the array:

int array[10]= {1,2,3,4,5,6,7,8,9,10}


V

It will print the following output:

Sum of Even Numbers: 30

NOTE:

Don’t send “.CPP” file, instead submit solution of both questions in a single “.DOC”
file.

http://lms.vusr.net All VU Past Study Resource

You might also like