Wednesday, 28 October 2015

C# Lab@home 3

Write a C# program that accepts distance in kilometers, converts it into meters, and then displays the result.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quotient
{
    class Meter_Kilometer
    {
        static void Main(string[] args)
        {
            int nDistance, nResult;
            Console.WriteLine("Enter the distance in kilometers");
            nDistance = Convert.ToInt32(Console.ReadLine());
            nResult = nDistance * 1000;
            Console.WriteLine("Distance in meters:" + nResult);
            Console.ReadLine();
        }
    }
}

Read More »

Monday, 26 October 2015

Mk Akki

Friendship at it Best #bestfrndsforever

Mk Akki

Read More »

Saturday, 24 October 2015

C# Lab@ home 2

1.As a part of the team that is developing software for a library, you have been assigned the task of writing a program. The program should accept the following book details: 1. Book Number as int 2. Book Category (Fiction or Nonfiction) as string 3. Author Name as string 4. Number of copies available as int Write a C# program to accept and display the preceding book details.

using System;
class Book
{
     string BookCat;
     string FirstName;
     string LastName;
     int IsbnNo;
     int NoOfCopies;

   public void display()
{
      Console.WriteLine("\nThe following are the details of the Book:");
      Consile.writeLine("Category of the Book:");
      Console.write("Name of the Author:");
      Console.Write(FiretName);
      Console.writeLine("{0}",LastName);
      Console.Write("ISBN Number:");
      Console.WriteLine(IsbnNo);
      Console.Write("Number of Copies");
      Console.WriteLine(NoOfCopies);
}
  public void Get()
{
  Console.WriteLine("Please enter the details of the Book");
  Console.WriteLine("Enter the Category of the Book(Fiction/Nonfiction):");
  BookCat=Console.ReadLine();
  Console.WriteLine("First Name of the Author:");
  FirstName=console.ReadLine();
  Console.WriteLine("Last Name of the Author:");
  LastName=console.ReadLine();
  Console.WriteLine("ISBN Number:");
  IsbnNo= Convert.toInt32(Console.ReadLine());
  Console.WriteLine("Number of Copies:");
  NoOfCopies=Convert.TOInt32(Console.ReadLine());
 }
}
    class MyClass
 {
     static void Main(string[] args)
{
     Book My_Fav = new Book();
     Console.readLine();
    }
  }


2.

An automobile company has developed an application for maintaining the number of wheels in a vehicle. Predict the output of the following code of the application: using System; class Vehicle { public int Number_of_tyres; } class MyVehicle { static void Main(string[] args) { Vehicle Motorcycle = new Vehicle(); Vehicle Car = new Vehicle(); Console.WriteLine("Enter the number of wheels in a car:"); Car.Number_of_tyres = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter the number of wheels in a Motorcycle:"); Motorcycle.Number_of_tyres = Convert.ToInt32 (Console.ReadLine()); Console.WriteLine("\n"); Console.Write (Car.Number_of_tyres); Console.WriteLine(" :is the number of wheels in a Car \n"); Console.Write (Motorcycle.Number_of_tyres); Console.WriteLine(" :is the number of wheels in a Motorcycle \n"); Console.ReadLine(); } }



using System;
class Vehicle
{
      public int Number_of_tyres;
}
     class MyVehicle
{
    static void Main (string[] args)
 {

        Vehicle Motorcycle= new Vehicle();

        Vehicle Car = new Vehicle();

        Console.WriteLine("Enter the number of wheels in a car:");

        Car.Number_of_tyres=Covert.ToInt32(Console.ReadLine());

        Console.WriteLine("Enter the number of wheels in a Motorcycle:");

        Motorcycle.Number_of_tyres=Convert.ToInt32(Console.ReadLine());

        Console.WriteLine("\n");

        Console.Write(Car.Number_of_tyres);

 Console.WriteLine(" :is the number of wheels in a Car\n");

 Console.Write(Motorcycle.Number_of_tyres);

 Console.WriteLine(" :is the number of wheels in a Motorcycle \n");
  }
}
3.

TechnoSoft, a leading software company, has developed an application for maintaining the scores of games in a video game parlor. If the new score is greater than the stored top score, the following program should interchange the values of the variables Top_score and New_score. However, the program does not generate the desired output. Identify the error in the following program and write the correct code: using System; class Interchange { int Top_score; int New_score; int Temp; void Swap() { Top_score=5; New_score=10; Temp=top_score; New_score=Top_score; Top_score=New_score; } void Display() { Console.WriteLine("The new value of top score is:"); Console.WriteLine(Top_score); Console.WriteLine("The old value of top score was:"); Console.WriteLine(New_score); } static void Main() { Interchange I1; I1.Swap(); I1.Display(); Console.ReadLine(); } } (Duration: 25 min
 using System;
   class Interchange
 {
   
      int Top_score;
      int New_score;
      int Temp;
      void swap()
 {
       
        Top_score=5;
        New_score=10;
        Temp=Top_score;
        Top_score=New_score;
        New_score=Temp;
 }
   void Display()
 {
   
     Console.WriteLine("The new value of top score is:");
     Console.WriteLine(Top_score);

     Console.WriteLine("The old value of top score was:");
     Console.WriteLine(New_score);
 }
     static void main()
{
 
     Interchange I1=new Interchange();
     I1.Swap();
     I1.Display();
     Console.ReadLine();
   }
}

Read More »

C# Lab@ home 1

Predict the output of the following code snippet:


using System;
class Myclass
{
static void Main()
{
string Answer="Y";
string Response_Code="66";
int Counter=60;
Console.writeLine(Answer);
Console.WriteLine("Response Code");
Console.WriteLine(Cunter);
Console.ReadLine();
 }
}
2. Jim is developing software for automating the slot booking process for a video game parlor. Customers fill the Booking Request form with the details of the game, such as the name, number of players, and complexity level. They hand over the form to the booking officer at the parlor. Depending on the availability, the booking officer reserves the time slots and the play station for customers.




using system ;
public class gamedetials
{

      string fname ;
      string lname ;
      int noofplayer ;
      int level ;

      public static void getGameDetail ()
{
      console.writeline (" enter your first name" );
      fname= console.readline();
      console. writeline ( " enter your last name" );
      Lname-console.readline();
      console.writeline( "enter no of players");
      nooFplayer=convert ToInt32(console. readline() )
      console. writeline(" entercomplexity level number:");
      level= convert ToInt32(console.readline());
          Console.ReadLine();
}





public static void showGameDetails()
{
   {
 console. writeline("the details enter are as follows:");
  console. write("first name:");
 console.writeline(fname);
 console.write("last name:");
 console.writeline(lname);
 console.write("no of players:");
 console.writeline(noofplayers);
 console.write("level:");
 console.writeline(level);
  
public static void Main(string []args)
{
 GameDetails gd=new GameDetails();
 gd.getGameDetials();
 gd.showGameDetails();

}

}
Read More »

Core Java MT Solved

1.Identify the features of New API (NIO).

Ans:

i)The new API works more consistently across platforms.

ii)It makes it easier to write programs that gracefully handle the failure of file

system operations.

iii)It provides more efficient access to a larger set of file attributes.

2.Differentiate between checked and unchecked exceptions.

Ans:

Checked Exception:

i)Every class that is a subclass of Exception except RuntimeException and its subclasses

falls into the category of checked exceptions.

ii)You must ?handle or declare? these exceptions with a try or throws statement.

