Free Essay

Java Simple Classes

In: Computers and Technology

Submitted By sexykiller
Words 1072
Pages 5
The University of Melbourne Department of Computer Science and Software Engineering 433-254 Software Design Semester 2, 2003 Answers for Lab 2 Week 3

1. Writing Simple Classes:
a) In Java systems, there is only one class with the ‘main’ function, which initiates the execution of the whole system. Therefore, in order to test individual classes (i.e. unit testing), developers are usually writing a simple class with a main function (also known as a driver class) that simply calls all different functions of a target class and prints the results. Your task is to download the file “Keyboard.java” from: www.cs.mu.oz.au/254/Keyboard/Keyboard.html and write a simple driver program that tests the following methods from Keyboard.java: readInt() readString() readLong() readWord() readFloat() readChar() readDouble() readBoolean() Sample Answer:
// A class to execute one or more Keyboard methods class Test { public static void main(String[] args) { System.out.print("Please enter a string: "); String str = Keyboard.readString(); System.out.println("String = " + str); System.out.println(); System.out.print("Please enter a word: "); String word = Keyboard.readWord(); System.out.println("word = " + word); System.out.println(); System.out.print("Please enter a character: "); char ch = Keyboard.readChar(); System.out.println("char = " + ch); System.out.println(); System.out.print("Please enter a boolean (true/false): "); boolean bool = Keyboard.readBoolean(); System.out.println("boolean = " + bool); System.out.println();

System.out.print("Please enter an int number: "); int numInt = Keyboard.readInt(); System.out.println("int = " + numInt); System.out.println(); System.out.print("Please enter a long number: "); long numLong = Keyboard.readLong(); System.out.println("long = " + numLong); System.out.println(); System.out.print("Please enter a float number: "); float numFloat = Keyboard.readFloat(); System.out.println("float = " + numFloat); System.out.println(); System.out.print("Please enter a double number: "); double numDouble = Keyboard.readDouble(); System.out.println("double = " + numDouble); System.out.println(); } } // end class

b) Write a Java class Student to meet the following specification. - The class should be able to support a 5 digit student ID, student name, marks for 3 subjects. You should have methods to set and get each of the attributes, and calculate the average for the student. Write a tester program to test your class. You should create 2 or 3 students and write code to test the class. Aim - Understand how to define a class and create objects of the class. Sample Answer: class Student { // data members private String _studentNumber; private String _studentName; private int _markForMaths; private int _markForEnglish; private int _markForScience; // Set Student Name public void setStudentName(String studentName) { _studentName = studentName; } // Set the student number public void setStudentNumber(String studentNumber) { _studentNumber = studentNumber; }

// getNumber() // return student number public String getNumber() { return _studentNumber; } // getName() // return student name public String getName() { return _studentName; } // entermarks() // enter all subject marks given as args public void enterMarks(int maths, int english, int science) { _markForMaths = maths; _markForEnglish = english; _markForScience = science; } // getMathsMark() // return mark for maths public int getMathsMark() { return _markForMaths; } // getEnglishMark() // return mark for English public int getEnglishMark() { return _markForEnglish; } // getScienceMark() // return mark for Science public int getScienceMark() { return _markForScience; } // calculateAverageMark() // return the average of the three marks public double calculateAverageMark() { return ((_markForMaths + _markForEnglish + _markForScience) / 3.0); } }

// class StudentTester // tests the Student class above public class StudentTester { public static void main(String[] args) { String stud_num, stud_name; Student s1 = new Student(); Student s2 = new Student(); s1.setStudentName("Britney Spears"); s1.setStudentNumber("11111"); s1.setStudentName("Eddie Vedder"); s1.setStudentNumber("22222"); s1.enterMarks(20, 60, 2); s2.enterMarks(80, 75, 76); outDetails(s1); outDetails(s2); } // Write the details to standard out public static void outDetails(Student s) { System.out.println("--------------------------"); System.out.println("Student Number:\t" + s.getNumber()); System.out.println("Student Name:\t" + s.getName()); System.out.println("Maths:\t\t" + s.getMathsMark()); System.out.println("English:\t" + s.getEnglishMark()); System.out.println("Science:\t" + s.getScienceMark()); System.out.println("Average:\t" + s.calculateAverageMark()); }

}

