www.kolmyr.com
Thursday, 13 December 2012
Tuesday, 11 December 2012
Saturday, 8 December 2012
Sample Cover Letter - Internship
Sample Cover Letter -
Internship
FirstName LastName
Name University
Street
City, State Zip
cell: 555-555-5555
Date
Name
Job Title
Company
Street
City, State Zip
Dear Ms. LastName,
I am interested in
applying for the scientific research summer internship position that was listed
through the Name Tauxff Career Services Office.
I have had a great
deal of laboratory experience in chemistry, biology, and geology, both indoors
and in the field. In the lab, I have performed chemical reactions and I am
currently using microscopes to observe many specimens. In environmental field
studies, I have conducted outdoor labs to assess water chemistry.
Last summer, I worked
as conservation assistant at XXX National lab. I am seeking to complement this
outdoor experience with a research internship in order to acquire the
background necessary for a future career in scientific research.
I believe that I
would an asset to your program. This internship would provide me with the ideal
opportunity to assist at your organization and to expand my research skills.
I will call next week
to see if you agree that my qualifications seem to be a match for the position.
If so, I hope to schedule an interview at a mutually convenient time. I look
forward to speaking with you.
Thank you for your
consideration.
Sincerely,
Signature
FirstName Last
Friday, 7 December 2012
Add,Subtract,Multiply,Divide two number in Java
import java.awt.*;
import java.awt.event.*;
class IFrame extends Frame
{
Label l1;
Label l2;
Label l3;
Label l5;
Label l6;
final TextField t1;
final TextField t2;
final TextField t3;
IFrame()
{
super("IDE to Add Values");
setSize(500,300);
setVisible(true);
setBackground(Color.ORANGE);
Panel p=new Panel();
l1=new Label("Enter first Value");
l2=new Label("Enter second Value");
l3=new Label("RESULT");
l5=new Label(" ");
l6=new Label(" ");
t1=new TextField(5);
t2=new TextField(5);
t3=new TextField(5);
Button b1=new Button("CLOSE");
Button b2=new Button("ADD");
Button b3=new Button("SUBTRACT");
Button b4=new Button("MULTIPLY");
Button b5=new Button("DIVIDE");
Button b6=new Button("CLEAR");
p.setLayout(new GridLayout(7,2));
p.add(l1);
p.add(t1);
p.add(l2);
p.add(t2);
p.add(l3);
p.add(t3);
p.add(b2);
p.add(b1);
p.add(b3);
p.add(b6);
p.add(b4);
p.add(l5);
p.add(b5);
p.add(l6);
add(p,BorderLayout.CENTER);
b1.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
System.exit(0);
}});
b2.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
String s1=t1.getText();
String s2=t2.getText();
int x=Integer.parseInt(s1);
int y=Integer.parseInt(s2);
int z=x+y;
String s3=" "+z;
t3.setText(s3);
((Component)e.getSource()).setBackground(Color.PINK);
}});
b3.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
String s1=t1.getText();
String s2=t2.getText();
int x=Integer.parseInt(s1);
int y=Integer.parseInt(s2);
int z=x-y;
String s3=" "+z;
t3.setText(s3);
((Component)e.getSource()).setBackground(Color.GREEN);
}});
b4.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
String s1=t1.getText();
String s2=t2.getText();
int x=Integer.parseInt(s1);
int y=Integer.parseInt(s2);
int z=x*y;
String s3=" "+z;
t3.setText(s3);
((Component)e.getSource()).setBackground(Color.GREEN);
}});
b5.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
String s1=t1.getText();
String s2=t2.getText();
int x=Integer.parseInt(s1);
int y=Integer.parseInt(s2);
int z=x/y;
String s3=" "+z;
t3.setText(s3);
((Component)e.getSource()).setBackground(Color.GREEN);
}});
/*b6.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
String s1=t1.getText();
String s2=t2.getText();
t1.setText(NULL);
t2.setText(NULL);
t3.setText(NULL);
((Component)e.getSource()).setBackground(Color.GREEN);
}});*/
}}
class calculator
{
public static void main(String as[])
{
IFrame f=new IFrame();
}}
Student Record in Java with Frame
import java.awt.*;
class a
{
public static void main(String as[])
{
Frame f=new Frame();
f.setSize(200,200);
f.setVisible(true);
Panel p1=new Panel();
Panel p2=new Panel();
p1.setLayout(new GridLayout(7,1));
p2.setLayout(new GridLayout(7,2));
Button b1=new Button("First");
Button b2=new Button("Last");
Button b3=new Button("Next");
Button b4=new Button("First");
Button b5=new Button("Close");
Label l1=new Label();
Label l2=new Label();
Label l1=new Label("Enrollment No");
TextField t1=new TextField();
Label l2=new Label("Label 1");
TextField t2=new TextField();
Label l3=new Label("Father Name");
TextField t3=new TextField();
Label l4=new Label("Gender");
TextField t4=new TextField();
Label l5=new Label("Age");
TextField t5=new TextField();
Label l6=new Label("Phone");
TextField t6=new TextField();
Label l7=new Label("Email");
TextField t7=new TextField();
p1.add(l1);
p1.add(l2);
p1.add(b1);
p1.add(b2);
p1.add(b3);
p1.add(b4);
p1.add(b5);
p2.add(l1);
p2.add(t1);
p2.add(l2);
p2.add(t2);
p2.add(l3);
p2.add(t3);
p2.add(l4);
p2.add(t4);
p2.add(l5);
p2.add(t5);
p2.add(l6);
p2.add(t6);
p2.add(l7);
p2.add(t7);
f.add(p1,BorderLayout.EAST);
f.add(p2,BorderLayout.CENTER);
f.pack();
}}
Calculator in Java
import java.awt.*;
class saqlain
{
public static void main(String as[])
{
Frame f=new Frame("calculator");
f.setVisible(true);
f.setSize(200,200);
Panel p1=new Panel();
Panel p2=new Panel();
p1.setLayout(new GridLayout(4,4,3,2));
p2.setLayout(new BorderLayout(3,3));
Button b1=new Button("7");
Button b2=new Button("8");
Button b3=new Button("9");
Button b4=new Button("+");
Button b5=new Button("4");
Button b6=new Button("5");
Button b7=new Button("6");
Button b8=new Button("-");
Button b9=new Button("1");
Button b10=new Button("2");
Button b11=new Button("3");
Button b12=new Button("*");
Button b13=new Button("0");
Button b14=new Button("=");
Button b15=new Button(".");
Button b16=new Button("/");
Button b17=new Button("Enter your text here");
p1.add(b1);
p1.add(b2);
p1.add(b3);
p1.add(b4);
p1.add(b5);
p1.add(b6);
p1.add(b7);
p1.add(b8);
p1.add(b9);
p1.add(b10);
p1.add(b11);
p1.add(b12);
p1.add(b13);
p1.add(b14);
p1.add(b15);
p1.add(b16);
p2.add(b17,BorderLayout.NORTH);
f.add(p1,BorderLayout.CENTER);
f.add(p2,BorderLayout.NORTH);
f.pack();
}}
Emloyee Record in C++
#include<iostream.h>
#include<conio.h>
#include<process.h>
#include<ifstream.h>
struct employee
{
int code;
char fname[20],lname[20];
float sal;
};
void main()
{
employee edata;
ifstraem efile("c://tc//bin//emp.txt";ios::in/ios::binary);
employee data;
if(!efile){cout<<"file opening error";getche(); exit(0);}
while(efile)
{
efile.read((char*) & edata, size of edata);
cout<<edata.code<<"\t"<<edata.fname<<"\t"<<edata.lname<<"\t"<<edata.sal<<endl;
}
getch();
}
Student GPA in C++
#include<iostream.h>
#include<conio.h>
float gpa(int,int);
float gpa(int om,int tm)
{
float per ,g;
per=float(om)/tm*100;
g=(per>=80?4.00:per>=70?3.5:per>=60?3.0:per>=55?2.5:per>=50?2.0:0.0);
return g;
}
void main()
{
clrscr();
int nc,i,om,tm,ch,tch=0; float g,tg=0;
cout<<"Enter number of cources="; cin>>nc;
for(i=1;i<=nc;i++)
{
cout<<endl<<"Enter obtained marks="; cin>>om;
cout<<endl<<"Enter total marks="; cin>>tm;
cout<<endl<<"Enter credit hours="; cin>>ch;
g=gpa(om,tm);
tg+=g*ch;
tch+=ch;
}
cout<<endl<<"GPA="<<tg/tch;
getch();
}
Student Record in C++
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
struct student
{
int rollno;
char fname[20], lname[20],city[20],dist[20];
long int contect;
char email[30];
};
void main()
{
clrscr();
ofstream efile("d:\\stdnt.txt",ios::out);
student edata;
abc:
cout<<"Enter student record(roll #,f name, lname, city,district,contect# & E-mail)";
cin>>edata.rollno>>edata.fname;
cin>>edata.lname>>edata.city>>edata.dist>>edata.contect>>edata.email;
efile<<edata.rollno<<"\t"<<edata.fname<<"\t"<<edata.lname<<"\t"<<edata.city<<"\t"<<edata.dist<<"\t"<<edata.contect<<"\t"<<edata.email<<"\n";
cout<<"press m for more.........";
char x;
x=getche();
if(x=='m')
goto abc;
getch();
}
Addition of Matrices in C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int m1[20][20],m2[20][20],i,j,r,c,h,v;
cout<<"\t\t\t\tEnter matrix order";
cout<<"\n\n\n\tEnter number of rows="; cin>>r;
cout<<"\n\tEnter number of columns="; cin>>c;
cout<<"\n\tEnter 1st matrix=";
gotoxy(10,5);
v=10;
for(i=0;i<r;i++)
{
h=10;
for(j=0;j<c;j++)
{
gotoxy(h,v);
cin>>m1[i][j];
h+=3;
}
v+=2;
}
gotoxy(50,8);
cout<<"enter 2nd matrix=";
v=10; h=50;
for(i=0;i<r;i++)
{
h=50;
for(j=0;j<c;j++)
{
gotoxy(h,v);
cin>>m2[i][j];
h+=3;
}
v+=2;
}
gotoxy(30,30);
cout<<"sum of matrices=";
v=32; h=30;
for(i=0;i<r;i++)
{
h=30;
for(j=0;j<c;j++)
{
gotoxy(h,v);
cout<<m1[i][j]+m2[i][j];
h+=3;
}
v+=2;
}
getch();
}
Software Quality Assurance
Black Box Testing
Black Box Testing•Testing software against a specification of its external behavior without knowledge of internal implementation details
•Types of Black Box Testing
Equivalence class partitioning
Boundary value analysis
Cause-effect graphing
Error guessing
Equivalence Partitioning
•Domain is so large that you can't test all possible values
•Equivalence partitioning is a black box testing method
•It divides the input domain of a program into classes of data from which test cases can be derived.
•Partition the input's domain into "equivalence classes“
•This method is typically used to reduce the total number of test cases to a finite set of testable test cases
Equivalence Partitioning
•First-level partitioning: Valid vs. Invalid values
Equivalence Partitioning
•Partition valid and invalid values into equivalence classesEquivalence Partitioning
•Create a test case for at least one value from each equivalence classBoundary Value Analysis
•Many systems have tendency to fail on boundary. So testing boundry values of application is important.•Extends equivalence partitioning Test both sides of each boundary Test min, min-1, max, max+1
Boundaries of the inputs
The “basic” boundary value testing would include 5 situations:
1. - at minimum boundary
2. - immediately below minimum
3. - between minimum and maximum (nominal)
4. - immediately above maximum
5. - at maximum boundary
1 <= age <= 150
Min
Max
Boundary shift:
–This happens when the constant term of the inequality defining the boundary takes up a value different from the intended value–In concrete terms, a shifted-boundary error occurs due to a change in the magnitude or the sign of the constant term of the inequality
–e.g. consider the boundary defined by p: x + 5y> 5
–If the programmer’s intention was to define a boundary represented by the p: x + 5y> 4
–Other boundary changes are possible too; e.g boundary tilt where some parameters in equation are changed slightly x + 55y>4
•When the input consists of a single variable, we can directly use the four values, “under”, “min”, “max”, and “over”, and an interior point for testing.
•For example, for an input sub-domain,
0 ≤x <21, define the boundary values?
-1, 0, 10,21, and 22 (if we are testing integers)
The interior point is arbitrarily selected at x=10,
and the “under” and “over” points are at the distance Є from the boundary,
in this case 1 under or 1 over.
Subscribe to:
Posts (Atom)