Unchecked Exception:

i)java.lang.RuntimeException and java.lang.Error and their subclasses are categorized

as unchecked exceptions.

ii)You may use a try-catch statement to help discover the source of these exceptions, but

when an application is ready for production use, there should be little code remaining

that deals with RuntimeException and its subclasses.

3.Explain public, static, and void keywords in the following statement:

public static void main(String args[])

Ans:

i)public: The public keyword indicates that the method can be accessed from anyobject in

a Java program.

ii)static: The static keyword is used with the main() method that associates the method

with its class. You need not create an object of the class to call the main() method.

iii)void: The void keyword signifies that the main() method returns no value.

4.Identify the limitations of the java.io.File class.

Ans:

The java.io.File class has the following limitations:

i)Many methods did not throw exceptions when they failed, so it was impossible to obtain

useful error messages.

ii)Several operations were missing (file copy, move, and so on).

iii)The rename method did not work consistently across platforms.

iv)There was no real support for symbolic links.

v)More support for metadata was desired, such as file permissions, file owner, and

other security attributes.

vi)Accessing file metadata was inefficient?every call for metadata resulted in a system

call, which made the operations very inefficient.

vii)Many of the File methods did not scale. Requesting a large directory listing on a

server could result in a hang.

viii)It was not possible to write reliable code that could recursively walk a file tree and

respond appropriately if there were circular symbolic links.

5.Identify the five classes of the java.util.concurrent package and explain any two

classes.

Ans:

i)Semaphore: Is a classic concurrency tool.

ii)CountDownLatch: A very simple yet very common utility for blocking until a given

number of signals, events, or conditions hold.

iii)CyclicBarrier: A resettable multiway synchronization point useful in some styles of

parallel programming.

iv)Phaser: Provides a more flexible form of barrier that may be used to control phased

computation among multiple threads.

v)Exchanger: Allows two threads to exchange objects at a rendezvous point, and is

useful in several pipeline designs.

6.Steve has been asked to automate the Library Management System either in C++ or

Java. Steve has chosen to develop the project in Java. Identify the reason.

Ans:

One of the major problem areas in most of the object-oriented languages, such as C++,

is to handle memory allocation. Programmers need to explicitly handle memory in the

program for its optimum utilization. To handle memory allocation, they use pointers

that enable a program to refer to memory location of the computer. However, Java

does not support pointers and consists of the built-in functionality to manage memory.

7.You have created a class with two instance variables.You need to initialize the

variables automatically when a class is initialized. Identify the method that you will use

you to achieve this. In addition, describe the characteristics of this method.

Ans:

You can initialize the variable by using the constructor. The characteristics of a

constructor are:

-       A constructor has the same name as the class itself.

-       There is no return type for a constructor. A constructor returns the instance of

the class instead of a value.

-        A constructor is used to assign values to the data members of each

objectcreated from a class

8.Differentiate between interface and abstract class.

Ans:

1.The methods of a Java interface are implicitly abstract and cannot have

implementations. A Java abstract class can have instance methods that implements a

default behavior.

2.Variables declared in a Java interface are by default final. An abstract class may

contain non-final variables.

3.Members of a Java interface are public by default. A Java abstract class can have

the usual flavors of class members like private, protected, etc..

4.Java interface should be implemented using keyword, implements; A Java abstract

class should be extended using keyword, extends.

5.An interface can extend another Java interface only, an abstract class can extend

another Java class and implement multiple Java interfaces.

6.A Java class can implement multiple interfaces but it can extend only one abstract

class.

7.Interface is absolutely abstract and cannot be instantiated; A Java abstract class

also cannot be instantiated, but can be invoked if a main() exists.

8.In comparison with Java abstract classes, Java interfaces are slow as it requires

extra indirection.
Read More »

ASP MT Solved

Ques1 Conside a scenario where you are trying to directky deploy a web application on the IIS server of your development computer.As the first step Internet Information Services(IIS) Manager and currently accessing the Add Apllication dialog box.At this stage which of the following information (ch11)

1.A name of the application,A URL to access the application
2.The pysical path where the website will be saves,A URL to access the application
3.An Alias name of the application,The physical path where the application will be saved
4.The URL to access IIS,The physical path where the website will be saved.


================================
Ques2 When you execute the application,the application is automatically deployed on____.
(ch11)
=====================
Ques3 DatePicker Code(ch8)
====================
Ques4 Create CSS file code(ch6)
===============
Ques5 The IEnumarable interface is avaible in the ____ namespaces.(ch6)
===============
Ques6 Range Data Annotation(ch4)
=====================
Ques7 To implement client-side validation in an MVC application,which one of the follwing options is not required?
1.Add annotation to the model class
2.use HTML validation helpers in Razor view to display error message
3.Include the jQuery validation script
4.Add custom error message to annotation in model class
=========================
Ques8 Which of the follwing statements is true regarding the ReadOnly attribute applied to a property? (ch 4)
1.Ensures that the property is not made availble to the view
2.Specifies constraints for a numeric value entered by the user
3.Ensures that the default model binder will not set the property with a new value from the request
4.Helps you provide information about the specific purpose of a property at runtime
=========================
Ques9 In server-side validation,if the model state contains an error,the ____property retuns false
1.ModelState.IsValid
2.ModelState.Valid
3.ModelState.IsError
4.ModelState.IsInValid
=========================
Ques10 Which one of the following code snippet will generate a URL of the Login action in the Account controller?
1.@HTMl.ActionLink("Login","Action")
2.@Url.ActionLink("Login","Action")
3.MvcHtmlString.ActionLink("Login","Action")
4.@Url.Action("Login","Account")
=====================
Ques11 RadioButton coding(from book Topic Helper Method)
====================
Ques12 The _____ helper method is used to display an editor for the specified model property.
================
Ques13 Custom Route(Go through the Animation)

