ITEC 2610 Object-Oriented Programming Assignment

Assignment Help JAVA Programming
Reference no: EM132411457

ITEC 2610 Object-Oriented Programming Assignment - York University, Canada

To submit: Prepare a single .zip file containing all the source files (.java files, NOT .class files).

Details - Write a program NumberCount that counts the numbers (including integers and floating point values) in one or more text files. Note that only numbers separated by whitespace characters are counted, i.e., only those numbers that can be read by either readInt() or readDouble() are considered.

Start a new thread for each file. The last active thread also prints a combined count. Use locks to protect the combined count and a counter of active threads. For example, if you call java NumberCount report.txt address.txt Homework.java then the program might print (assuming those files exist in the current directory)

address.txt: 1052

Homework.java: 445

report.txt: 2099

combined count: 3596

Errors/exceptions should be handled properly:

1. When the command line arguments do not follow the given format (e.g., if you run "java NumerCount" without any filenames provided), then the program should print a help message telling the correct way to use the program.

2. When one or more files specified as the command line arguments do not exist, the program will print out a message saying that the file(s) do not exist; in this case, the program will still print the given filename, and a count 0.

3. Other types of I/O exceptions can be handled by printing out a generic error message. If there is an exception during the reading of a file, the count to be printed out for that file is whatever the count is up until the exception.

Attachment:- Object-Oriented Programming Assignment Files.rar

Reference no: EM132411457

Questions Cloud

Practical manner to your current work environment : How the knowledge, skills, or theories of this course have been applied, or could be applied, in a practical manner to your current work environment
Suggest some controls for your security policy : Create a security policy that would benefit your organization. Suggest some controls for your security policy
Information security anomalies and events : A security operations center (SOC) is dedicated monitoring, assessment, and defense facility that responds to real-time information security anomalies and event
Develop risk management framework : If Blue Wood Chocolate and Kilgore Custom Milling are to develop a risk management framework, who should lead the process at each company?
ITEC 2610 Object-Oriented Programming Assignment : ITEC 2610 Object-Oriented Programming Assignment Help and Solution - York University, Canada. Write a program NumberCount that counts the numbers
How these strategies differ from each other in terms of risk : Discuss how these strategies differ from each other in terms of risk and potential benefit, and how are they similar.
Analysis theory of the mind and darwins legacy : need to do an analysis/critique of each topic with at least 10 cited sources - Theory of the mind and Darwins Legacy - Evolution of Consciousness.
Explain what is meant by the framing effect : Assessment Task - Explain what is meant by the framing effect and discuss any related policy implications. (1500 words)
Define conflict theory-define symbolic interaction theory : Define conflict theory. Define symbolic interaction theory. How does the digital divide apply to the store that you work in for this scenario?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd