Kein Folientitel

farrightΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 4 μήνες)

272 εμφανίσεις

1

INF160

IS Development Environments


AUBG, COS dept




Reference books:

Baltzan Paige, Business Driven Information Systems, McGraw
-
Hill/Irwin, 3e, 2012.

Doar Matthew B., Practical Development Environments, O’Reilly,
2005.

Any C++, C#, Java, VBasic book available in AUBG library


Course lecturer: Assoc. Prof. Stoyan Bonev, PhD

2

INF160 IS Development Environments

AUBG, COS dept

Lecture xx

Title:

Training session


before Midtest on DevEnv

(Extract from Syllabus)

3

Lecture Contents:


IDE Components, Structure, Functionality


MS Visual Studio


BloodShed Dev C++


Sharp Develop


NetBeans


Eclipse



jGRASP


BLUEj

4

MS Visual Studio


How to create, compile and run programs



Intellisense



Code Snippets



REfactoring

5

BloodShed Dev C++


How to create, compile and run programs



Command Line arguments



Static libraries
-

.a files

6

Sharp Develop


How to create, compile and run programs



Internationalization

UI language



Convert Code C#
-

to other PL

7

NetBeans


How to create, compile and run programs



Compile on Save feature



GUI applications


layout manager

8

Eclipse


How to create, compile and run programs



The Perspective concept

9


jGRASP


How to create, compile and run programs



Console applications



Dlg Box Windowed applications



GUI applications

10

BLUEj


How to create, compile and run programs



Classes



Objects/instances of classes/



Relations and Dependencies among classes

11

Components of a SW program


Classes


Composition of:


Data items/fields


Routines
-

methods

12

Components of a SW program


Programs


Structured programming


Composition of global data and routines (C, C++, VB)


OOP


Composition of one or more classes (C#, Java, C++)

13

Components of a SW program


Programs


Physically organized as


Single file source text


Multiple files source text


Logically organized as


Module


VB


Namespace
-

C#


Package
-

Java

14

Training task


Define a routine (procedure mode with no return value
and no parameters) named myData() that displays its
name.


Define a routine (function mode with a return value
and parameters) named addTwoValues(..) that returns
the sum of its two arguments/parameters


Write a driver main() program/function/method to
test the functionality of the myData() procedure type
routine and the addTwoValues(..) function type routine
formulated above

15



Thank You

For

Your Attention!

16



VB solution:

Imports System


Module Module1



Sub Main()


myDATA()


Console.WriteLine(addTwoValues(10, 20))


End Sub



Sub myData()


Console.WriteLine("myData")


End Sub



Function addTwoValues(ByVal p1 As Integer, ByVal p2 As Integer) As Integer


Return p1 + p2


End Function

End Module

17



C++ solution:

#include <iostream>

using namespace std;


void myDATA();

int addTwoValues(int p1, int p2);


void main()

{


myDATA();


cout << endl << addTwoValues(10, 20);

}


void myDATA()

{



cout << "myDATA";

}


int addTwoValues(int p1, int p2)

{


return p1 + p2;

}

18



C# solution:

using System;


namespace ProobaCsharp

{


class Program


{


static void Main(string[] args)


{


myData();


Console.WriteLine(addTwoValues(10, 20));


}



static void myData()


{



Console.WriteLine("myData");


}



static int addTwoValues(int p1, int p2)


{



return p1 + p2;



}


}

}

19



Java solution:

package trainingTask;


public class TrainingTask {



public static void main(String[] args) {



myData();



System.out.println(addTwoValues(10, 20));


}



static void myData() {



System.out.println("myData");


}



static int addTwoValues(int p1, int p2){



return p1 + p2;


}

}