Identify the URL that cannot match with the following
===================
Ques14 What wll be the result when the following URL is sent to an MVC application through a Web browser?
http://newbay.com/Index/RegistrationController
=====================
Ques15 Chris is given an existing ASP.NET MVC application created by using scaffolding feature.In the application,he has to make changes to the HTMl template.Which options?
1.Views folder
2.Web config file
3.App_Data folder
4.Controller folder
=======================
Ques16 You have created a controller for a web apllication with the name Tutorial.What will be the name of the folder created by default under the Views folder if you use the scallofding
1.Tutorial
2.TutorialController
3.Home
4.Controller
=============================
Ques17 FadeIn() and FadeOut() methods of JavaScript coding
=========================
Read More »

HTML MT Solved

1. Explain the usage of the <IFRAME> tag in HTML. Also, discuss the various attributes of the <IFRAME> tag.
Ans .The HTML <IFRAME> tag is used to specify an inline frame. It allows you to divide a Web page into sections or frames. Each section can be used to display an individual Web page. Therefore, the <IFRAME> tag is used to embed an HTML Web page within another Web page. The embedded Web page is said to be contained within the other Web page, which is known as the containing page. The following attributes can be used with the <IFRAME> tag:

src: Is used to specify the location or the URL of the Web page to be embedded inside the frame.

name: Is used to assign a name to the frame.

seamless: Is a boolean attribute, which instructs the browser to display the frame as a part of the containing Web page. If this attribute is used, the frame is displayed without scroll bars and border.

srcdoc: Is used to specify an HTML code that defines the content to be displayed inside the frame.

height: Is used to set the height of the frame.

width: Is used to set the width of the frame.


2.What do you mean by loop constructs? Discuss the various loop constructs in JavaScript.
Ans. Loop constructs are used to repeatedly execute one or more lines of code. In JavaScript, the following loop constructs can be used:

while
do...while
for
The while  loop is used to repeatedly execute a block of statements till a condition evaluates to true. The while statement always checks the condition before executing the statements in the loop. The syntax for the while loop is:

while (expression)
{
statements;
}

The do...while loop construct is similar to the while loop construct. However, the statements within the do...while loop are executed before the condition is checked as compared to the while loop, where the statements within the block are executed after the condition is checked. Therefore, the statements within the do...while loop are executed at least once, in comparison to the while loop, where the statements in the block are not executed when the condition evaluates to false for the very first time. It has the following syntax:

do
{ Statements;
}
while(condition)

The for  loop allows the execution of a block of code depending on the result of the evaluation of the test condition. It has the following syntax:

for (initialize variable; test condition; step value)
{// code block
}

3.
Write the code to retrieve the users' location on the click event of a button by using the getCurrentPosition() method. The location coordinates that are retrieved need to be displayed inside the <P></P> tag.
Ans. <!DOCTYPE HTML>
<HTML>
<BODY>
<P ID="disp_location">Click here to know your location coordinates:</P>
<BUTTON onclick="getLocation()">Get Location</Button>
<SCRIPT>
var geo=document.getElementById("disp_location");
function getLocation()
  {
  if (navigator.geolocation)
    {
    navigator.geolocation.getCurrentPosition(getPosition);
    }
  else{geo.innerHTML="Geolocation is not supported by this browser.";}
  }
function getPosition(position)
  {
  geo.innerHTML="Latitude: " + position.coords.latitude +
  "<BR>Longitude: " + position.coords.longitude;
  }
</SCRIPT>
</BODY>
</HTML>

4. What is a function? How can you create a function in JavaScript?
Ans. A function is a self-contained block of statements that has a name and is defined to perform a specific task. A function can be defined once but can be executed repeatedly. Functions can either be built-in or user-defined.

In JavaScript, functions can be created by using the keyword, function, followed by the function name and the parentheses, ().A function can optionally accept a list of parameters. The parameters that a function accepts are provided in parentheses and separated by commas. The function can use the values passed in these parameters to perform certain operations. The following syntax is used to create functions:

function [functionName] (Variable1, Variable2)
{
//function statements
}

5. Write the JavaScript code to create a clock that updates every one second to display the current time inside a <DIV> element on the Web page.
Ans. <!DOCTYPE HTML>
<HTML>
<HEAD>
<SCxRIPT type="text/javascript">
function clockTime()
{
var todayDate=new Date();
var hrs=todayDate.getHours();
var mns=todayDate.getMinutes();
var scs=todayDate.getSeconds();
mns=check(mns);
scs=check(scs);
document.getElementById('displayTime').innerHTML=hrs+":"+mns+":"+scs;
t=setTimeout('clockTime()',1000);
}

function check(t)
{
if (t<10)
 {
 t="0" + t;
 }
return t;
}
</SCRIPT>
</HEAD>
<BODY onload="clockTime()">
<DIV ID="displayTime"></DIV>
</BODY>
</HTML>

6. Define canvas. Also, discuss how can you create a canvas and use it for drawing graphic objects in HTML.
Ans. A canvas is an area on a Web page that acts as a container for embedding graphic objects. It allows dynamic rendering of bitmap images and 2D shapes by using JavaScript. To create a canvas and use it for drawing, you need to perform the following tasks:

1. Define the canvas
2. Access the canvas

A canvas is defined by using the <CANVAS> tag in the body section of the HTML document. Its important attributes are height, width, style, and ID. You can define a canvas by using the following code within the <BODY> tag:

<CANVAS ID="myCanvas" width="300" height="300" style="border:1px solid black">
</CANVAS>

To actually draw graphic objects on the canvas, you need to access the canvas in the JavaScript code. You can write the following code in the <BODY> tag to access the canvas that you have defined earlier:

<SCRIPT>
var c=document.getElementByID("myCanvas");
var ctx=c.getContext("2d");
</SCRIPT>

7. Write a code to create a table in HTML, as shown in the following figure.
Ans. <!DOCTYPE HTML><HTML>
<BODY>
<TABLE border = "1">
<THEAD>
<TR><TH colspan= "4">Sales Record</TH></TR>
<TR> <TH> Product ID </TH> <TH> Description</TH> <TH> Quantity</TH><TH> Price</TH></TR>
</THEAD>
<TFOOT>
<TR><TD colspan= "3"> Total price </TD> <TD>$12</TD></TR>
</TFOOT>
<TBODY>
<TR><TD>101</TD><TD>Notebook</TD><TD>50</TD><TD>$5</TD></TR>
<TR><TD>121</TD><TD>Pen</TD><TD>100</TD><TD>$7</TD></TR>
</TBODY>
</TABLE>
</BODY>
</HTML>