2. Last Week’s Extra Work:
If you haven’t done the last week’s extra exercises, you must do them this week! Here they are again: (a) Write a java program that takes your first name and last name as command line arguments to the program and displays your name and last name on separate lines. Aim: Understand the use of command line arguments.

Sample Answer:
// FirstLast.java class FirstLast { public static void main(String[] args) { System.out.println("First Name : " + args[0]); System.out.println("Last Name : " + args[1]); } }

(b) Write a program that calculates the total wages based on the number of hours worked. The wages are calculated at a rate of 8.25 per hour for up to 40 hours and at the rate of 1.5 the standard rate for any hours greater than 40. Number of hours is a command line argument to the program. Hint: Use Integer.parseInt(String s) converts a string to an integer (To convert the number of hours from command line to integer). We will understand this as we get through the rest of the lectures and labs but use it for now. Aim: Understand the use of if-else and constants.

Sample Answer:
// Wages.java class Wages { public static void main(String[] args) { final double RATE = 8.25; final int STANDARD = 40; double pay = 0.0; int hours = 0; hours = Integer.parseInt(args[0]);

if (hours > STANDARD) { pay = STANDARD * RATE + (hours - STANDARD)*1.5*RATE; } else { pay = STANDARD * RATE; } System.out.println("Wages = " + pay); } }

(c) Write a program to take the student’s grade as an input argument and print the comments as follows 100 (Perfect Score), 90-100 (Excellent), 80-90 (Good), 70-80 (Above Average), 60-70 (Average) 50-60 (Below Average), 0-50 (Not Passing). Hint: use switch statement. Aim: Understand the use of switch statement.

Sample Answer:
// GradeReport.java class GradeReport { public static void main(String[] args) { int grade, category;

grade =

Integer.parseInt(args[0]); grade/10;

category =

switch (category) { case 10: System.out.println break; case 9: System.out.println break; case 8: System.out.println break; case 7: System.out.println break; case 6: System.out.println break; case 5: System.out.println break; default: System.out.println break; } } }

("Perfect Score");

("Excellent");

("Good");

("Above Average");

("Average");

("Below Average");

("Not Passing");

(d) Write a program to print all odd numbers between 1 and 20. Note : Use while loop. Aim: Understand the use of while loop.

Sample Answer:
//OddNumbers.java class OddNumbers { public static void main(String[] args) { final int MAX_NUMBER = 20; int i = 1; while (i 0) System.out.println(i); i++; } } }

Similar Documents

Free Essay

Differences Between C++ and Java

...Difference between C++ and JAVA:- 1. Java has no preprocessor. If you want to use classes in another library, you say Import and the name of the library. There are no preprocessors-like macros. 2. there are no pointers in the sense of C and C++. When you create an object with new, you get back a reference. 3. there are no destructors in Java. There is no “scope” of a variable per seen, to indicate when the object’s lifetime is ended-the lifetime of an object is determined instead by the garbage collection. 4. There is no GOTO statement in JAVA. 5. No INLINE methods. The java compiler might decide it’s own to inline a method, but you don’t have much control over this. You can suggest inlining in java by using FINAL keyword for a method. However , inline functions are only suggestions to the C++ compiler as well. 6. Java has method overloading that works virtually identically to C++ function overloading. 7. Java doesn’t create exe file after the execution of a program. 8. 9. > In Java, the sizes of int, long etc. are rigidly defined in terms of 10. > bits. In C++ they are platform−dependent. 11. > 12. > In Java, the JVM behaves at if it were big endian, even if internally 13. > it is actually little−endian. In C++, the endianness is platform 14. > dependent. 15. > 16. > In Java, garbage collection of unreferenced objects is automatic. In 17. > C++, you manually manage memory. 18. > 19. > In Java, references are constrained to point only to the beginnings of ...

