Wednesday, 23 July 2014

BUSINESS FINANCE ACC501 ASSIGNMENT NO 02 Solution DUE DATE 25 JULY 2014

Mr. Waseem wants to start “Printing on Packages” business. He wants to start this business with 4 printing machines. He estimates that the required investment for the business is Rs. 40 Million. He projects that revenue (before tax and depreciation) from the business will be Rs.8 Million for the first year and it will keep on growing at a rate of 5.5% annually till the 10th year. Some other information regarding the project is as follows: • Annual depreciation will be Rs. 4 Million under the straight line method. • Cost of capital is 10% while the rate of tax is 33%. Suppose you are running a financial consultancy firm, Mr. Waseem wants to get his project evaluated by your firm. You have to suggest Mr. Waseem about the feasibility of the project after performing different techniques of financial analysis to start a new project.

 BUSINESS FINANCE ACC501 ASSIGNMENT NO 02 Solution

Computer Architecture and Assembly Language Programming CS401 ASSIGNMENT No 04 Solution 24th July 2014

Note: 
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

For any query, feel free to email at:
cs401@vu.edu.pk
Assignment Statement:
Write a program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen.

Following should be the output of your code:
Solution  : 

cs401

Compiler Construction CS606 Assignment No. 04 Solution 24th July 2014

Question No 1:                                                                                                                       Marks 20
Consider the following grammar productions. Suppose you have an attribute E.type which can be set to either INT or BOOL.  Assume that the type of an expression is set to INT if an error is detected and you have a routine msg() similar to printf() that can be used to print error message.

E  à   CONST                               {E.type=??}
          | ID                                      {E.type =getType(ID.name);}
          | E1 +E2                              {E.type=??}
          | E1< E2                              {E.type=??}
          | E1= =E2                            {E.type=??}
          | (E1)                                    {E.type=??}

Provide the parse tree for the expression (5 < 2) = = (4 + x).

Monday, 21 July 2014

CS304 Object Oriented Programming Assignment No 4 Solution Due Date: july 21, 2014

Consider the following Class Diagram; detailed description of the diagram is given in the table.



Class Name
Attribute Name
Attribute Data Type
Behavior (Functions)
Transport
Weight
Float
-Load()
-Unload
-Ship()

              Capacity
Character String
Speed
Float
Land_Transport
Transportation_Mode
Character String
-Ship
Vehicle_Type
Character String
    Air_Transport      Aircraft_TypeCharacter String                   -Ship
      Airline_NameCharacter String                   -Ship

In given class diagram, Transport is a base class; while Land Transport and Air Transport are its derived classes.
You are required to implement above class diagram in C++. For this you have to use the concept of inheritance and polymorphism.
Solution Guidelines:
  1. In Load () function of Transport class, a message should be displayed “Goods are loaded successfully”.
  1. In Unload () function of Transport class, a message should be displayed “Goods are unloaded successfully”.

  1. Ship() function of each class should display a message representing each class. Each class will display their own message when this function call will be made. For example, against Ship () function ofLand_Transport class, message “In land transport, shipping is done via Truck" should be displayed and against Ship () function of Air_Transport class, message “In air transport, shipping is done via air cargo"should be displayed.
  2. Behavior of ship () function must be implemented using polymorphism.

Idea solution  : 


class Transport
{
      private:
              float Weight,Speed;
              string Capacity;
      public:
             void Load()
             {
                  cout"\nGoods are loaded successfully\n";
             }
             void Unload()
             {
                  cout"Goods are Unloaded successfully\n";
             }
             virtual void Ship(){} OR virtual void Ship()=0;
           
};

class Land_Transport :public Transport
{
      private:
              string Transportation_Mode;
              string Vehicle_Type;
      public:
             void Ship()
             {
                  cout"In land transport, shipping is done via Truck";
             }
};

class Air_Transport :public Transport
{
      private:
              string Aircraft_Type;
              string Airline_Name;
      public:
             void Ship()
             {
                  cout"\nIn air transport, shipping is done via air cargo\n\n";
             }
};

