Free Essay

Java - Download and Study the Code Provided

In:

Submitted By ashhad
Words 568
Pages 3
HELPIDO.COM

Follow this link to get the tutorial

http://helpido.com/download-and-study-the-code-provided-in-the-bluej-project/

Follow this link to get the tutorial

http://helpido.com/download-and-study-the-code-provided-in-the-bluej-project/

Download and study the code provided in the BlueJ project roman_numerals_buggy.zip. Rename this BlueJ project to roman_numeral_soln (this is the BlueJ project you will be submitting). You can rename the project by renaming the folder from roman_numerals_buggy to roman_numeral_soln after extracting the zip file. The purpose of this code is to convert Arabic numerals into Roman numerals. Make an instance of RomanNumerals and invoke the method toRoman(int n). Enter a number in the Arabic notation and it will convert it to a Roman numeral. For example “17” will be converted to “XVII”.You will notice a test suite that we provide with the code. Run the test suite by right-clicking on RomanNumeralsTest and choosing Test All as shown in Figure 6.3 of the book. Alternatively, you can click on the Run Tests button as shown in Figure 6.2 of the book, if you have enabled the ‘Show unit testing tools’ preference. To enable it, go to Tools > Preferences > Miscellaneous, and select ‘Show unit testing tools’.

You will notice a total of eight tests of which two fail.

Your first task in this assignment is to study the given code, identify why the two tests fail, and correct the code.
On studying the code further, you will notice a few more bugs/limitations in the provided code (i.e. the provided code will not give the correct Roman numeral conversion for some numbers). Identify them and correct the code to handle those situations also.
Also, the test suite itself has a bug, i.e. it will flag an error in a particular case even when the code gives the right answer. Identify that situation and correct it.
Add five more tests to RomanNumeralsTest to give you confidence that all numbers between 1 and 3,000 will be converted correctly.
By the end of this assignment you will have code that converts from Arabic numerals to Roman numerals which handles all possibilities and is fully tested by an additional five tests (hence, a total of 13 tests: eight we provide and five you write).

Create a new project in BlueJ by clicking on the menu option Project > New project. This will create a folder with the project name (see below). All BlueJ project-related files for this project will be stored in this folder. Create new classes by clicking on the [New Class] button. All Java class files that you create (.java files) will be stored in the BlueJ project folder. The project folder will contain other files as well. After completing and testing your assignment, zip the entire BlueJ folder and submit it. Since your Instructor will need all files in the project folder, make sure you zip the entire folder. For this assignment the names of the BlueJ project, Java class files, and the zip file you submit are given below:

BlueJ project: roman_numeral_soln (note that you would have downloaded roman_numberal_buggy.zip, unzipped and renamed the project to roman_numberal_soln.)
Java classes: RomanNumerals.java, RomanNumeralsTest.java
Submit: roman_numeral_soln.zip

HELPIDO.COM
Follow this link to get the tutorial
http://helpido.com/download-and-study-the-code-provided-in-the-bluej-project/

Similar Documents

Free Essay

Android Based Webstatic Server

...Diagram………………………………………………………… 5.1.1 Usecase Diagram….……………………………………………….. 5.1.2 Sequence Diagram….……………………………………………….. 5.1.3 RESULT FOR IMPLEMENTATION…………………… 6 Output Screens………………………………………………………. 6.1 SYSTEM TESTING………………………………………….7 Types of Testing………………………………………………………. 7.1 TESTCASES…………………………………………………..8 CONCLUSION………………………………………………..9 ANDROID BASED STATIC WEBSERVER ABSTRACT Android is software platform and operating system for mobile devices. Being an open-source, it is based on the Linux kernel. It was developed by Google and later the Open Handset Alliance (OHA). It allows writing managed code in the Java language. Due to Android here is the possibility to write applications in other languages and compiling it to ARM native code. This project is a mobile-based web server for serving static HTML/JavaScript pages to the client systems (the systems could be PCs or Mobiles) for access by these client systems. A static website will be designed to serve from the mobile(web server). The Mobile Web server is based on Android OS. The...

