Find Jobs
Hire Freelancers

String Statistics

$30-250 USD

In Progress
Posted over 10 years ago

$30-250 USD

Paid on delivery
Getting Started Exercise 1: String Statistics Write a class StringStatistics that provides statistics about a string of text. The class should provide a method that counts the number of digits, vowels, consonants found in the text string, and a method that returns the most frequent character in the string. Complete the following StringStatistics class: Constructors public StringStatistics (String text) Constructs a new string statistics object with the specified text Methods public int getNumberOfVowels() Counts the number of vowels (a, e, i, o u) contained in the text. This method should be case insensitive. public int getNumberOfConsonants() Counts the number of consonants contained in the text. This method should be case insensitive. public char getMostFrequentChar() Finds and returns the character occurring most frequently. If there is a tie, the first character found in the string wins the tie. public int getWordCount() Returns the number of words found in the text. For this method, a word is considered any sequence of characters that is separated by white space. Demonstrate the StringStatistics class in a program called StringStatisticsTestMain. The StringStatisticsTestMain class should prompt the user for a line of text to analyze and then print each of the string statistics. Exercise 2: Word Puzzle Create a class called Puzzle that is used to manage a word puzzle like those found on the TV game show Wheel of Fortune. A Puzzle should have at least two instance variables described below: ● solution (type String): Represents the answer to the puzzle ● puzzle (type StringBuilder): Presents the current state of the puzzle. Letters that have not been guessed should be represented with a hyphen. Letters that have been correctly guessed should be included in the puzzle A start to the Puzzle class has been provided for you in the [login to view URL] files. You should import it into your project and implement each method in the file. Here is an example usage of the class: Puzzle puzzle = new Puzzle("BIG JAVA"); //SHOULD PRINT OUT: --- ---- //THE LETTERS SHOULD BE HYPHENS SINCE NO LETTERS HAVE BEEN GUESSED [login to view URL]([login to view URL]()); //OCCURRENCES SHOULD BE 1 SINCE THERE IS ONE B IN THE SOLUTION int occurrences = [login to view URL]('b') ; //SHOULD PRINT OUT: B-- ---- //SINCE THE B IS GUESSED [login to view URL]([login to view URL]()); //OCCURRENCES SHOULD BE 0 SINCE //THE LETTER B HAS ALREADY BEEN GUESSED int occurrences = [login to view URL]('b') ; Write a tester program called PuzzleTestMain that creates a Puzzle and continually asks the user to either (1) guess a letter, (2) solve the puzzle, or (3) quit. If the user chooses to guess a letter, you program should prompt the user for the letter and then output the number of occurrences of that letter in the puzzle. If the user chooses to solve the puzzle, the program should prompt the user for the solution and then display whether the solution is correct. If the solution is correct, the game should end. In between guessing letters and solutions, the current state of the puzzle is displayed. If the user chooses to quit at the top level menu, the program should end.
Project ID: 5342340

About the project