Words: 1720 - Pages: 7

Premium Essay

Java Programming Language Sl-275

...Sun Educational Services Java Programming Language SL-275 Sun Educational Services Java Programming Language September 1999 Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun Logo, Solstice, Java, JavaBeans, JDK, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the...

Words: 6064 - Pages: 25

Premium Essay

Importanat Terms of Java

...A Abstract: A Java keyword used in a class definition to specify that a class is not to be instantiated, but rather inherited by other classes. An abstract class can have abstract methods that are not implemented in the abstract class, but in subclasses. Abstract class: A class that contains one or more abstract methods, and therefore can never be instantiated. Abstract classes are defined so that other classes can extend them and make them concrete by implementing the abstract methods. Abstract method: A method that has no implementation. Abstract Window Toolkit (AWT): A collection of graphical user interface (GUI) components that were implemented using native-platform versions of the components. These components provide that subset of functionality which is common to all native platforms. Largely supplanted by the Project Swing component set. See also Swing. Access control: The methods by which interactions with resources are limited to collections of users or programs for the purpose of enforcing integrity, confidentiality, or availability constraints. ACID: The acronym for the four properties guaranteed by transactions: atomicity, consistency, isolation, and durability. Actual parameter list: The arguments specified in a particular method call. See also formal parameter list. API: Application Programming Interface. The specification of how a programmer writing an application accesses the behavior and state of classes and objects. Applet: A component that typically...

Words: 6835 - Pages: 28

Free Essay

Banking

...Building Desktop Applications with Java Building Eric Bader Vishal Agarwal Introductions… Introductions • Who are we? – Core Engine Java dev team members. • Who are you? – ArcGIS Desktop developers/users? – MapObjects Java users? – Current ArcGIS Engine developers? – Target Platforms? Agenda Agenda • Overview • Key Features • Coarse grain Developer components • Working with Swing • Custom Commands and Tools • What’s new in 9.2 Overview of ArcGIS Engine Java Overview • Java SDK for developing cross platform Java desktop GIS Applications. desktop • Collection of numerous java objects called Collection ‘arcobjects’ and tools for mapping, and visualization, data management and GIS analysis. analysis. • Create stand alone GIS apps or Embed GIS Create functions in existing J2SE applications functions Some User Applications Some Architecture Architecture Java Visual Beans and utilities Java Proxy Objects ArcObjects Windows / Solaris / Linux ArcGIS Engine Functionality ArcGIS • 2D and 3D visualization • Read all supported ESRI data formats Read • • • • • including the geodatabases. geodatabases Map authoring (create and edit MXD) ArcGIS level cartography Geo-coding, query, analysis. Simple editing (shp and pGDB) and pGDB With Extensions: – Multi user editing, Spatial, 3D and Network analysis Java Beans – Drag and Drop development • MapBean • PageLayoutBean • ToolbarBean • TOCBean • ReaderBean ...

Words: 850 - Pages: 4

Premium Essay

Java R. P.

...Karlsruhe, Germany siebert@ira.uka.de anwalt@ira.uka.de This work was partially funded by the DFG program GRK 209-------- ABSTRACT For the application of Java in realtime and safety critical domains, an analysis of the worst-case execution times of primitive Java operations is necessary. All primitive operations must either execute in constant time or have a reasonable upper bound for their execution time. The difficulties that arise for a Java virtual machine and a Java compiler in this context will be presented here. This includes the implementation of Java’s class and interface model, class initialization, monitors and automatic memory management. A new Java virtual machine and compiler that solves these difficulties has been implemented and its performance has been analysed. Although incremental garbage collection techniques can help to reduce the likelihood for a blocking garbage collection pause, they can not guarantee it. It can still occur that the collector does not make sufficient progress and does not catch up with the application. Consequently, the system can fail or require long blocking pauses to recycle memory or defragment the heap. A deterministic implementation of Java must provide means to determine worst-case execution times for Java’s primitive operations. The dynamic structure of Java, with inheritance, virtual method calls and multiple-inheritance for interfaces, poses several difficulties for the implementation. The time required for calls or...

