Posts

Showing posts from October, 2011

MATLAB False Positioning Code

function false_positioning(f,p0,p1,eps,n)     for i=1:n         x = p0;f0=eval(f);         x = p1;f1=eval(f);         p2 = p1-f1*(p1-p0)/(f1-f0);         x = p2;f2 = eval(f);         if(f2*f0<0)             p1=p2;         else             p0=p2;         X=[i,p0,f0,p1,f1,p2,f2];         disp(X);         if(abs(f2)             break;         end               end     end end

C#'s Calulator 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 Calculator {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         bool plus, minus, mul, div, equal= false;         private void button12_Click(object sender, EventArgs e)         {             equal = true;             if (plus)             {                 decimal dec = Convert.ToDecimal(txtboxscr.Tag) + Convert.ToDecimal(txtboxscr.Text);                 txtbo...

Software Engineering 28-10-11

Next week submission 1.Project proposal. 2.Fesibility study. Individual project presentation next week Automated software testing tool next week mid-term part-a of marks 15 TODAY'S LECTURE TESTING: Testing is a process in which we do two tasks: 1.Verification(functional requirnment). 2.Validation(process of conformation). Types of testing: 1.Static testing(as for standard). 2.Dynamic testing(different method of testing are applied). Test Plan: 1.Responsibility assignment to someone. 2.Assumptions for testing enviornment. 3.Test(Testing starts from here). Risk analysis: See on internet. Reporting Standards: 1.Show stopper(errors that stops the working of a software). 2.Critical errors(in which we can continue the testing but it is effecting the testing and its functions). 3.Major errors(they are also critical error but they are not fulfilling the bussiness requirnment). 4.Medium errors(Minimum errors ).  5.Minor errors(low level errors). Types of test...