42 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
42 freelancers are bidding on average $106 USD for this job
User Avatar
Hello , We have a team of Skilled Java-J2EE professionals with experience upto 8 yrs. You will be able to directly communicate with our technical expert. Our Expertise is J2EE: 1) Frameworks: Struts, Spring , Hibernate , Lucerne, Quartz, Ant, , Cruise Control, jUnit, DbUnit, Mybatis 2) Web Technology: JSP, JSTL, JSF, JQuery, Ajax, Java Script, DWR, FCK Editor, Extjs 3) Application Servers: JBoss, Web logic, Web Sphere, Apache Tomcat, Sun ONE 4) Payment Gateway: PayPal Integration, can integrate any other payment gateways too 5) Tools: Maven, Ant, xDoclet, iReport 3.6 Jasper Report (with iReport), ceWolf API (charts), Maxmind GEOIP API, Atlas Device, Flow Player integration, Google Analytics, adMob Analytics, Google Adword, YouTube API, Document Viewer Integration, Display Tag Libraries, Fusion Charts API, ammap API. More details will be provided on request. By doing this work, we are interested in developing long term relationship by displaying our quality. Thanks for reading our proposal. Regards.
$144 USD in 7 days
4.9 (329 reviews)
8.4
8.4
User Avatar
Hello, I am Java expert and can surely help you here with this project, Please let me know if you are interested. Thank You
$100 USD in 2 days
4.7 (409 reviews)
7.4
7.4
User Avatar
Hi Sir, I am ready to work for you.I have 9 years of experience in C/C++/C# , java, php, android and, MySQL. please see some of my works also check my reviews you will get better idea about my skill.I deliver quality work within time frame. Please visit my profile once. Thanks with regards, Amit
$164 USD in 3 days
4.9 (150 reviews)
7.1
7.1
User Avatar
A proposal has not yet been provided
$54 USD in 3 days
4.9 (651 reviews)
6.9
6.9
User Avatar
hi this is Asad, i have a lot of experience in java programming, you can read reviews from my profile too,this is just a piece of cake for me,hire me wont disappoint you,cheers :)
$50 USD in 3 days
4.9 (91 reviews)
6.7
6.7
User Avatar
Hello, Could I use Regex in the solution? BR, Mary
$50 USD in 3 days
4.9 (111 reviews)
6.4
6.4
User Avatar
Hello, I can get you the necessary code implemented in 1 day. Let me know if interested Thanks
$30 USD in 1 day
5.0 (106 reviews)
6.2
6.2
User Avatar
Hello. I have a great experience in working with students assignments in c/c++ and java. I have 100% completing rate and all of the my employees are satisfied with the quality and speed of my work. See my profile to be sure of this. I can start the work right now. Don't lose your money and time. contact me please for more information
$40 USD in 2 days
4.9 (56 reviews)
5.1
5.1
User Avatar
Hello, This is a simple work and I can deliver 100% quality. Please let me know when to start. Your satisfaction and grade will be A+. Best regards, Alex
$50 USD in 3 days
4.9 (26 reviews)
5.2
5.2
User Avatar
Hello, I am an experienced software engineer with background in java. I can deliver Uni quality code in less than two days.
$50 USD in 2 days
5.0 (27 reviews)
5.0
5.0
User Avatar
Hi, I am a java programmer having over 6 years of industry experience. I went through the requirement and I am sure that I can deliver you the code meeting all your requirements. Not only that , I will explain the logic and flows so that you could explain it well if asked. I will make sure that you get good grade. You can catch me on skype (axeeffect2002) if you want to discuss about the project. Looking forward working with you.
$66 USD in 3 days
4.9 (32 reviews)
4.7
4.7
User Avatar
Hi, I am a graduate in CS and working as a Java programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com. I assure you of clean, efficient code with proper comment and documentation. thanks
$100 USD in 3 days
4.8 (27 reviews)
4.9
4.9
User Avatar
Hi, I am an expert in java programming and software development. I can do this task for you. Thank you.
$40 USD in 2 days
5.0 (21 reviews)
4.8
4.8
User Avatar
hello i have 2+ year experience in java. also you can check my java work review . give me onr opportunity i can prove my java skill
$147 USD in 3 days
4.3 (17 reviews)
5.1
5.1
User Avatar
Hello newJava, I have read your requirements and I would like to work on this project for you. I am a very good Java Developer and I have completed several projects on freelancer with customer satisfaction over average. I would really appreciate if you respond so I can start working on this project. I would deliver in time (in 24 hours) and will be ready to support where you don't understand. I will be expecting your kind response. Thanks
$100 USD in 1 day
4.7 (22 reviews)
4.7
4.7
User Avatar
This is an extremely easy project. I can deliver clean, error-free, thoroughly documented code. Please see my previous feedback.
$50 USD in 3 days
5.0 (13 reviews)
4.2
4.2
User Avatar
Hi, I am a java developer having 6 years of professional experience. I can do this task very quickly within time period.
$50 USD in 3 days
4.9 (27 reviews)
4.3
4.3
User Avatar
Hello, I have been working in Java for the last 4 years, mostly with data collecting, so I am very familiar to String and it's utilities. I am guessing this is an assignment, so the code will be easy to understand, clear, object-oriented, commented, and I am willing to answer any questions, even after the project is finished. I would like to help you with your project. Best wishes
$30 USD in 1 day
5.0 (18 reviews)
4.3
4.3
User Avatar
Hi I have lots of experiences in java programming. You can check my profile . Your project is easy i can do this very fast, please let me do this for you :D
$45 USD in 1 day
4.9 (17 reviews)
4.1
4.1
User Avatar
I have 17 years development experience 13 of those in Java, so this will not be an issue. let me know what development environment you are using and how soon you need this.
$111 USD in 10 days
5.0 (6 reviews)
4.1
4.1

About the client

Flag of UNITED STATES
Wilson, United States
5.0
3
Member since Jan 20, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.