Words: 6709 - Pages: 27

Free Essay

Java Tutorials

...The Java™ Web Services Tutorial For Java Web Services Developer’s Pack, v2.0 February 17, 2006 Copyright © 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. This distribution may include materials developed by third parties. Sun, Sun Microsystems, the Sun logo, Java, J2EE, JavaServer Pages, Enterprise JavaBeans, Java Naming and Directory Interface, EJB, JSP, J2EE, J2SE and the Java Coffee Cup logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Unless otherwise licensed, software code in all technical materials herein (including articles, FAQs, samples) is provided under this License. Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited. DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR...

Words: 55069 - Pages: 221

Premium Essay

Java

...Software Design Introduction to the Java Programming Language Material drawn from [JDK99,Sun96,Mitchell99,Mancoridis00] Software Design (Java Tutorial) © SERG Java Features • “Write Once, Run Anywhere.” • Portability is possible because of Java virtual machine technology: – Interpreted – JIT Compilers • Similar to C++, but “cleaner”: – No pointers, typedef, preprocessor, structs, unions, multiple inheritance, goto, operator overloading, automatic coercions, free. Software Design (Java Tutorial) © SERG Java Subset for this Course • We will focus on a subset of the language that will allow us to develop a distributed application using CORBA. • Input and output will be character (terminal) based. • For detailed treatment of Java visit: – http://java.sun.com/docs/books/tutorial/index.html Software Design (Java Tutorial) © SERG Java Virtual Machine • Java programs run on a Java Virtual Machine. • Features: – – – – – Security Portability Superior dynamic resource management Resource location transparency Automatic garbage collection Software Design (Java Tutorial) © SERG The Java Environment Java Source File (*.java) Java Compiler (javac) Java Bytecode File (*.class) Java Virtual Machine (java) Software Design (Java Tutorial) © SERG Program Organization Source Files (.java) Running Application Running Applet JAVA BYTECODE COMPILER Class Files (.class) JAVA VIRTUAL MACHINE WEB BROWSER Software Design (Java Tutorial) © SERG Program Organization Standards •...

Words: 5230 - Pages: 21

Premium Essay

Java

...Release Team[oR] 2001 [x] java Java 2: The Complete Reference by Patrick Naughton and Herbert Schildt Osborne/McGraw-Hill © 1999, 1108 pages ISBN: 0072119764 This thorough reference reads like a helpful friend. Includes servlets, Swing, and more. Table of Contents Back Cover Synopsis by Rebecca Rohan Java 2: The Complete Reference blends the expertise found in Java 1: The Complete Reference with Java 2 topics such as "servlets" and "Swing." As before, there's help with Java Beans and migrating from C++ to Java. A special chapter gives networking basics and breaks out networking-related classes. This book helps you master techniques by doing as well as reading. Projects include a multi-player word game with attention paid to network security. The book is updated where appropriate throughout, and the rhythm of text, code, tables, and illustrations is superb. It's a valuable resource for the developer who is elbow-deep in demanding projects. Table of Contents Java 2 Preface - 7 Part l The Java Language - The Complete Reference - 4 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 hapter 10 - The Genesis of Java - 9 - An Overview of Java - 20 - Data Types, Variables, and Arrays - 36 - Operators - 57 - Control Statements - 75 - Introducing Classes - 94 - A Closer Look at Methods and Classes - 111 - Inheritance - 134 - Packages and Interfaces - 156 - Exception Handling - 174 Chapter 11 - Multithreaded Programming...

Words: 78285 - Pages: 314

Premium Essay

Bout This