8. What do you understand by preloading the images associated with a Web page? How is preloading of images implemented in JavaScript?
Ans. Preloading images is a technique to load images in the browser cache before the script on the Web page is executed and the Web page is rendered in the browser window. This helps to avoid any delay in loading images from their respective locations, and then displaying these images on the Web page.

The Image object can be used to preload images in an application. To use the Image object, an instance of the Image object needs to be created and the actual images need to be attached to the Image object in the head section. It ensures that the images are loaded in memory before the body of the page gets loaded. The following syntax is used to create an instance of the Image object:

var Imagename= new Image([Width], [Height]);

After instantiating an image object, you need to associate the image with the Image object. For this, the src attribute of the Image object is used as shown in the following code:
 
   Imagename.src="ImageURL",

where, ImageURL is the URL of the image.

9. What is the use of the <FIELDSET> tag in HTML? Also, briefly discuss the tags and attributes associated with the <FIELDSET> tag.
Ans. The <FIELDSET> tag is used to combine and group related fields in a form. It creates a box around the selected fields.

The <LEGEND> tag is used along with the <FIELDSET> tag to define a caption for the fieldset. It is the simplest way of organizing form elements along with their description in such a way that it is easier for a user to understand.

The <FIELDSET> tag can have the following attributes:

disabled: The disabled attribute is used to indicate that a group of fields should be shown disabled when the page loads.
form: The form attribute is used to specify the name of one or more forms to which the <FIELDSET> tag belongs.
name: The name attribute is used to specify the name for the fieldset.

10. Write the code to create a canvas of desired dimension on a Web page and then draw a circle inside it. In addition, you need to apply a radial gradient comprising any four colors on the circle drawn on the canvas.
Ans. <!DOCTYPE HTML>
<HTML>   <BODY>
<CANVAS ID="myCanvas" width="300" height="300" style="border:1px solid black">
</CANVAS>
<SCRIPT>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var grad=ctx.createRadialGradient(75,50,5,90,60,100);
grad.addColorStop(0.2,"orange");
grad.addColorStop(0.4,"green");
grad.addColorStop(0.6,"yellow");
grad.addColorStop(0.8,"red");
ctx.fillStyle=grad;
ctx.beginPath();
ctx.arc(80, 90, 50, 0, Math.PI*2, false);
ctx.fill();
ctx.closePath();
</SCRIPT>
</BODY>
</HTML>
Read More »

DSA MT Solved

Q Explain queue with the help of an example. What are the types of operations that can be performed on a queue? How can you represent a queue in the form of a linked list?
---------------------------
Ans
A queue is a list of elements in which items are inserted at one end of the queue and deleted from the other end of the queue. You can think of a queue as an open ended pipe, with elements being pushed from one end and coming out of another. The end at which elements are inserted is called the rear, and the end from which the elements are deleted is called the front. A queue is also called a First-In-First-Out (FIFO) list because the first element to be inserted in the queue is the first one to be deleted. The queue data structure is similar to the queues in real life.
The following two types of operations can be performed on queues:
•Insert: It refers to the addition of an item in the queue. Items are always inserted at the rear end of the queue.
•Delete: It refers to the deletion of an item from a queue. Items are always deleted from the front of the queue. When an item is deleted, the next item in the sequence becomes the front end of the queue.


class Node
{
public int data; public Node next;
}
class LinkedQueue
{
Node FRONT, REAR;
public LinkedQueue()
{
FRONT = null;
REAR = null;
}
public void insert (int element)
{
}
public void remove()
{
}
public void display()
{
}
}
===========================================
Q Peter has been assigned a task to develop a code to implement a delete operation on a binary search tree. However, before doing so, he first needs to write a code to locate the position of the node to be deleted and its parent. To do so, he has written the following algorithm:

1. Make a variable/pointer currentNode point to the root node.
2. Make a variable/pointer parent point to root.
3. Repeat the steps, a, b, and c until currentNode becomes NULL or the value of the
    node to be searched becomes greater than currentNode:
    a. Make parent point to currentNode.
    b. If the value to be deleted is greater than that of currentNode:
         i. Make currentNode point to its left child.
    c. If the value to be deleted is less than that of currentNode:
         i. Make currentNode point to its right child.

However, the preceding algorithm does not give the desired output. Write the correct algorithm.
-------------------
Ans
1. Make a variable/pointer currentNode point to the root node.
2. Make a variable/pointer parent point to NULL.
3. Repeat the steps, a, b, and c until currentNode becomes NULL or the value of the
    node to be searched becomes equal to that of currentNode:
    a. Make parent point to currentNode.
    b. If the value to be deleted is less than that of currentNode:
         i. Make currentNode point to its left child.
    c. If the value to be deleted is greater than that of currentNode:        
         i. Make currentNode point to its right child.
===============================
 Q.How can you represent a stack by using a linked list?
Ans...

 Code in C#
class Node {
       public int info;
        public Node next;
public Node(int i, Node n)
{        
  info = i;
  next = n;
}}

