Article Share Weblog

Read Share Support

Archive for June, 2008

Find online Java Experts

Posted by Fawad Ishaq on June 29, 2008

Posted in Online Help | Leave a Comment »

Find online C++ experts

Posted by Fawad Ishaq on June 29, 2008

Posted in Online Help | Leave a Comment »

Consult me online

Posted by Fawad Ishaq on June 29, 2008

Ask an Expert - Visit my Virtual Office at LivePerson

Posted in Online Help | Leave a Comment »

Lab 03: Struct and Searching

Posted by Fawad Ishaq on June 25, 2008

| Ask an Expert | Live Programming Help |

Instructions

  • You must have installed Microsoft Visual Studio 6.0/Microsoft Visual Studio .NET 2003/Microsoft Visual Studio .NET 2005 on your machine to try the programs.
  • To develop the C++ program on Microsoft Visual Studio 6.0 please read the handout “How to create your first C++ program using Visual C++ 6.0”.
  • To develop the C++ program on Microsoft Visual Studio .NET 2003 please read the handout How to create your first C++ program using Visual C++ .NET 2003.
  • To develop the C++ program on Microsoft Visual Studio .NET 2005 please read the handout How to create your first C++ program using Visual C++ .NET 2005.

Exercise 01
(A) Define a structure DVD having following data members:
• DVD code (use variable of type integer to store the code of the DVD)
• Movie name (use char array of 50 elements to store the movie name)
• Actor name (use char array of 50 elements to store the actor name)
• Actress name (use char array of 50 elements to store the actress name)
• Release Date (use char array of 50 elements to store the movie release date)
• Price (use variable of type double to store the price of the DVD)
(B) Create an array of DVD structure capable of holding data of not less than ten DVDs.
(C) Add a function inputDVDDetails that would allow the user to enter the DVD data, one record at a time.
void inputDVDDetails( DVD )
(D) Add a function printDVDDetails_ListView that would print the data of all the DVDs on the console in list view.
void printDVDDetails_ListView (DVD[], int )
(E) Add a function printDVDDetails_GridView that would print the data of all the DVDs on the console in grid view.
void printDVDDetails_GridView (DVD[], int )
(F) Add a feature that would allow the user to search a DVD by code. (do it without function)
(G) Add a feature that would allow the user to search a DVD by movie name. (do it without function)
(H) Add a feature that would allow the user to search a DVD by actor name. (do it without function)
(I) Add a feature that would allow the user to search a DVD by actress name. (do it without function)
(J) Add a feature that would allow the user to search a DVD by release data. (do it without function)
(K) Add a feature that would allow the user to search a DVD by price. (do it without function)
(L) Create a main menu with the following menu items:
• Add New
• List View
• Grid View
• Search by DVD Code
• Search by Movie Name
• Search by Actor Name
• Search by Actress Name
• Search by Release Date
• Search by Price
• Exit
(M) Create a separate C++ program for this exercise.
(N) The program should not allow the user to enter more than ten records.

Exercise 02
(A) Define a structure DVD having following data members:
• DVD code (use variable of type integer to store the code of the DVD)
• Movie name (use char array of 50 elements to store the movie name)
• Actor name (use char array of 50 elements to store the actor name)
• Actress name (use char array of 50 elements to store the actress name)
• Release Date (use char array of 50 elements to store the movie release date)
• Price (use variable of type double to store the price of the DVD)
(B) Create an array of DVD structure capable of holding data of not less than ten DVDs.
(C) Add a function inputDVDDetails that would allow the user to enter the DVD data, one record at a time.
void inputDVDDetails( DVD )
(D) Add a function printDVDDetails_ListView that would print the data of all the DVDs on the console in list view.
void printDVDDetails_ListView (DVD[], int )
(E) Add a function printDVDDetails_GridView that would print the data of all the DVDs on the console in grid view.
void printDVDDetails_GridView (DVD[], int )
(F) Add a function searchByCode that would allow the user to search a DVD by code.
boolean searchByCode ( DVD[], int, int )
(G) Add a function searchByMovieName that would allow the user to search a DVD by movie name.
boolean searchByMovieName( DVD[], int, char[] )
(H) Add a function searchByActorName that would allow the user to search a DVD by actor name. The program must show all the movies in which the actor appeared.
boolean searchByActorName ( DVD[], int, char[] )
(I) Add a function searchByActressName that would allow the user to search a DVD by actress name. The program must show all the movies in which the actress appeared.
boolean searchByActressName ( DVD[], int, char[] )
(J) Add a function searchByReleaseDate that would allow the user to search a DVD by release data. The program must show all the movies released on a particular date.
boolean searchByReleaseDate ( DVD[], int, char[] )
(K) Add a function searchByPrice that would allow the user to search a DVD by price. The program must how all the movies having the same price.
boolean searchByPrice ( DVD[], int, double )
(L) Create a main menu with the following menu items:
• Add New
• List View
• Grid View
• Search by DVD Code
• Search by Movie Name
• Search by Actor Name
• Search by Actress Name
• Search by Release Date
• Search by Price
• Exit
(M) Create a separate C++ program for this exercise.
(N) The program should not allow the user to enter more than ten records.