...Pasig campus pangilinan DSITI-AI Oct 27 15 Java Programming java programming Introduction in java programming Objectives * Object-Oriented Programming Language * Object-Oriented Programming Principle * Benefits Of Object-Oriented Programming * Introduction To Java Programming * Resources Used To Create a Java Programming *Structures Of a Java Programming * Result Of Executing The Java Programing Object Oriented Programming Language (OOPL) OOPL Is An Extension Of Procedural Language. Involves Creating Program Components as Object Related To The Real Word. Writing Object-Oriented Programs Involves Creating Object And Application That Uses Those Objects. An Object Contains Both Data Procedures Can be packaged Into a Single Unit. Based On Three Concepts Encapsulation Ability To Bind Data And Procedures Into an Object. Inheritance Ability Of Objects To Acquire The Attributes Or Behavior Of Other Objects Or Classes. Polymorphism Ability of An Object To Take Many Forms Or Identities. Benefits Of Object-Oriented Programming *Reusability -Able To Reuse The Defined Objects. *Adaptability –Able to fit in different environment. *maintainability –Able to change easily. *reliability –Able to operate...

Words: 1445 - Pages: 6

Premium Essay

Data Communication and Networking

...SEMESTER III |SL. |COURSE CODE |COURSE TITLE |L |T |P |C | |NO | | | | | | | |THEORY | |1 |MC9231 |Computer Networks |3 |0 |0 |3 | |2 |MC9232 |Microprocessors and its |3 |0 |0 |3 | | | |Applications | | | | | |3 |MC9233 |Software Engineering |3 |0 |0 |3 | |4 |MC9234 |Computer Graphics |3 |0 |0 |3 | |5 |MC9235 |Web Programming |3 |0 |0 |3 | |PRACTICAL | |6 |MC9237 |Graphics Lab |0 |0 |3 |2 | |7 |MC9238 |Microprocessor Lab |0 |0 |3 ...

Words: 1592 - Pages: 7

Premium Essay

Java

...JMaster list of Java interview questions - 115 questions By admin | July 18, 2005 115 questions total, not for the weak. Covers everything from basics to JDBC connectivity, AWT and JSP. 1. What is the difference between procedural and object-oriented programs?- a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code. 2. What are Encapsulation, Inheritance and Polymorphism?- Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse. Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions. 3. What is the difference between Assignment and Initialization?- Assignment can be done as many times as desired whereas initialization can be done only once. 4. What is OOPs?- Object oriented programming organizes a program around its data, i. e. , objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling 5. access to code. What are Class, Constructor...

Words: 6762 - Pages: 28

Free Essay

Java Applet

...Applet Java Applets were created when the Internet was becoming popular with educational institutions, businesses and consumers. Java Applets were originally meant to be part of products from the cable company, but developers of Java Applets could not convince the cable industry to use their invention. Java Applets were created by programmers at Sun in 1995. They were James Gosig, Patrick Naughton and Mike Sheridan who called themselves the Green Team. Java Applets share some similarities with the java programming language. Java is text and characters that is written as instructions. A programmer is the person who writes the instructions on the computer. The computer will not perform an action without getting instructions from the person who writes the instructions. The java programming language allows a programmer to use the same code on both a personal computer and a Macintosh. The same rule applies to a Web browser. The programmer who creates web pages is called the web master. The web master uses hypertext markup language to create a webpage. In order for the webpage images to move an applet is added. An applet is a small application that is placed inside the hypertext markup language. The most popular web browsers in the 1990s were Netscape and Mosaic. Both browsers displayed still images and text. Java applets allowed the programmer to write applications for the web. For the first time, using Java Applets, images could move. Animation allowed webpages to come alive....

Words: 2297 - Pages: 10

Free Essay

Lógica de Programação