Words: 9090 - Pages: 37

Premium Essay

Asdsada

...CAPITOL UNIVERSITY College of Computer Studies Introduction to Programming Activity Book Compiled by: Mark Godfrey D. Torres 2012 Introduction to Programming ii Table of Contents Weeks 1 to 3 – Creating Your First Java Classes ....................................................................................... 1 Objectives ........................................................................................................................................... 1 Summary ............................................................................................................................................ 1 The Don’ts........................................................................................................................................... 2 Key Terms ........................................................................................................................................... 3 Seatwork............................................................................................................................................. 6 Where to Save Your Files ................................................................................................................. 6 Configuring Windows to Work with the Java SE Development Kit................................................... 6 Your First Application ........................................................................................................................

Words: 4647 - Pages: 19

Free Essay

Project Management for the Central Goverment

...PROJECT…………………………………………………………………………….5 3. HARDWARE & SOFTWARE REQUIREMENTS 3.1 Input Requirements…………………………………….……………………………………..8 3.2 Output Requirements………………………………………………………………………..8 3 3.3 Software Requirements…………………….………………………………………………..8 3.4 Hardware Requirements……………………………………………………………………..8 4. TOOL USED FOR DEVELOPMENT 4.1 NetBeans…………………………………………………………………………….……………….10 4.1.1 Features and Tools…………………..……………………………..………..…….10 4.1.2 Source Code Editor………………………………………………………………….10 4.1.3 GUI Builder………………………………………………………………………………..11 5. TECHNOLOGY TO BE USED 5.1 Introduction to Java…………………………………………………………..……………..13 5.1.1 Java Virtual Machine……………………………………………….…………..13 5.1.2 Principles………………………………………………………………………………..13 5.1.3 Versions……………………………………….………………………………………...14 5.1.4 Features of Java Language…………………………………………………..14 5.2 Multi Threading………………………………………………………………………….........16 5.2.1 Benefits of using threads……………………………………………………..17 5.2.2 Life Cycle of a Thread……………………………………………………………17 5.2.3 Thread Priority in Java………………………………………………………….18 5.3 Socket Programming in Java……….…………………………………………………..19 5.3.1 Ports and...

Words: 12882 - Pages: 52

Premium Essay

Management

...Electronic Commerce, Seventh Annual Edition 10-1 Chapter 10 Electronic Commerce Security At a Glance Instructor’s Manual Table of Contents • • • • • • • Chapter Overview Chapter Objectives Instructor Notes Quick Quizzes Discussion Questions Additional Resources Key Terms Electronic Commerce, Seventh Annual Edition 10-2 Lecture Notes Chapter Overview In this chapter, you will explore security policy issues with a focus on how they apply to electronic commerce in particular. The electronic commerce security topics in this chapter are organized to follow the transaction processing flow, beginning with the consumer and ending with the Web server (or servers) at the electronic commerce site. Each logical link in the process includes assets that must be protected to ensure security: client computers, the communication channel on which the messages travel, and the Web servers, including any other computers connected to the Web servers. Chapter Objectives In this chapter, you will learn about: • • • • • Online security issues Security for client computers Security for the communication channels between computers Security for server computers Organizations that promote computer, network, and Internet security Instructor Notes Online Security Issues Overview Computer security is the protection of assets from unauthorized access, use, alteration, or destruction. There are two general types of security: physical and logical. Physical security includes tangible...

Words: 5468 - Pages: 22

Free Essay

Snapshot

...introduction to programming books recognize this by their inclusion of one to twenty pages on this topic. This paper presents how using a simulated assembler (a tool for learning) with a simple assembly language can introduce the beginning student to the core concepts without having to be concerned with all the exceptions and rigor of a full assembler language. The Simulated Assembler with a full viewable Computer Machine (Glass Bottom Computer) and the easy procedures for using it in a first programming course are illustrated. Using the assembler tool described here should provide an increase in learning via a polytechnic (learn by doing) approach. A comparative analysis of using the assembler in an introduction to object programming course is provided. Keywords: assembler, simple machine, software tools, language, programming, object oriented, machine language 1. INTRODUCTION The growth in hardware technology has allowed the theories of modern programming languages to become a reality. In the beginning, developers of computer languages were hindered by the lack of processing speed and memory to implement their vision. Variable names and data were restricted in size and thus not very descriptive of their meaning. Most languages then followed a close representation of the function of the hardware in order to conserve on memory and...