After representing a node of a stack, you need to declare a class to implement operations on a stack. In this class, you also need to declare a variable/pointer to hold the address of the topmost element in the stack and initialize this variable/pointer to contain the value, NULL.
class Stack
   {  
    Node top;  
    public Stack()
      {  
       top = null;
       }
       bool empty()
   {            // Statements        }
      public void push(int element)
        {            // Statements        }
     public void pop()    
  {             // Statements        }}

After declaring the class to implement the operations on the stack, you need to implement the PUSH and POP operations.

==============================================================
Q. Define the following terms:
a.    Edge
b.    Depth  of a tree
c.    Leaf node
d.    Degree of a node
e.    Children of a node

Ans..
    Edge:  A link from a parent to a child node is known as an edge.
b.    Depth of a tree:  The maximum number of levels in a tree is called the depth of
       a tree.
c.    Leaf node: A node with no children is called a leaf node.
d.    Degree of a node: The number of sub trees of a node is called the degree of a
       node.
e.    Children of a node: The roots of the sub trees of a node are called the children of
       the node.


=========================================================================
Q.  Explain stack with the help of an example. What are the characteristics of a stack? Briefly explain the operations that can be performed on a stack?

Ans.
A stack is a collection of data items that can be accessed at only one end, which is called top. This means that the items are inserted and deleted at the top. The last item that is inserted in a stack is the first one to be deleted. Therefore, a stack is called a Last-In-First-Out (LIFO) data structure.
A stack is like an empty box containing books, which is just wide enough to hold the books in one pile. The books can be placed, as well as removed, only from the top of the box. The book most recently put in the box is the first one to be taken out. The book at the bottom is the first one to be put inside the box and the last one to be taken out.
The characteristics of stacks are:
1.  Data can only be inserted on the top of the stack.
2.  Data can only be deleted from the top of the stack.
3.  Data cannot be deleted from the middle of the stack. All the items from the top
     first need to be removed.
The following two basic operations can be performed on a stack:
1.  PUSH
2.  POP
When you insert an item into a stack, you say that you have pushed the item into the stack. When you delete an item from a stack, you say that you have popped the item from the stack.



==========================================================================
Q. John has been assigned a task to develop a code to implement preorder traversal of a binary tree. He has developed the code according to the following algorithm:
preorder (root)
1. If (root = NULL):  
     a. Exit.
2. preorder (left child of root).
3. Visit (root).
4. preorder (right child of root).

Analyze the algorithm and check if the same will execute as expected. Suggest changes, if required. Also, write the algorithm for postorder traversal of a binary tree.
==
Ans.
The given algorithm is incorrect. The algorithm for preorder traversal of tree is:
preorder (root)
1. If (root = NULL):  
     a. Exit.
2. Visit (root).
3. preorder (left child of root).
4. preorder (right child of root).

The algorithm for postorder traversal of a tree is:
postorder (root)
1. If (root = NULL):  
     a. Exit.
2. postorder (left child of root).
3. postorder (right child of root).
4. Visit (root).
===========================================================================
Q.  Explain stack with the help of an example. What are the characteristics of a stack? Briefly explain the operations that can be performed on a stack?
==
Ans.
A stack is a collection of data items that can be accessed at only one end, which is called top. This means that the items are inserted and deleted at the top. The last item that is inserted in a stack is the first one to be deleted. Therefore, a stack is called a Last-In-First-Out (LIFO) data structure.
A stack is like an empty box containing books, which is just wide enough to hold the books in one pile. The books can be placed, as well as removed, only from the top of the box. The book most recently put in the box is the first one to be taken out. The book at the bottom is the first one to be put inside the box and the last one to be taken out.
The characteristics of stacks are:
1.  Data can only be inserted on the top of the stack.
2.  Data can only be deleted from the top of the stack.
3.  Data cannot be deleted from the middle of the stack. All the items from the top
     first need to be removed.
The following two basic operations can be performed on a stack:
1.  PUSH
2.  POP
When you insert an item into a stack, you say that you have pushed the item into the stack. When you delete an item from a stack, you say that you have popped the item from the stack.
==================================================================
Q.  Explain briefly how can you represent a binary tree?
==
Ans..
To represent a binary tree, you need to declare two classes:
•A class to represent a node of the tree: This class represents the structure of each node in a binary tree. A node in a binary tree consists of the following parts:
?Information: It refers to the information held by each node in a binary tree.
?Left child: It holds the reference of the left child of the node.
?Right child: It holds the reference of the right child of the node.


•A Class to represent the binary tree: This class implements various operations on a binary tree, such as insert, delete, and traverse. The class also provides the declaration of the variable/pointer root, which contains the address of the root node of the tree.

==============================================================================

Read More »

Sem4 MT6

1.Define the following terms:
Purchase Order
Delivery Challan
Rejection Note
Goods Received Note
Goods Inwards Note
Ans:
i)Purchase Order - A document from the customer to the seller listing the required items and providing a description of the goods.
ii)Delivery Challan - A document that is sent with the shipment of goods. It lists the description, and quantity of the goods that are delivered.
iii)Rejection Note - A document that lists the materials that are rejected due to defects found during quality inspection. The reason of rejection is also included.
iv)Goods Received Note - A document that acknowledges that the materials have been inspected and accepted by the manufacturer.
v)Goods Inwards Note - A document that records the entries of the materials when they are received at the store of the organization.




2.Identify the various criteria for classifying an organization and discuss them in detail.
Ans:
An organization consists of a group of people working specifically to achieve a common goal. Organizations can be classified on the basis of nature of work, profitability, type of system, and ownership

i)Based on the Nature of Work:
Organizations can be classified depending on their nature of work as:

a)Manufacturing-based: Business organizations involved in producing tangible goods or products are called manufacturing organizations. b)Automobile manufacturing companies, iron and steel plants, and food and beverage processing units are examples of manufacturing organizations.
c)Service-based: Business organizations involved in providing services to other businesses or people, rather than producing tangible goods, are called service-based organizations. Airlines, hotels, hospitals, banks, and insurance agencies are examples of service organizations.
Based on Profitability:

ii)Organizations may be classified on the basis of their focus on profit. These organizations can be:

a)Profit-based organizations: The primary goal of these organizations is to increase their profit margin. These organizations try to increase the value of their share by increasing the value of the company stock.
b)Nonprofit-based organizations: These organizations do not have profit as their primary goal. They are usually involved with socially relevant issues. Some examples of nonprofit organizations include social groups, universities, human rights commissions, and worker unions.

iii)Based on the Type of System:
Based on the type of system an organization implements, it can be classified as simple or complex and adaptive or nonadaptive.

a)Simple or complex: A simple system consists of a lesser number of elements that interact with each other in a simple and uncomplicated manner. An eating joint is an example of a simple system, wherein the customer places an order, the ordered food is prepared, and the food is served to the customer.  Components in a complex system have a high level of interaction with each other. A car manufacturing organization is an example of a complex system.
b)Adaptive or nonadaptive: An adaptive organization is one that is able to change in response to the changes in the environment. For example, the fashion and cosmetics industries are highly dependent on external stimuli. A nonadaptive organization is one that is not able to change easily in response to external stimuli. For example, the automobile industry needs to take many factors into account before deciding on a change. These factors may include the cost of manufacturing a modified product or the availability of raw materials.

iv)Based on Ownership:
On the basis of the nature of ownership, business organizations can be classified into the following types:

a)Sole proprietorship: When one individual heads a business organization, it is said to be sole proprietorship.
b)Partnership: A partnership organization has two or more individuals conducting the business together. Corporation: A corporation is a legal entity conducting business with numerous owners.