...complementares. • 4 desafios. • 61 questões de prova. i Sumário Sobre a K19 Seguro Treinamento Termo de Uso Cursos 1 Introdução 1.1 O que é um Computador? . . . . . . . 1.2 Formato Binário . . . . . . . . . . . . . 1.3 Unidades . . . . . . . . . . . . . . . . . 1.4 Arquiteturas de Processadores . . . . . 1.5 O que é um Programa? . . . . . . . . . 1.6 Linguagem de Máquina . . . . . . . . 1.7 Linguagem de Programação . . . . . . 1.8 Compilador . . . . . . . . . . . . . . . . 1.9 Máquinas Virtuais . . . . . . . . . . . . 1.10 Hello World em Java . . . . . . . . . . . 1.11 Hello World em C# . . . . . . . . . . . . 1.12 Método Main . . . . . . . . . . . . . . . 1.13 Exercícios de Fixação Com Java . . . . 1.14 Exibindo mensagens . . . . . . . . . . 1.15 Comentários . . . . . . . . . . . . . . . 1.16 Indentação . . . . . . . . . . . . . . . . 1.17 Engenharia Reversa (Conteúdo Extra) 1.18 Ofuscadores (Conteúdo Extra) . . . . . 1.19 Exercícios de Fixação Com Java . . . . 1.20 Erro: Não Fechar os Blocos . . . . . . . 1.21 Erro: Trocar Maiúsculas e Minúsculas 1.22 Erro: Esquecer o Ponto e Vírgula . . . 1.23 Erro: Esquecer o Main . . . . . . . . . 1.24 Exercícios de Fixação Com C# . . . . . 1.25 Exercícios Complementares . . . . . . 1.26 Desafios . . . . . . . . . . . . . . . . . . 1.27 Resumo do Capítulo . . . . . . . . . . . 1.28 Prova . . . . . . . . . . . . . . . . . . . . ii 1 2 3 4 1 1 3 4 5 7 7 7 8 9 10 11 13 13 15 16 16 17 17 17 18 19 20 21 22 23 24 24 26 31 31 31 33 33 35 35 35 36 37 ...

Words: 57401 - Pages: 230

Premium Essay

Java Servlets

...2 4 Advanced Java Programming with Database Application Centre for Information Technology and Engineering, Manonaniam Sundaranar University CONTENTS Lecture 1 1 Data Base Management Systems Introduction Summary of DBMS Functions CODD's Rules Lecture 2 17 Structured Query Language Structured Query Language Using SQL as a Data Definition Language Using SQL as a Data Manipulation Language Using SQL as a Data Query Language Functions Lecture 3 33 JDBC Architecture Remote Database Access Lecture 4 40 JDBC Introduction Connecting to an ODBC Data Source JDBC Connection JDBC Implementation Resultset Processing: Retrieving Results Lecture 5 67 Prepared Statement Callable Statement Other JDBC Classes Moving the Cursor in Scrollable Result Sets Making Updates to Updatable Result Sets Updating a Result Set Programmatically Lecture 6 94 Introduction To Software Components Software Component Model Features of Software Component Javabean Importance of Java Component Model4 Bean Development Kit Starting the BeanBox Using The BDK Beanbox and The Demo Javabeans Centre for Information Technology and Engineering, Manonaniam Sundaranar University Lecture 7 107 Building Simple Bean Building the First Bean Event Handling Lecture 8 117 Bean Persistence Serialization and Deserialization Serializable Bean Lecture 9 130 Introspection Introspector Bean Info Simple Bean Info Feature Descriptor Bean...

Words: 31370 - Pages: 126

Free Essay

Software Testing Tools Survey

...(company or individual) developed the tool? What is the cost to the tool user? How do you acquire it? Concordion was developed by David Peterson, an agile consultant from London, UK. While working at Easynet in 2006, the idea was formed with testers and developers Nat Pryce and Steve Freeman. Concordion was then later ported and improved upon by several developers, specifically Nigel Charman, the designer of the Concordion Extensions API. The Concordion tool is available for free at concordion.org/Download.html. 2. What testing purpose does the tool serve? (i.e., what problem does it attempt to solve? How does it improve productivity?) Concordion is an open source tool that is used for the automation of Specification by Example. Using simple HTML, developers can create concrete examples in any specifications with certain commands. This allows for Concordion to check the examples against a real-life system. The specifications allow for complete cover of any behavior important to a customer. Based on this, specifications can be used as unit tests. Concordion specifications are also clear and readable so they can also serve as system documentation. This means a project’s specifications can be easy to understand for the development team, as well as anyone outside it. This would ultimately allow for a better maintenance of software quality as the software can be reviewed as a group effort. 5. What do you need to do in order to use the tool? There is ample documentation...

Words: 1393 - Pages: 6