Words: 3467 - Pages: 14

Premium Essay

Application.Servers.for.E-Business

...Application Servers for E-Business Table of Contents Application Servers for E-Business - 2 Preface - 4 Chapter 1 - Introduction - 5 Chapter 2 - A Survey of Web Technologies - 22 Chapter 3 - Java - 44 Chapter 4 - CORBA - 65 Chapter 5 - Application Servers - 82 Chapter 6 - Design Issues for Enterprise Deployment of Application Servers - 114 Chapter 7 - Tying It All Together - 137 References - 160 For More Information - 163 page 1 Application Servers for E-Business Application Servers for E-Business Lisa M. Lindgren Auerbach Library of Congress Cataloging-in-Publication Data Lindgren, Lisa. Application servers for e-business / Lisa M. Lindgren. p.cm. Includes bibliographical references and index. ISBN 0-8493-0827-5 (alk. paper) 1. Electronic commerce. 2. Application software—Development. I. Title. HF5548.32 .L557 2001 658′.0553–dc21 00-050245 This book contains information obtained from authentic and highly regarded sources. Reprinted material is quoted with permission, and sources are indicated. A wide variety of references are listed. Reasonable efforts have been made to publish reliable data and information, but the author and the publisher cannot assume responsibility for the validity of all materials or for the consequences of their use. Neither this book nor any part may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, microfilming, and recording, or by any information storage or retrieval system,...

Words: 98260 - Pages: 394

Free Essay

Web Development Technical Writing

...WESTERN GOVERNORS UNIVERSITY Submittal Cover Sheet Date: February 14, 2011 Student Name: Selina Coley Student ID Number: 182287 Student Degree Program: Information Technology – Software Emphasis Student Email: snolley@wgu.edu Four Digit Assessment/Project Code: TWA1 Mentor Name: Vinton Smith For Revisions Only Indicate Previous Grader: Submissions received with an altered, incomplete or missing cover sheet will be returned for resubmission. Submit to: Western Governors University Attn.: Assessment Delivery Department 4001 South 700 East, Suite 700 Salt Lake City, Utah 84107-2533 wgusubmittals@wgu.edu[->0] Technical Writing Project Cover Sheet Capstone Proposal Project Name: Static Website – www.booksandbottles.org Student Name: Selina Coley Degree Program: Information Technology – Software Emphasis Mentor Name: Vinton Smith Signature Block Student’s Signature Selina Coley Mentor’s Signature Table of Contents Capstone Proposal Summary 1 Review of Other Work 3 Rationale and Systems Analysis 4 Goals and Objectives 5 Project Deliverables 6 Project Plan and Timelines 7 References 9 Appendix 1: Competency Matrix 10 Capstone Proposal Summary My project proposal is to develop a static web site for a growing organization based in Sterling, Virginia. The mission of Books and Bottles is to promote healthy development of infants and young children through proper nutrition and early childhood exposure to reading...

Words: 2710 - Pages: 11

Free Essay

Test