3.Explain the following terms briefly:
Test case
Collaboration
Generalization
Job shops
Batch processing
Ans:
i)Test case: A test case is a set of actions that is executed to examine whether or not the implemented code of the software system complies with the requirements stated by the customer. This helps you to validate the system functionality against system requirements. A test case developed for a particular function of the software system includes a set of test input, execution conditions, and expected results.
ii)Collaboration: UML provides specific modeling constructs, known as collaborations, to model a use case realization in the design phase. Collaboration is a collection of classes, interfaces, and sub-systems that interact with each other to achieve the functions of a use case. It can be represented by creating an oval with a dotted line.
iii)Generalization: The generalization relationship exists among the actors or use cases that have similar behavior and properties. Two actors or use cases are said to have a generalization relationship when the characteristics of one actor or use case can be derived from the characteristics of another actor or use case.
iv)Job shops: The Job shop production process involves the manufacturing of a wide variety of products in small numbers for a specific customer requirement. This production process is used to make a higher number of products as compared to projects. Job shops require general-purpose equipment that is flexible, because every product goes through a different sequence of processes. In job shops, resources are sometimes overloaded, while at other times, they may be idle. Examples of a job shop include manufacturing of special items, such as furniture.
v)Batch processing: The batch processing production process involves large-scale manufacturing of products on the same equipment. Every new product incurs additional setup costs that can be reduced by manufacturing more units in each cycle. Products are stocked and supplied based on customer demand. Batch processing caters to those products that are generic in nature. Therefore, general-purpose equipment is used. The process does not undergo many changes, but skilled workers are required to perform tasks. Examples of batch processing include book publishing, garment manufacturing, and pharmaceutical production.






4.Describe the class diagram and class notations used in UML. Explain the visibility of attributes and operations in a class diagram. Explain the syntax of attributes and operations in class diagrams.
Ans:
Class diagram and class notations used in UML

A class diagram is used to create a structural model of a software system. The structural model describes the static architecture of a system and helps the software developer to translate the system use cases into system design.

 UML provides a class notation to represent classes in class diagrams. The class notation has three compartments where the first compartment depicts the name of the class, the second compartment depicts the attributes of the class, and the third compartment depicts the operations of the class.You can use class notations to document the design of a system in accordance with the requirements identified during the requirements analysis phase.
Visibility of attributes and operations

It is vital to ensure that the data of your classes remain secure. For this, UML allows you to specify the visibility of the class attributes and operations, which controls the accessibility of these class members from other classes. UML provides the following four visibilities for the attributes and operations of a class:

i)+: Indicates that the attribute or operation is accessible to other classes. In other words, the attribute or operation is public.
ii)-: Indicates that the attribute or operation is inaccessible to other classes. In other words, the attribute or operation is private.
iii)#: Indicates that the attribute or operation in the base class is accessible to derived classes. In other words, the attribute or operation is protected.
iv)~: Indicates that the attribute or operation is accessible to the classes, which are within the same package.
Syntax of attributes in class diagrams

The attributes of a class follow certain syntax in the class diagrams. The syntax to depict an attribute in a class diagram is:

visibility name: type

The preceding syntax contains the following mandatory fields:

i)visibility: Specifies whether the attribute of the class is private, public, protected, or package.
ii)name: Indicates the name of the attribute. This is a mandatory field.
iii)type: This is an optional field. It specifies the data type of the attribute.
For example, the Name attribute of the Employee class can be represented as:

-Name: String

Syntax of operations in class diagrams

The syntax to represent an operation of a class in the class diagrams is:

visibility name (parameter-list): return-type

The preceding syntax contains the following fields:

i)visibility: Specifies whether the operation of the class is private, public, protected, or package.
ii)name: Indicates the name of the operation.
iii)parameter-list: Indicates the list of parameters for the operat.
iv)return-type: Represents the data type of the value returned by the operation. This field can take the null value when the operation does not return any value.
The parameters of an operation are denoted using the following syntax:

Parameter name: type

For example, the getName() operation of the Employee class can be represented as:

+getName(EmpId : int) : string







5.What is meant by logistics? Explain the activities involved in logistics planning (any two) in detail.
Ans:
Logistics is a business-planning framework. It involves planning for the movement and storage of materials and information from any point in the operational process to the final order-fulfillment stage. Organizations thrive on the effectiveness and efficiency of their operational strategies. An efficient logistics plan supports in implementing the organizational processes, such as production and sales and marketing, effectively.

Logistics planning involves the following activities:

Analyzing the core business processes

Analysis of the core business processes of an organization is important as the logistics activities differ depending on the nature of the business undertaken by an organization.

Some of the general processes for a typical manufacturing-based business organization include:

i)Purchasing of material
ii)Receiving the material
iii)Warehousing
iv)Controlling the inventory
v)Handling the material
vi)Shipping
vii)Making decisions for physical distribution

The distribution of products is an important activity for an organization and its customers. For example, in a manufacturing organization, the goods are typically moved from the Production department to the warehouses, where they are stored until they are sent to the dealers.
The main factors to be considered while making decisions for the physical distribution are:

The size, number, and location of warehouses
The mode of transport depending on the type of goods, distances, and weights
The work force to be employed or hired.
Deciding the location of facilities:

Whenever an organization wants a new factory, warehouse, shop, office or other facilities, it is important to identify a strategic location.

Most organizations evaluate the feasibility of the location of a facility, such as a production plant, based on the factors, such as:

i)The locations of competitors, suppliers, and customers
ii)Availability of skilled workforce in the area
iii)Costs pertaining to operations, wages, transport, and taxes
iv)Transport and services availability
v)Plans regarding future expansion, or globalization






6.What is a state machine diagram? Explain its various components.
Ans:
Before developing a software system, a developer must understand the various states through which a component goes from its creation to termination. For this, UML provides a state machine diagram. A state machine diagram represents the various states that an object goes through during its lifecycle in response to events. You need to model the behavioral aspects of a system by using state diagrams. Therefore, you create a state diagram for the objects that respond to events. The various constituents of a state diagram are states, events, and transitions.

i)A state depicts a condition of an object and the activities of an object during its lifecycle. An initial state is the starting state of an object and is represented as a dot. A final state is the end state of an object and is represented as a dot encircled by a ring.
ii)An event is an occurrence that triggers a change of state of an object. It signifies the receipt of a message that requests for an operation to be performed.
iii)A transition is a change of state of an object due to the occurrence of an event. For example, the state of customer complaint transitions from Open to Closed when the Complaint Resolved on Phone event occurs. Similarly, the state transitions from Open to Waiting when the Complaint Not Resolved on Phone event occurs and from Waiting to Closed when the Complaint Resolved Onsite event occurs.







