Create public java class named benford

Assignment Help Computer Engineering
Reference no: EM132158130

Use Java to program the following.

1. Create public java class named Benford.

2. It's main function should prompt for the name of a data file and then the function iterates through the all of the elements in the data file and computes the frequency (count and percentage) of the first number in each entry.

3. Note: Some of the data files have comments that you must filter out.

4. Also note: that blank lines or lines where the number begins or is 0 must also be filtered out.

5. Your output must be formatted as follows.

Digit Count Frequency 1 3 0.30 2 2 0.20 3 2 0.20 4 0 0.00 5 0 0.00 6 0 0.00 7 2 0.20 8 0 0.00 9 1 0.10

Reference no: EM132158130

Questions Cloud

Difference between catabolic pathway and anabolic pathway : What is the difference between catabolic pathway and anabolic pathway?
Defeat and laboratory findings and treatment : Select one of the hemolytic diseases caused by a genetic defect and describe the defeat and laboratory findings and treatment.
Design a graphical user interface to show the conversion : Design a graphical user interface (GUI) to show the conversion between decimal numbers and two's complement numbers.
Prokaryotic and eukaryotic cells : Identify three similarities and differences between prokaryotic and eukaryotic cells?
Create public java class named benford : It's main function should prompt for the name of a data file and then the function iterates through the all of the elements in the data file.
Many algae are photosynthetic : 1. Hypothesize in what type of environments it would be advantageous for a protist to be autotrophic, heterotrophic, or mixotrophic.
Write a method findlongestpalindrome : Write a method findLongestPalindrome(String s) that returns the longest palindrome (string that matches its own reverse) contained within the parameter s.
What traits would those organisms : What traits would those organisms have that you would be able to see? list at least four different traits.
Create a program that acts as a account that display : Use html to create a program that acts as a account that displays your order history, payment options and personal info like your name and address.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe an algorithm for building the index

Describe an algorithm for building the index and give its big-Oh running time in terms of the total number of words.

  Explain how this storage space works where it is located in

ram is a temporary storage space that is used to store program instructions and data. but accessing ram is inefficient

  Discuss an interesting example of recursion

Find and discuss an interesting example of recursion - thus, an example other than those presented in the readings.

  Write an application that extends jframe

Write an application that extends JFrame and that displays a yellow smiling face on the screen. save file as JSmileFace.java

  Why network is key to data needs throughout the organization

Imagine that you are an IT organizational leader in a mid-sized company. Moreover, analyze the main reasons why the network is the key to data needs throughout the organization.

  Write a function float computetax

Write a function float computeTax(float saleamount) that takes the price of a purchase as input,and prints to the screen the amount of the purchase.

  Write a program using a stack abstract datatype

Write a program using a stack abstract datatype to get the correct count for the trees in different parts of the jungle.

  Create application that contains a textbox for persons name

Create a application that contains a textbox for person's name. Plan that user may enter only first and last name or they may enter first, middle and last name.

  Create a menu program for the user to test your buffer

Create a menu program for the user to test your buffer and to create a palindrome. For queue, prompt the user to enter two chances and total number of rounds.

  List the steps in the process of object-oriented design

List the steps in the process of object-oriented design that this chapter recommends for student use. Give a rule of thumb for how to find classes.

  Find an optimal parenthesization of a matrix-chain product

Find an optimal parenthesization of a matrix-chain product whose sequence of dimensions - show the dynamic programming tables at the end of the computation.

  Determine the optimal product mix for a package

The liver flavored biscuits contain 1 unit of nutrient A and 2 units of nutrient B; the chicken flavored biscuits contain 1 unit of nutrient

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