How to submit

  • Submit your assignments to Mr. Adeel as per the schedule announced by him.
  • No assignment shall be evaluated/accepted after the due date.
  • Copy assignments will be cancelled.
  • There will be an individual viva of this assignment. Your evaluation is strictly based on your performance in the viva.
  • Non-professional behavior during the viva may lead to assignment cancellation.

Ask an Expert - Visit my Virtual Office at LivePerson


| Download PDF Here |

Posted in Object-Oriented Programming in C++ | Leave a Comment »

Lab 02: Struct and Functions

Posted by Fawad Ishaq on June 25, 2008

| Ask an Expert | Live Programming Help |
Instructions

  • You must have installed Microsoft Visual Studio 6.0/Microsoft Visual Studio .NET 2003/Microsoft Visual Studio .NET 2005 on your machine to try the programs.
  • To develop the C++ program on Microsoft Visual Studio 6.0 please read the handout “How to create your first C++ program using Visual C++ 6.0”.
  • To develop the C++ program on Microsoft Visual Studio .NET 2003 please read the handout How to create your first C++ program using Visual C++ .NET 2003.
  • To develop the C++ program on Microsoft Visual Studio .NET 2005 please read the handout How to create your first C++ program using Visual C++ .NET 2005.

Exercise 01
Define a structure DVD having following data members:

  • DVD code (use variable of type integer to store the code of the DVD)
  • Movie name (use char array of 50 elements to store the movie name)
  • Actor name (use char array of 50 elements to store the actor name)
  • Actress name (use char array of 50 elements to store the actress name)
  • Release Date (use char array of 50 elements to store the movie release date)
  • Price (use variable of type double to store the price of the DVD)

Add a function inputDVDDetails that would allow the user to enter the data about a single DVD.

  • void inputDVDDetails( DVD )

Add a function printDVDDetails that would print the DVD data on the console in list view.

  • void printDVDDetails (DVD )

Create a separate C++ program for this exercise.

Exercise 02
Create an array of DVD structure capable of holding data of not less than ten DVDs.
Add a function inputDVDDetails that would allow the user to enter the DVD data, one record at a time.

  • void inputDVDDetails( DVD )

Add a function printDVDDetails_ListView that would print the data of all the DVDs on the console in list view.

  • void printDVDDetails_ListView (DVD[], int )

Add a function printDVDDetails_GridView that would print the data of all the DVDs on the console in grid view.

  • void printDVDDetails_GridView (DVD[], int )

Create a main menu with the following menu items:

  • Add New
  • List View
  • Grid View
  • Exit

Create a separate C++ program for this exercise.
The program should not allow the user to enter more than ten records.

How to submit

  • Submit your assignments to Mr. Adeel as per the schedule announced by him.
  • No assignment shall be evaluated/accepted after the due date.
  • Copy assignments will be cancelled.
  • There will be an individual viva of this assignment. Your evaluation is strictly based on your performance in the viva.
  • Non-professional behavior during the viva may lead to assignment cancellation.

Ask an Expert - Visit my Virtual Office at LivePerson


| Download PDF Here |

Posted in Object-Oriented Programming in C++ | Leave a Comment »

Lab 01: Struct Basics

Posted by Fawad Ishaq on June 25, 2008

| Ask an Expert | Live Programming Help |

