Explain the purpose of the program as detail as possible

Assignment Help Data Structure & Algorithms
Reference no: EM13312802

1.     For all assignments, always use comments to explain your program.

2.      You must use the names given to name your program. 

Objectives:

1.     To gain experience with string objects.

2.     To gain experience with generic algorithms.

3.     To gain experience with files - opening for input and output.

Documentation:

1.     Explain the purpose of the program as detail as possible

2.     Develop a solution for the problem and mention algorithms to be used

3.     List data structures to be used in solution.

4.     Give a description of how to use the program and expected input/output

5.     Explain the purpose of each class you develop in the program.

Programming:

1.     For each method, give the pre and post conditions and invariant, if any

2.     Program execution according to the requirements given 

3.     Naming of program as required

4.     Print out of source code

Description of program:

You are to write a program name wordcount.java that prompt the user for a user input file name, reads the input words and do the following with those words:

1.     Count the amount of words in the file. A word can end with a --- space, EOLN character or a punctuation mark (which will be part of the word).

2.     Count the amount of lines in the file.

3.     Count the amount of alphanumeric characters in the file.

4.     Count the number of sentences in the file.

5.     Count the amount of vowels in the file - only a, e, i, o, u are vowels.(This includes upper case also...A, E, I, O, U)

6.     Count the amount of punctuations in the file.

You must output the above information both on the screen as well as an output file name "output.txt".

Here are some requirements for the program:

The program must work even if the input file is empty. If this is the case print a message saying that "the input file is empty" and then terminate the program.

Implementation:

Use as many generic algorithms as possible so that the size of the program can be reduced.

Reference no: EM13312802

Questions Cloud

How to find out the [h3o+] and [oh-] : Determine the [H3O+], [OH-], pH, and pOH for each of the following solutions. A solution of 1.65 x 10-4 M HCl
What is the outward force on the window : A viewing window in the Atlanta aquarium is 58 inches wide and 52 inches high. what is the outward force on the window
By how many percents did the wavelength of the peak change : The temperature of a black body is increased by 10.5 percents. By how many percents did the wavelength of the peak change
Find the size of the contact force between the two blocks : Two blocks are stacked on a frictionless table. A horizontal force F is applied to M2. If M1=1.39kg, M2=3.02 Kg, and F=6.3 N, find the size of the contact force between the two blocks
Explain the purpose of the program as detail as possible : Count the amount of words in the file. A word can end with a --- space, EOLN character or a punctuation mark (which will be part of the word).
Find the direction of the electric field : In a certain region of space, the electric potential is given by V= 6y. The potential V is given in volts, the coodinate y is given in meters. Find the direction of the electric field
What is the magnitude of the intial velocity : A tennis ball is thrown from ground level with velocity v_0 directed 30 degrees above the horizontal. what is the magnitude of the intial velocity
What is its kinetic energy at the later time : A proton accelerates from rest in a uniform electric field of 524 N/C. At some later time, its speed is 2.36 × 106 m/s. What is its kinetic energy at the later time
Can you recall a situation in which you had to deal : Can you recall a situation in which you had to deal with a conflict in values? What was it? How did you resolve this issue?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Illustrate insertion into the linear hash file

Illustrate insertion into the linear hash file. Suppose that bucket splitting occurs whenever file load factor exceeds (is greater than) 0.8.

  Skech-perofrm pre order traversal on binary search tree

Let the binary search tree (BST) which is initially empty. Sketch the tree which will result if following numbers are inserted in the same order.

  Find out the big-o running time of bubble sort

Find out the big-O running time (tight bound) of bubble sort. Illustrtae your derivation. Count comparisons as critical operation.

  Find the maximum number of bits in the sum

Suppose that the n is an exact power of two. The circuit consists of a complete binary tree of ripple carry adders, in which each node in tree adds 2-numbers.

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Analyzing network problem

Assume you are the Systems Analyst at a producing corporation in Seattle, WA. A Systems Analyst in your company's New York office sends you a trace file to examine.

  Devise a linear-time algorithm to count the parallel edges

Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudocode.

  Determine the benefits of data mining to the businesses

Determine the benefits of data mining to the businesses when employing - Predictive analytics to understand the behavior of customers

  Determine computational complexity of algorithm

Describe the algorithm in psuedo-code. You should give thought to what data structures(s) make sense for e client implementation. Determine computational complexity of your algorithm.

  Developing a new customer order entry system

The system development team at Wilson Corporation is working on developing a new consumer order entry system. In the process on designing the new system,

  Encryption algorithm that does not use the alphabet

Research and submit an encryption algorithm that does not use the alphabet or numbers in the encrypted text.  For instance, if you take a sentence like "I love this class"

  Create algorithm to read file of employee records

Create the algorithm which will read the file of employee records and produce the weekly report of gross earnings for those employees.

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