7.What is a product? Explain the product life cycle in detail.
Ans:
A product is an article or a substance that is manufactured or produced by a company for sale. The main objective of a product is to make the customer feel satisfied or benefited after the purchase of the product. Before marketing a product, it is important to understand the life cycle of a product in the market. When a product is launched, the demand for it varies with time. There are different stages through which the product passes when it is introduced in the market. These stages comprise the product life cycle. The life cycle of a product starts when it is launched in the market till the time it remains in the market. This life cycle helps organizations in analyzing the product's impact on the organization's market share. The different stages of a product life cycle are: introduction, growth, maturity, and decline.

i)Introduction: This is the first stage when the product is introduced in the market. The main focus of the organization at this stage is to make the customer aware of the product and its benefits. For this, organizations invest more in advertising and other promotional strategies. The focus is not on revenue generation.
ii)Growth: At the growth stage, once the product is established in the market, more retailers and customers are attracted to it. At this stage, the organization maintains the quality and price of the product to attract more customers. This results in profits for the organization.
iii)Maturity: At the maturity stage, the sale of the product first reaches saturation in the market. The distribution of the product reaches to the fullest in the market, leaving minimum demand for the product. Thereafter, its sale starts declining. The primary goals of an organization at this stage are to maintain the market share and promote the product by differentiating it from competitors? product.
iv)Decline: At the decline stage, there is a rapid increase of competing products that may be better in quality and low in price. As a result, sales start declining and production volumes need to be reduced. The primary goal of an organization at this stage is to try maintaining the sale of the product by adding new features and reducing the cost. However, if the product is still incurring loss, the organization may discontinue the product.







8.What is meant by logistics? Explain the activities involved in logistics planning (any two) in detail.
Ans:
Logistics is a business-planning framework. It involves planning for the movement and storage of materials and information from any point in the operational process to the final order-fulfillment stage. Organizations thrive on the effectiveness and efficiency of their operational strategies. An efficient logistics plan supports in implementing the organizational processes, such as production and sales and marketing, effectively.

Logistics planning involves the following activities:

i)Analyzing the core business processes

ii)Analysis of the core business processes of an organization is important as the logistics activities differ depending on the nature of the business undertaken by an organization.

Some of the general processes for a typical manufacturing-based business organization include:

i)Purchasing of material
ii)Receiving the material
iii)Warehousing
iv)Controlling the inventory
v)Handling the material
vi)Shipping
vii)Making decisions for physical distribution

The distribution of products is an important activity for an organization and its customers. For example, in a manufacturing organization, the goods are typically moved from the Production department to the warehouses, where they are stored until they are sent to the dealers.
The main factors to be considered while making decisions for the physical distribution are:

i)The size, number, and location of warehouses
ii)The mode of transport depending on the type of goods, distances, and weights
iii)The work force to be employed or hired.
Deciding the location of facilities:

Whenever an organization wants a new factory, warehouse, shop, office or other facilities, it is important to identify a strategic location.

Most organizations evaluate the feasibility of the location of a facility, such as a production plant, based on the factors, such as:

i)The locations of competitors, suppliers, and customers
ii)Availability of skilled workforce in the area
iii)Costs pertaining to operations, wages, transport, and taxes
iv)Transport and services availability
v)Plans regarding future expansion, or globalization






9.Explain the various stages of marketing process.
Ans:
The stages of the marketing process are analyzing the need for a product, deciding upon the marketing strategy, implementing the marketing strategy, and monitoring the product.

i)Analyzing the need for a product: While analyzing the need for a product, organizations need to analyze the customer's requirements and its own capabilities to manufacture a product. While planning for the marketing strategy for a product, an organization must analyze whether it has sufficient funds to be able to manufacture and get sufficient returns.
ii)Deciding upon the marketing strategy: After the analysis of the customer requirements and market trends, an organization needs to decide upon its marketing strategy. This strategy requires a decision on the marketing mix as well as a target market for which the marketing mix is prepared. The marketing mix consists of variables that marketing managers can control in order to best satisfy customers in the target market.
iii)Implementing a marketing strategy: The plan prepared at the decision stage of the marketing process is implemented at this stage. The product is launched in the market and the planned promotional strategies are implemented to ensure customer awareness and sale of the product. The launch of a product includes the following activities:
a)Product performance is evaluated through tests and quality checks.
b)Final packaging is designed and ordered.
c)Sales channels are identified and established.
d)Product feedback is updated based on market feedback and analysis.
e)Product documentation is completed and finalized.
f)User documentation, operating manuals, advertisement materials, product brochures, marketing materials, press releases, website pages, and maintenance instructions are completed and ready to be distributed at the appropriate time.
g)A Production Readiness Review document is prepared. This document confirms that all preparations are completed and the product is ready for launch.
h)The new product is launched when the service, sales, and distribution channels are ready.
iv)Monitoring the product: The task of the marketing team does not get over with the launch of the product in the market. At this stage, an organization needs to collect regular feedback from customers regarding their likes, dislikes, and suggestions for improvement of the product.  At this stage, competitors and their similar products need to be monitored closely and the marketing strategy may need to be modified accordingly.







10.What is structural modeling? List any three UML diagrams for structural modeling and explain them briefly.
AnsUML provides various modeling techniques to represent the framework of a software system. Each modeling technique contains a set of diagrams to represent the requirements and structure of the software system. The UML modeling techniques may be used for structural modeling and behavioral modeling. Structural modeling involves depicting the static features of the software system. It is used to represent how the components or elements exist in a system.

The various UML diagram for structural modeling are:

i)Class diagram: A class diagram represents a set of classes, interfaces, and their relationships. It describes the set of attributes and operations associated with each class and the relationships among the various classes.
ii)Object diagram: An object diagram represents an instance of a class diagram. It represents the properties of a particular instance of a class.
iii)Package diagram: A package diagram represents the interrelated classes and interfaces of the system in a package.  It helps in representing the various packages of a software system and the dependencies between them. It also gives a high-level impression of use case and class diagrams.
iv)Component diagram: A Component diagram combines packages or individual entities to form components. You can depict these components and their dependencies by using a component diagram.
v)Deployment diagram: A deployment diagram shows the physical placement of components in nodes over a network. A deployment diagram can be drawn by identifying nodes and components.







11.Explain the concept of production planning in brief. Discuss in detail about the MRP phase of production planning.
Ans:
Production planning is an integral part of the production process. It is the first step in the production process. Every manufacturing-based organization performs a set of operations for producing finished goods. Each operation in the production process of an organization must be systematically designed, planned, organized, and controlled.

Production planning:

i)Helps organizations to develop and implement strategies so that cost-effective goods are produced with minimum resources.
ii)Involves the systematic scheduling of workers, materials, and machines for manufacturing products efficiently, economically, and timely.