Instructions

  • You must have installed Microsoft Visual Studio 6.0/Microsoft Visual Studio .NET 2003/Microsoft Visual Studio .NET 2005 on your machine to try the programs.
  • To develop the C++ program on Microsoft Visual Studio 6.0 please read the handout “How to create your first C++ program using Visual C++ 6.0”.
  • To develop the C++ program on Microsoft Visual Studio .NET 2003 please read the handout How to create your first C++ program using Visual C++ .NET 2003.
  • To develop the C++ program on Microsoft Visual Studio .NET 2005 please read the handout How to create your first C++ program using Visual C++ .NET 2005.

Exercise 01
Define a structure Patient having following data members:

  • Patient id (use integer variable to store the patient id)
  • Patient name (use char array of 50 elements to store the patient name)

Develop a C++ program to test the Patient structure. Declare two variable of structure Patient namely p1 and p2. Assign relevant values to p1. The program then asks the user to enter the book data which will be stored in p2 and prints the data stored both in p1 and p2 on the console separately.

Exercise 02
Define a structure Book having following data members:

  • ISBN (use char array of 50 elements to store the book ISBN)
  • Book Title (use char array of 50 elements to store the book title)
  • Book Author (use char array of 50 elements to store the author name of the book)
  • Publish Date (use char array of 50 elements to store the publish date of the book)
  • Price (use double variable to store the book price)

Develop a C++ program to test the Book structure. Declare two variable of structure Book namely b1 and b2. Assign relevant values to b1. The program then asks the user to enter the book data which will be stored in b2 and prints the data stored both in b1 and b2 on the console separately.

Exercise 03

  • Create two different arrays of Patient structure each capable of holding data of not less than ten patients.
  • Initialize first array with relevant data.
  • Add a feature that would allow the user to enter the data for ten patients.
  • Add a feature that would print the data of ten patients record-by-record and in tabular format. Use setw function to format the data in tabular format.
  • Create a separate C++ program for this exercise.

Exercise 04

  • Create two different arrays of Book structure each capable of holding data of not less than ten books.
  • Initialize first array with relevant data.
  • Add a feature that would allow the user to enter the data for ten books.
  • Add a feature that would print the data of ten book record-by-record and in tabular format. Use setw function to format the data in tabular format.
  • Create a separate C++ program for this exercise.

How to submit

  • Submit your assignments to Mr. Adeel as per the schedule announced by him.
  • No assignment shall be evaluated/accepted after the due date.
  • Copy assignments will be cancelled.
  • There will be an individual viva of this assignment. Your evaluation is strictly based on your performance in the viva.
  • Non-professional behavior during the viva may lead to assignment cancellation.

Ask an Expert - Visit my Virtual Office at LivePerson


| Download PDF Here |

Posted in Object-Oriented Programming in C++ | Leave a Comment »

Handout 02: Software Process

Posted by Fawad Ishaq on June 24, 2008

After completing this handout, you will be able to:

  • Understand software process.
  • Understand software engineering.
  • Define software process.
  • Define software engineering.
  • Understand the software engineering layered technology.
  • Understand software engineering phases.
  • Understand software process maturity.

| Download Here |

Posted in Software Engineering | Leave a Comment »

Handout 01: Software from software engineering perspective

Posted by Fawad Ishaq on June 12, 2008

After completing this handout, you will be able to:

  • Understand what is software engineering.
  • Understand the role of software.
  • Understand the definition of software from software engineering perspective.
  • Learn the software characteristics.
  • Learn the software application areas.
  • Learn the software crisis.
  • Learn the software myths.

| Download PDF Here |

Posted in Software Engineering | Leave a Comment »

Introduction to Computer Programming Handout 02

Posted by Fawad Ishaq on June 3, 2008

After reading this handout, you will be able to:

  • Simple computer programs in C++.
  • Write simple output statements.
  • Use arithmetic operators.
  • Understand the precedence of arithmetic operators.
  • Use the escape sequences.

| Click here to download |

Posted in Introduction to Computer Programming | Leave a Comment »

Introduction to Computer Programming using C++ Course Outline

Posted by Fawad Ishaq on June 3, 2008

Introduction

This course introduces students to computer programming using C++ programming language. C++ is one of today’s most popular software development languages and has become the implementation language of choice. During the course students will learn the basic of computer programming as well as the master the advance programming concepts such as abstraction, encapsulation, inheritance, and polymorphism. The emphasis will be on problem solving rather than just learning the programming language.

| Click Here to Download |

Posted in Course Outlines | Leave a Comment »