Assignment No. 2
Semester: SPRING 2013
CS410 – VISUAL PROGRAMMING
Total Marks: 20
Due Date: 6th May, 2013
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/From students).
You should consult recommended books to clarify your concepts and can also put queries on MDB.
To understand the concepts of Macros, Switch Statement and Bitwise Operators.
Software (s) Used to develop Assignment
Visual C++ 6.0 And MS Word
Assignment Submission Instructions
Assignment should be submitted in a zipped folder named “VU-RollNo” format, which includes
→ Question No. 1 should be in “Question1.cpp” format.
→ Question No. 2 should be in “Question2.doc” format.
XYZ Technologies is a leading international provider of automated and IT enabled solutions catering to businesses across various verticals around the globe. Since its inception in 1995, XYZ has regimented itself being committed to deliver the best software solutions. XYZ has ever since used highly experienced resources in analysis, development, quality assurance, and implementation to provide a wide range of high-quality consulting services and cost-effective development of customized application software. XYZ’s worldwide domain and subject matter expertise, proven track record and the capability to act as solution integrators can give you a truly cost-effective solution thatnot only meets, but surpasses your needs.
XYZ –Prohibition Period For Win32 Programmers
During the recruitment session the HR department of XYZ company has selected some competent people. After the interview session some of them have been hired.As per company policy the starting 1 month will be probation period for them in which their performance will be judged through some practical tasks. Then successful candidates will be promoted, else fired.
Now being selected, you need to perform the given task. The task consists of 2 parts; the first is about developing a code and second issolving certain expressions.
Write a program which performs basic four mathematical operations i.e. Addition, Subtraction, Multiplication and Division.
1. Develop a function named “menu”. The users can select any option from the given menu. When user will press ‘A’ it will perform Addition and so on. Use switch statement to achieve this functionality.
2. To perform operations (Addition,Subtraction, Multiplication and Division) you have to define macros.
Note: A video demo is also attached toillustrate about the other requirements and output format of the program.
Consider the following code snippet:
unsigned int x, y, z, r;
First convert the x, y, z values into binary form and then solve the following bitwise expressions.
3. r=(x<<2) + (y>>4)=?
Note: You have to solve each expression like this
x= (Binary value)
y= (Binary value)
(x&y)= (Binary value)
= (Convert final output into Hex Value)
Lectures Covered: This Assignment covers Lecture No.5 – Lecture No. 7
Deadline: Your assignment must be uploaded on or before 06th May, 2013.