The different phases of production planning are:
1. Material requirement planning (MRP)
2. Selecting the production process

MRP is an inventory control process used to calculate the amount of raw materials required to manufacture a specific product. MRP involves reviewing the stock quantity of raw materials according to the quantity of products to be manufactured in a specific period. It then involves calculating the quantity of components and materials required to manufacture those items and identifying the supply of materials required for the scheduled production. MRP involves planning work orders and purchase requisitions and suggesting appropriate rescheduling of the current material plan by taking into account the actual delivery date of a product.
The main inputs of MRP are:
i)Master Production Schedule (MPS) shows the quantity of products to be manufactured in a specific period. It is a detailed manufacturing plan that determines the products a manufacturer has to produce within predefined timelines. During MRP, the estimated plan provided by MPS is translated into a detailed plan that specifies the schedule for material requirement and delivery.
ii)Bill of Materials (BOM) consists of the materials, parts, and components that are required to manufacture the product. During MRP, the BOM and MPS are used to calculate the amount of each material required.
The lead-time is the time between the placement of an order for a product and the actual date of delivery. Determining lead-time of raw materials is essential for a manufacturing company so that the finished goods can be delivered to the customer in a timely manner and any shortages can be handled before the production process starts.
iii)Inventory records provide a detailed list of all the items that are currently in stock. The information is stored in a tabular format. MRP uses these existing inventory records to calculate the net quantity of materials required from the supplier. The net quantity required is calculated by subtracting the existing inventory from the total materials required as per MPS.
The main outputs of MRP are:
i)Schedule for Orders: It provides guidelines to place an order depending on the lead-time.
ii)Purchase Orders: It is a buyer's document and is used to formalize a purchase transaction with a supplier. On acceptance by the supplier, it becomes a legally binding contract between the two parties and hence, it must specify all terms and conditions applicable to the contract.
iii)Reports: The information from MRP is processed to generate various reports, such as performance reports and inventory transactions.
Read More »

windows app lab@home

1.Ultima Computers is a company with a reputation of providing quality financial software products. Having consistently made profits for the past five years, the company is diversifying into other areas.

Ultima Computers is a company with a reputation of providing quality financial software products.
Having consistently made profits for the past five years, the company is diversifying into other
areas. Ultima acquires a project from Sunny Hills Resorts, a company that owns and operates
resorts globally.
Sunny Hills Resorts wants Ultima to develop a web-based payroll application. Therefore, the
systems analyst of Ultima gathers the requirements from the Assistant Vice-President (Finance) at
Sunny Hills. The developers at Ultima apply their experience of developing financial software to
the development of the new product. The application is developed before the deadline, and it is
found to be bug-free during the internal testing. Further, the application is deployed over the
Internet so that the users from all the branches of Sunny Hills Resorts can access it.
After the initial use, the following feedback comes in from all branches of Sunny Hills:
The site can be viewed properly at most of the workstations in the company. However, several
old computers in remote branches do not display the Web pages in their entirety. The
investigation reveals that some computers can only support a 640x480 resolution. Because the
website was built with an assumption that computers supporting an 800x600 resolution would be
available, the pages on the website did not fit into the display area of the monitors.
The same old computers were found to be able to support only 16 colors. Because the color
palette used for building the site had 216 colors, colors appear frayed on these computers.
Users in many branches have complained that each page on the website takes two to five
minutes to load. Investigations reveal that 75 percent of the branches have a bandwidth of less
than 128 kbps, and there are several users, who often share the link during the day.
Most users of the application are unable to find the information related to leave data of the
employees. The few users who did find the link had to go through five screens to reach it.
Many users have said that they could never identify the buttons and links, which are active, and
the ones, which are inactive. As a result, they click the buttons and links repeatedly until they get
frustrated and give up.
To resolve these issues, Ultima has to rework to design a more user-friendly application. The
project cost increases by 50 percent and Ultima faces a heavy loss.
Identify the possible causes behind the problems in the application. In addition, state the problems
and justify how these problems could have been averted.
  

Solution:::::::::::::


The following table describes the problems in the application and their causes.
Problem
Cause
Difficulty in viewing the Web pages in entirety.
The possibility of a low screen resolution on the client monitor was not considered while designing the interface. If this possibility were considered, the Web pages in the site could have been viewed in entirety.
Appearance of frayed colors on the monitors
The infrastructure limitation was not considered while designing the application, which was designed by using a 216-color palette. In the case of applications that provide graphical user interface, it is wise to use the color palette in such a way that the colors do not appear frayed.
High download time for pages in remote locations
Bandwidth problems were not considered at the time of designing the website. While designing a website for areas with low bandwidth, the designer should ensure that the page does not contain many colors and graphics, which can make the page heavy to load.
Inaccessibility of functionalities
In the requirement analysis phase, the end users were not involved and their requirements were not gathered. In addition, the interaction was not designed in a way that could have helped users access the key functionalities on the home page or with 2-3 clicks.
User frustration due to repetitive clicks
The application does not disable the buttons or links that are not active at a particular point of time, thereby misleading the users to click them repetitively. Moreover, it does not give any feedback to the users if they click an inactive link or a button or not.
The Problems in the Application and Their Causes
To avoid the preceding problems, a systematic interaction design process should have been followed. The end users of the application should have been involved in all the phases of the development process. In addition, the requirements should have been gathered by studying the current system of the organization.

2.BookTreasure Inc. is a huge library containing more than 1 million books and more than 1000 members. Managing the records of these books and members manually is becoming a difficult task

BookTreasure Inc. is a huge library containing more than 1 million books and more than 1000
members. Managing the records of these books and members manually is becoming a difficult
task. Therefore, the management of library wants to automate the library management system.
The automated system should allow the members of the library to search a specific book and
check its availability by using an online catalogue. The system should also allow the library staff to
accomplish the following tasks:
Issue a book
Return a book
Add a member
Remove a member
Add a book
Remove a book
Generate reports
While developing the preceding application, Jim Brown, an application developer, divides the
application in the following modules:
Search for a book
Issue a book
Return a book
Add a book to the library database
Further, he creates the following interaction designs for the preceding modules:
Search for a book module.
The Interaction Design for the Search for a Book Module
Issue a Book module.


The Interaction Design for the Issue a Book Module
Return a Book.
The Interaction Design for the Return a Book Module
Add a Book module.
The Interaction Design for the Add a Book Module
Analyze the preceding designs and identify the problems. Further, suggest solutions for the
identified problems.

Read More »