...efficiencies, experience with ITIL, incident management, problem management, change management and release management • Documentum Certified Professional – EMC Proven Content Management Professional • Sun Certified Java Professional • Well versed with Agile Methodology, Waterfall and Iterative Model • Extensive experience with Documentum Content Server, Documentum Composer, Documentum Foundation Classes, Documentum Foundation Services , Documentum XML Store, XDB, Documentum ACS/BOCS, Documentum Reporting Services, Documentum Advanced Document Transformation Services, Documentum Audio Video Transformation Services, Documentum Document Transformation Services, Documentum Media Transformation Services, Documentum Thumbnail Server, Documentum XML Transformation Services, Documentum Workflow Manager, Documentum Webtop, Documentum Web Development Kit, Documentum Administrator, Documentum Webpublisher, Digital Asset Management, Documentum Media Workspace, Documentum Process Builder, Documentum Forms Builder,Taskspace, XCP, Documentum Interactive Delivery Services, Documentum Interactive Delivery Services Accelerated, Adobe Framemaker, Arbortext Editor, WDK, Application Builder, Business Process Manager, Crown Partner Sitebuilder, Buldoser, Java, JSP, Servlets, Struts, XML, XSL, HTML, CSS, JavaScript, Application Servers, Web Sphere, Weblogic, JRUN,...

Words: 4656 - Pages: 19

Free Essay

Investigation Into Opensource Software

...the corporation of one member. It is the regret that we had not enough time to collect all statistics by ourselves, and instead of that, papers and blogs are the main resources for open source part in this document. The open source software is introduced before the commercial one. Keywords: development process, code ownership, defect density, bug lifetime Background: Linux Kernel In April 1991, Linus Torvalds, a 21-year-old student at the University of Helsinki, Finland started working on some simple ideas for an operating system. He started with a task switcher in Intel 80386 assembly language and a terminal driver. On 26 August 1991, Torvalds posted the following to comp.os.minix, a newsgroup on Usenet: I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones. This has been brewing since April, and is starting to get ready. I'd like any feedback on things people like/dislike in minix, as my OS resembles it somewhat (same physical layout of the file-system (due to practical reasons) among other things). After that, many people contributed code to the project. Early on, the MINIX community contributed code and ideas to the Linux kernel. At the time, the GNU Project had created many of the components required for a free operating system, but its own kernel, GNU Hurd, was incomplete and unavailable. The BSD operating system had not yet freed itself from legal encumbrances. Despite the limited functionality of the early...

Words: 9369 - Pages: 38

Free Essay

Seven Languages in Seven Weeks

...being. This book is akin to a dim-sum buffet for any programmer who is interested in exploring new horizons or evaluating emerging languages before committing to studying one in particular. Antonio Cangiano Software engineer and technical evangelist, IBM Fasten your seat belts, because you are in for a fast-paced journey. This book is packed with programming-language-learning action. Bruce puts it all on the line, and the result is an engaging, rewarding book that passionate programmers will thoroughly enjoy. If you love learning new languages, if you want to challenge your mind, if you want to take your programming skills to the next level—this book is for you. You will not be disappointed. Frederic Daoud Author, Stripes ...and Java Web Development Is Fun Again and Getting Started with Apache Click Prepared exclusively for Montelymard Do you want seven kick starts into learning your “language of the year”? Do you want your thinking challenged about programming in general? Look no further than this book. I personally was taken back in time to my...

Words: 85787 - Pages: 344

Premium Essay

Hostel

...Chapter-1 1.1 Introduction Android is an software platform and operating system for mobile devices. It is based on the Linux kernel. It was developed by Google and later the Open Handset Alliance (OHA). It allows writing managed code in the Java language. Due to Android here is the possibility to write applications in other languages and compiling it to ARM native code. Unveiling of the Android platform was announced on 5 November 2007 with the founding of OHA. It's a consortium of several companies 1.1.1 Introduction to Project Environment OPERATING SYSTEM: An operating system (OS) is software consisting of programs and data hostel management system project report runs on computers and manages computer hardware resources and provides common services for efficient execution of various application software. For hardware functions such as input and output and memory allocation, the operating system acts as an intermediary between application programs and the computer hardware, although the application code is usually executed directly by the hardware and will frequently call the OS or be interrupted by it. Operating systems | | Common Features: * Process management * Interrupts * Memory management ...

Words: 15019 - Pages: 61

Premium Essay

Hdgjdhfszgd

