CS410 Visual Programming
Assignment 1 spring 2012 solution idea.
Read the following topics:
- Structures:
- Enumeration.
Lecture 4 from the handouts of visual programming(windows programming)
Assignment No. 01
Semester: SPRING 2012
CS410 –
VISUAL PROGRAMMING
|
Total Marks: 30
Due Date:
16 / 04 / 2012
|
|||||||||||||||||||||||||||||||||||||||
Instructions
Please read the following instructions carefully before submitting
assignment:
Feel free to ask your questions related to
assignment 1 via e-mail at cs410@vu.edu.pk.
No MDB related to assignment is answered and blocked.
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
Submitted assignment file is not in required
format.
o
Assignment is copied (From internet/ to from
students).
Objective
To understand and revise basics of C / C++ Language.
Software (s) Used to develop Assignment
Dev C++
Assignment Submission Instructions
Ø
Assignment should be submitted in “VU-RollNo.cpp” format.
e.g.
MC123456789.cpp
Ø
You are not allowed to change given Variables Names, Types and
Function Names.
|
||||||||||||||||||||||||||||||||||||||||
Assignment
|
||||||||||||||||||||||||||||||||||||||||
We are going to write a program of Vehicle Registration System. Follow the instructions /
problem set below for assignment;
1 – There are two (2) structures in a program named as Vehicle and Owner.
2 – Variables in Vehicle
structure are;
Structure of
Vehicle
3 – Variables in Owner
structure are;
Structure of Owner
4 – Make enumerator named as vehicle-class which has the value set given below. No vehicle is
beyond these values.
5 – vehicle-class
enumerator should be in structure Vehicle.
6 – Instance / variable / object of Vehicle structure is passed in Owner structure.
7 – Initialize the variables in structures. (You may
initialize them in structure / main function).
8 – When your program starts, the following lines are
appeared on screen.
9 – There are three functions named as:
10 - These three functions take a single input parameter
that is pointer to structure Owner.
Functions have return type as void
11 – Handle the choice entered by user by Switch statement.
12 – If user input is from 1 – 3 then your program,
performs the required task shows result and then Clear the screen (clrscr ()
function is used to clear DOS screen. Function is in ‘conio’ header file) and
then screen appears as in point 8, until unless users exit the program.
13 – Some Functions implementation details (functions in
point 9)
Function View:
-
It displays all information
stored in Owner Structure. (Vehicle information is also included
in Owner Structure)
-
Sample Display Screen is
provided below;
Function Transfer:
-
Sample Display Screen is
provided below;
-
You have to swap Owner Name and
Transferred from then take input from user for the fields as in figure above.
-
After that Clear the Screen and
call View function to view all information in the structure as shown in
Function View description in addition of displaying Transferred from name at
the end.
Function Register:
-
You have to take input of all
variables in structure except Transferred from. (Registration is used for
newly buy vehicle)
-
Sample Display Screen is
provided below;
|
||||||||||||||||||||||||||||||||||||||||
Deadline:
Your assignment must be uploaded on or before 16 / 04 / 2012.
|
||||||||||||||||||||||||||||||||||||||||
SEMESTER Spring 2012 |
|
Principles of Marketing
(MGT301)
|
|
Assignment No. 1
|
|
Due Date: 12 April, 2012
|
Marks: 20
|
Assignment:
|
|
Haji
Abdul Kareem was the founder of Haji Group of Enterprises. He owned many
textiles mills. He established his first mill in 1956. Gradually he increased
the number of mills and established a group of enterprises. He had to
struggle a lot; as a result he achieved his objectives and set the tremendous
examples for the industry. His entrepreneurial skills managed all the
activities efficiently and effectively. He was the sole proprietor and never
issued a single share in open market. He had dying, stitching and other
textile related units for manufacturing. He had very good supply chain
management system for exports of cloths to USA, Europe and Middle East.
Nationalization was very crucial era for his business but he successfully
maintained his business in that era. He had four sons who were also engaged
in the business and continuously worked with their father. In 2001, suddenly
he died and left behind a big gap in his business. His sons had tried to
manage the business as per their father’s philosophy but they had to face
another dilemma which was the global recession. They had to face high
production cost along with low margins. As a result, the business gradually
started declining. This was a shocking point for this family who had never
faced loss and such type of hurdles in the presence of their father’s
management.
To
face this challenge and maintain their business, For this purpose, all four
brothers they had had decided to hire a consultant who could evaluate the
reasons of decline and suggest them viable strategy for the future. Mr.
Mohsin was a famous business consultant and they requested him for his
services. In the first step, Mr. Mohsin called upon a joint meeting of the
directors (all four brothers) to identify their existing capacities and areas
of intensions. In a six6 hour’s session, Mr. Mohsin tried to explore the
inner feelings and intentions of the directors by using different analytical
techniques. When the session ended, Mr. Mohsin came up with the following
results:
1.
Jamal, the eldest one has more interest in production, efficiency in
production, operation management and more inclined towards mass production.
He wants to invest his full capacities to bring efficiency in mass
production.
2.
Babur, second son of Haji Abdul Kareem has concern in new product
development. His interest is to focus on adding new features in the products.
He is also interested to come up with new creative products rather than only
relying on the existing. As he had experience in quality enhancement, he
talked more about product enrichment and quality related issues. Regardless
the market demand and customer’s priority, he always focuses on product and
its features.
3.
Tauqeer, third son of Haji Abdul Kareem has more intentions in selling the
products. He tries to sale as much products as he can to every customer
without even thinking that the product which he is selling to a customer
might not be suitable to that customer.. He follows the selling trends in the
market and is always keen to find out the potential customers for their
products
|
|
Assignment
No. 01
Semester: Spring 2012
CS401: Computer
Architecture and Assembly Language Programming
|
Total Marks: 20
Due Date:16 April, 2011
|
|
Instructions
Please read the following instructions carefully before submitting
assignment:
It should be clear that your assignment
will not get any credit if:
§
The assignment is submitted after due date.
§
The submitted assignment does not open or
file is corrupt.
§
Solution is copied from any other source.
Note: You have to
upload only .doc file. Assignment
in any other format (extension) will not be accepted.
Objective
The objective of this
assignment is to enhance your knowledge about;
§ Physical address
calculation
§ Branching
|
|||
Assignment
|
|
||
Question
No. 1:
Calculate physical address of
your AFD window contains CS and IP register (segment offset pairs).
Explain
each and every step for calculating the physical address.
(Calculation:4 marks
Explanation:3 marks
Snapshot:3
marks )
Note: Provide snapshot of your AFD window. Please give us this
type of your AFD window and mention which segment register value and offset
value you have used for calculating physical address. Please see below sample
snapshot.
Question
No. 2:
Write a program to add these 8 numbers (15, 20, 25, 30,
35, 40, 45, and 50) with using conditional jump. Explain each instruction of program
in your own words.
( Program:5 marks
Snapshot: 5 marks )
Note: Provide snapshot of your program which will be run in AFD window. It is strictly prohibited the copied assignment. |
|||