Function anatomy  Function name  Parameters Declaration Body,  Invocation/call  Arguments Difference between Argument and ...

Function anatomy 

  • Function name 
  • Parameters
  • Declaration
  • Body, 
  • Invocation/call 
  • Arguments


Difference between Argument and Parameter?

A parameter is variable in the declaration of the function. While An argument is the actual value of this variable that gets passed to function.

NokiaMobile.jave (Interface) public interface NokiaMobile {     public void price();     public void label(); } ...




NokiaMobile.jave (Interface)


public interface NokiaMobile {
    public void price();
    public void label();
}


NokiaLumia.java ( Which will implement the interface)

public class NokiaLumia implements NokiaMobile {
   
    @Override
    public void price()
    {
        System.out.println("50,000");
    }
   
    @Override
    public void label()
    {
        System.out.println("Nokia Lumia L8");
    }
}


NokiaWindowPhone .java ( Which will implement the interface)

public class NokiaWindowPhone implements NokiaMobile{
   
    @Override
    public void price(){
        System.out.println("32,000");
    }
   
    @Override
    public void label(){
        System.out.println("Nokia Window Phone");
    }
   
}

NokiaMobileFactory.java

public class NokiaMobileFactory {
   
    public NokiaMobile getMobile(String mobile)
    {
        if(mobile==null)
        {
            return null;
        }
        else if(mobile.equalsIgnoreCase("Window Phone"))
        {
            return new NokiaWindowPhone();
        }
        else if(mobile.equalsIgnoreCase("Lumia Phone"))
        {
            return new NokiaLumia();
        }  
        return null;  }  }




Factory.java


public class Factory {

    public static void main(String[] args) {
       
        NokiaMobileFactory mobile = new NokiaMobileFactory();
       
        
        NokiaMobile lumia = mobile.getMobile("Lumia Phone");
        lumia.label();
        lumia.price();
       
        System.out.println("-----------------");
       
        NokiaMobile window = mobile.getMobile("Window Phone");
        window.label();
        window.price();
       
        System.out.println("-----------------");
      
    }
}

Source Code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing...


Source Code


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DynamicSize
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int size = Int32.Parse(textBox1.Text);

            int[] arr = new int[size];
            int i;
            for (i = 0; i < arr.Length; i++)
            {
                string values = Microsoft.VisualBasic.Interaction.InputBox("Enter Value", "Input", "0", 200, 200);

                int val = Int32.Parse(values);

                arr[i] = val;
             
            }

            int k;

            if (radioButton1.Checked)
            {
                listBox1.Items.Clear();
                for (i = 0; i < arr.Length; i++)
                {
                    for (k = i + 1; k < arr.Length; k++)
                    {
                        if (arr[i] < arr[k])
                        {
                            int temp = arr[k];
                            arr[k] = arr[i];
                            arr[i] = temp;
                        }
                    }
                    listBox1.Items.Add(arr[i]);
                }
            }

            if (radioButton2.Checked)
            {
                listBox1.Items.Clear();
                int l,m;
                for ( l = 0; l < arr.Length; l++)
                {
                    for (m = l + 1; m < arr.Length; m++)
                    {
                        if (arr[l] > arr[m])
                        {
                            int temp2 = arr[m];
                            arr[m] = arr[l];
                            arr[l] = temp2;
                        }
                    }

                 
                    listBox1.Items.Add(arr[l]);
                }
            }
        }
    }
}

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System...


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace checkNumbers
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int startVal = Int32.Parse( textBox1.Text);
            int endVal = Int32.Parse(textBox2.Text);

            if (radioButton1.Checked)
            {
                listBox1.Items.Clear();
                for (int i = startVal; i <= endVal; i++)
                {
                    if (i % 2 == 0)
                    {
                        listBox1.Items.Add(i);
                    }
                }
            }

            if (radioButton2.Checked)
            {
                listBox1.Items.Clear();
                for (int i = startVal; i <= endVal; i++)
                {
                    if (i % 2 == 1)
                    {
                        listBox1.Items.Add(i);
                    }
                }
            }

            if (radioButton3.Checked)
            {
                int i, j;
                listBox1.Items.Clear();
                for (i = startVal; i <= endVal; i++)
                {
                    for (j = 2; j <= i; j++)
                    {
                        if (i % j == 0)
                        {
                            break;
                        }
                    }

                    if (j == i)
                    {
                        listBox1.Items.Add(i);
                    }
                }
            }


            if (radioButton4.Checked)
            {
                int i, j;
                listBox1.Items.Clear();
                for (i = startVal; i <= endVal; i++)
                {
                    for (j = 2; j < i; j++)
                    {
                        if (i % j == 0)
                        {
                            listBox1.Items.Add(i);
                            break;
                        }
                    }

                   
                }
            }
        }
    }
}