...eBay - eCommerce Platform A case study in Scalability by Mohammad Usman Ahmed mohammad.ahmed@mail.mcgill.ca Table of Contents: 1. 2. 3. 4. 5. 6. 7. 8. The Application and its overall architecture Component Model and its interactions Technological aspects of the eBay Architecture Strengths and relative weaknesses of the Architecture Component Model and variations Key Quality Attributes favoured by the eBay Architecture Evolution of the Application and its Architecture Conclusion The Application and its overall architecture EBay is a highly successful eCommerce platform. The larger category of eBay includes 19 different platforms (e.g. skype, payPal, rent) but we'll be focusing on the search and trade platform. The other sister platforms became part of eBay due to recent acquisitions and in some cases result in architectural mismatch which would be an interesting topic for a separate case study, therefore this case study focuses on the original platform's architecture and its evolution in recent years. EBay is an eCommerce system where a user can browse to the website eBay .com and search for anything they want to buy, in auction or right away from the buyer, or to post some item for sale which other users can search for as prospective buyers. The users then arrange for payments online (using eBay's payPal system which is a separate system designed solely for that purpose and recently integrated onto the eBay platform) and receive the...

Words: 4022 - Pages: 17

Free Essay

Gwt Tutorial

...Google, including Google AdWords and Orkut. GWT is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache License version 2.0. This tutorial will give you great understanding on GWT concepts needed to get a web application up and running. Audience This tutorial is designed for Software Professionals who are willing to learn GWT Programming in simple and easy steps. This tutorial will give you great understanding on GWT Programming concepts and after completing this tutorial you will be at intermediate level of experties from where you can take yourself at higher level of expertise. Prerequisites Before proceeding with this tutorial you should have a basic understanding of Java programming language, text editor and execution of programs etc. Because we are going to develop web based applications usin GWT, so it will be good if you have...

Words: 14136 - Pages: 57

Free Essay

Student Portal User Manual Eng 221

...University of Phoenix Student Web Portal User Manual Learning Team ‘D' ENG 221 Technical Writing University of Phoenix Abstract Write a 15- to 20-page user manual for your selected tool. Provide effective, clear, concise, accurate, and coherent written communication that introduces first-time students to your tool. Include the following items in your manual: * Table of contents * Headers and footers that include page numbers, copyright information, and other necessary information * Headings * Appropriate font * Written instructions for accessing, navigating, and using the selected tool * Visual elements, such as images, flowcharts, tables, and screenshots * Effective page layout, including the order of information, use of whitespace, and highlighting * Terminology definitions, a key to define any symbols or diagrams used, and any other necessary information to help the user navigate the manual Finalize and submit the user manual. University of Phoenix Student Web Portal User Manual Introduction The University of Phoenix Portal is a brand new environment for students to participate in online classes and collaborate with in residence courses. The Web Portal allows faculty and students to come together along with University assisted career enhancement tools. Students can access any University supplied materials from the Web Portal, and online students can come together in the virtual classroom environment. Log In and Home Screen The...

Words: 4083 - Pages: 17

Premium Essay

Bull

...Information | Instructor: Jason T. Black, PhD (also called “Dr. B”) Email: Use the Messages feature in the classroom to email me. Table of Contents Course Description (Catalog) | This course introduces students to writing computer programs. The class presents the principles of structured programming using the BASIC language, perhaps the most common language for personal computers. Because of its ease of use it is ideal as a first programming language and runs on both the PC and Macintosh platforms. The course is designed for people without previous programming experience who do not necessarily plan on becoming professional programmers. However, the knowledge gained in the class can be applied later to other languages such as C and Java. Participants learn to solve problems logically by breaking them into smaller pieces, which can then be solved. Topics include: introduction to computing - how does a computer work?; input and output - getting information to and from the user; variables and expressions - performing arithmetic; data statements - reading information from inside the program; text files - reading information from other files; arrays - groups of variables; debugging - finding errors in your program; graphics - graphs, boxes, shaded areas; and formatting - changing how things look on the screen. [3 Semester Hours] Table of Contents Course Scope | In this course describes basic programming concepts and...

Words: 2708 - Pages: 11