int main(int argc, char *argv[])
{
    char choice;
    while(1)
    {
    cout"\n\nDo you want to transport your goods? \n\n";
    cout"*************************************\n\n";
    choice = getch();
           if(choice == 'y' || choice == 'Y')
           {
           Menu();
           }         
           cout"\nThank You for using this Program...";
    }

}



void Menu()
{
    Transport *ptr=NULL;
  
    char tpt;
 
              cout"Press 'L' or 'l' to use Land Transport Service\n\n";
              cout"Press 'A' or 'a' to use Air Transport Service\n";
              cout"*************************************\n";
              tpt = getche();
              if(tpt == 'A' or tpt == 'a')
              {
                     ptr=new Air_Transport();
                     ptr->Ship();
              }
            
              if(tpt == 'L' or tpt == 'l')
              {
                     ptr=new Land_Transport();
                     ptr->Ship();
              }        
        getch();
}
//****************************************************************************

System Programming CS609 Assignment No. 03 Solution Due Date Jul 21, 2014

Assignment No. 03
Semester: Spring 2014
System Programming-CS609

Question:                                                                                                                               Marks 20     
Question:
Implement the program of lecture number 27 by using the BORLANDC compiler. Specify the LBA address you have given as input and show the contents of file created by this program. After the implementation of this program you take a memory dump which shows the successive operation of this program.  Also describe the values of this dump to prove the successive operation and also describes the whole processes of your implementation within few lines.

Sunday, 20 July 2014

CS614 Data warehousing Assignment No 4 Solution Date = 22/07/2014

Important Note: 

Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the 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 Solutions at least 02 days before the deadline to avoid inconvenience later on.

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

Consider the following table:

Student_Subjects

StudentIDSubjectCodeExamCenter
124CS614PVC001
455CS001PVC002
367CS614PVC001
486CS403PVC001
524CS101PVC003
657CS614PVC002

Question:

Use bitmap index to execute the following queries:
Select * from Student_Subjects where SubjectCode=”CS614” and ExamCenter=”PVC001”
Select * from Student_Subjects where SubjectCode=”CS001” and ExamCenter=”PVC001”

CS506 Web Design and Development Assignment No 04 idea Solution Due Date Jul 24, 2014

Student Grade Book (SGB) of XYZ Institute is used to store and display student profile information and scores in different semesters. It provide facility to the student to find all the required information like semesters and courses studied, score in each course and Course Credits etc. at a single point. SGB will provide the functionality like to add student profile information and their score and also view this information.

As in the previous assignment you have developed a web based application for the Student Grade Book (SGB)  using java Servlet. In this assignment we are going to give practice on java web based application using Java Server Pages (JSP) technology.

In this assignment we are going to develop a web based application for the Student Grade Book (SGB) for XYZ Institute using JSP.

Solution Guideline
  1. You have to create “index.html” page contains four links i.e. HomeAdd Student Profile Info,
Add GradeBook Info and View Grade Book.
  1. Then create “addStudentProfileinfo.jsp”, “addGradeBookinfo. jsp” along with controller classes for these two , “viewGradeBook. jsp”error.jsp and success.jsp file.
  2. addStudentProfileinfo. jsp”, “addGradeBookinfo. jsp” and “viewGradeBook. jsp” pages are used to insert Student Record and retrieve data from student grade book respectively. The error.jsp andsuccess.jsp pages are used to show error message or successful insertion message.
  3. After the creation of jsp files you are required to write Java Server Pages (JSP) code for the pages mentioned in the point 2 and 3.
  4. Only use the template database provided with the assignment file. Make sure that there will be no modification in the database table or fields name.
  5. Use only “GradeBookDSN” as a system Data Source Name (DSN).

Idea Solution : 


 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">


addStudentProfileinfo
addStudentProfileinfo.jsp 



addStudentProfileinfo
/addStudentInfo




30




index.html

...........................................
First you will have to create a web page. name addStudentProfileinfo.jsp
After that add this page all other web page like this

After add the link in addStudentProfileinfo.jsp like that


like this