Topics Covered Line of Code (LOC) Function Point Project Estimation Project Risk Management Standards Software Requirement Specificat...

Topics Covered
Line of Code (LOC)
Function Point
Project Estimation
Project Risk Management
Standards
Software Requirement Specification
Project Communication Management
Information Distribution
Project Management with CPM and PERT
Project Human Resource Management
Responsibility assignment matrix

https://drive.google.com/file/d/0B_sXpyrzV8hgb1p1WHdTZEhabUE/view?usp=sharing


http://bit.ly/1P2qkCZ

What are the main flaws and variations in Line of code (LOC) metric? How to mitigate those problems? Flaws and Variations of LOC: ·   ...

What are the main flaws and variations in Line of code (LOC) metric? How to mitigate those problems?
Flaws and Variations of LOC:
·         Count of physical lines including blank lines.
·         Countof all lines except blank lines and comments.
·         Count of all statements except comments.
·         Count of all lines except blank lines, comments, declarations and headings.
·         Count of only executable statements, not including exception conditions.
·         It is highly dependent on the programming language used as code writing varies from one programming language to another. For example, lines of code written (for a large program) in assembly language are more than lines of code written in C++. 
·          One of the problems with text-based definition of length is that the line of code measurement is increasingly less meaningful as software development turns to more automated tools, such as: Tools that generate code from specifications Visual programming tools

Disadvantages:
·         Vague definition
·         Language dependability
·         Not available for early planning
·         Developers’ skill dependability

What is standard?  Write down the standard format of DOD Data Item Descriptions (DIDs) in table form.
      The rules which are universally or widely accepted, agreed upon, or established means of determining what something should be. Major classifications of this term include:
Ø   Material or substance whose properties are known with a level of accuracy that is sufficient to allow its use as a physical reference in calibrating or measuring the same properties of another material or substance.
Ø   Concept, norm, or principle established by agreement, authority, or custom, and used generally as an example or model to compare or measure the quality or performance of a practice or procedure.
Ø  Written definition, limit, or rule approved and monitored for compliance (acting according certain accepted standard) by an authoritative agency (or professional or recognized body) as a minimum acceptable benchmark (standard by which something can be measured or judge).

DOD Data Item Description Standards
Data requirements title
1. System segment design document
2. Software development plan
3. Software requirements specification
4. Interface requirements specification
5. Interface design document
6. Software design document
7. Software product specification
8. Version description document
9. Software test plan
10. Software test description
11. Software test report
12. Computer system operator's manual
13. Software user's manual
14. Software programmer's manual
15. Firmware support manual
16. Computer resources integrated support document
17. Engineering change proposal
18. Specification change notice

Distinguish between Adjusted and Unadjusted Function Point.

Adjusted Function Point:
The Function Point Analysis technique is used to assess the functionality delivered by software and a 'function point' is the unit of measurement.
    Adjusted FP Count = Unadjusted FP Count * VAF

Unadjusted Function Point:
The process of performing Function Point Analysis is called a 'Function Point Count' and it involves the identification, classification and weighting of each of these transactions and data components. The weightings are combined to give the functional size as an Unadjusted Function Point Count.


The final Function Point Count is obtained by multiplying the VAF times the Unadjusted Function Point (UAF). FP = UAF * VAF. Summary of benefits of Function Point Analysis. Function Points can be used to size software applications accurately. Sizing is an important component in determining productivity (outputs/inputs)



Your Software Company got a project from the sale company for the development of the website to manage their visitors. They also want to k...

Your Software Company got a project from the sale company for the development of the website to manage their visitors. They also want to keep track of their frequent visitors for sales follow up. A small team which consists of website manager, web developer, content administrator, web administrator and sales manager will develop and manage this project. the activities that you perform are Project planning, Website construction, Content review, Usability testing, Installation of tracking software, Ongoing review of visitors and Sales follow up to frequent users respectively. Following are the given scale that you will use:
R=Responsible, C=Consulted, A=Accountable, I=Informed.
You have to create a responsibility assignment matrix by using the above scale, task and development team. In simple words you have to map the work of the project to the peoples responsible for performing that work using the given scale.

Answer

·         Team for this project consists
o   Website manager
o   Web developer
o   Content administrator
o   Web administrator
o   Sales manager will develop and manage this project.

·         The activities to be perform are 
o   Project planning
o   Website construction
o   Content review
o   Usability testing
o   Installation of tracking software
o   Ongoing review of visitors
o   Sales follow up to frequent users respectively.

 Following are the given scale that you will use

  • Responsibility = role is responsible for actually doing or completing the item
  • Accountable = role is accountable for ensuring that the item is completed. Usually only one person.
  • Consulted = role whose subject matter expertise is required in order to complete the item
  • Informed = role that needs to be kept informed of the status of item completion