Find Jobs
Hire Freelancers

Java Homework Problems

$30-250 USD

Completed
Posted over 7 years ago

$30-250 USD

Paid on delivery
I have two small Java homework problems that I need someone to help me with. These will not take long and the assignment is well defined. Once the job has been accepted, I will send you my attempt at the first one. I have finished the second one, but I need someone to check over it and add two methods. 1) Symbol Balancing: Implement a class called SymbolBalance.java. It should take a the name of a java file as a command line argument. Read in the file and check to make sure that all { }'s, ( )'s, [ ]'s, " "'s, and /* */'s are properly balanced. Make sure to ignore characters within literal strings and comment blocks. You do not have to deal with single line comments (those that start with a //). There are a number of error cases: The file ends with one or more opening symbols missing their corresponding closing symbols. There is a closing symbol without an opening symbol. There is a mismatch between closing and opening symbols (for example: { [ } ] ). Your program should output whether or not the symbols are all appropriately balanced. If they are not, indicate which error condition occurred and what symbol type caused the problem. You will need to write your own stack class for this. It should be generic (in this particular case you will be pushing Character objects on it, but it should be capable of handling any object reference). Call your stack class: MyStack.java. You may use [login to view URL] as an instance variable in your MyStack class, but in the implementation of your stack methods, you are only allowed to use its basic list operations, not the stack operations themselves (that is, do not use LinkedList's native push and pop methods). Here is an example. You are given a java file with with the following contents: public class Test { public static final void main(String[ ) args) { [login to view URL]("Hello."); } } You would then run your program: java SymbolBalance [login to view URL] and the output should be something like: Unbalanced! Symbol ) is mismatched. Please be sure to include a test java file with your submission, call it [login to view URL] that illustrates one of the error conditions. To help you with testing, we've written a number of test input files that you can use with your program in the file: [login to view URL] in a new window. 2) Two Stack Queue : Build a queue out of two completely separate stacks, S1 and S2. Enqueue operations happen by pushing the data on to stack 1. Dequeue operations are completed with a pop from stack 2. Obviously you will have to find some way to get the input stack information over to the output stack. Your job is to figure out how and when to do that, using only push and pop operations. Write a class TwoStackQueue that provides the Queue ADT (as specified in the [login to view URL] the documentView in a new window interface) using two stacks. Your class should explicitly implement the interface provided above. Since the interface is generic, your class should be as well. Provide all methods specified in the interface. Your class should not use any additional memory to store the data in the queue except for the two stacks. Use your stack implementation from programming problem 1. Write a tester class with a main method to demonstrate that your TwoStackQueue works correctly (by enqueueing a number of objects and then dequeueing and printing them in the correct order). Call your tester class Program2.java. You can find a sample tester class in the file [login to view URL] the documentView in a new window. It is similar to the one that we will use to grade your submission. Your tester should try different examples, than the ones from this sample. In a file called [login to view URL], discuss the big-O running time of the enqueue and dequeue operation for your queue implementation. [login to view URL] file: Points for including the proper README.txt.
Project ID: 11740410

About the project

11 proposals
Remote project
Active 7 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
Awarded to:
User Avatar
It's pretty easy task, I am ready to statt
$30 USD in 1 day
4.9 (647 reviews)
6.8
6.8
11 freelancers are bidding on average $165 USD for this job
User Avatar
Hey i can do your assignment since i am computer scientist and have work experience in java, C# with more than 3 years of work experience. i have pretty much concepts cleared in java as well other languages as well. i always ensure quality work to my clients and i have pretty much good ratting over fiverr regarding solving the assignments. if you need any query please let me know. Regards Tuheed
$200 USD in 3 days
5.0 (12 reviews)
4.6
4.6
User Avatar
Hello there, ( 25$ )Kindly give me this task to me, I will offer you 5 bucks discount on every project including this. I am ready to do in just 25 bucks. Inbox me now.
$30 USD in 3 days
4.8 (42 reviews)
4.9
4.9
User Avatar
Greetings! I’m highly interested in your project as it lies within my domain of expertise. I’m a software engineer and have excellent programming and problem solving skills and have participated in a number of programming competitions. Please PM me for more discussion and any queries you may have. Looking forward to your response. Thanks for considering my bid. Regards. Techxygen
$200 USD in 3 days
5.0 (6 reviews)
4.1
4.1
User Avatar
Hey there, I have read your job description and i am very confident about doing this project. Let me introduce myself, My name is Sumit Kumar and have done my Engineering from University of South Carolina. I am a very good designer and developer with an experience of more than 8 years. I have an experience in following technologies: 1. C, C++ 3. Java, JavaFX, J2EE 4. Android 5. XML 6. Mobile Applications Development My main motive here is to deliver quality services. I am available 24*7 and time zone flexible. Hoping for your positive reply Thanks
$155 USD in 3 days
5.0 (2 reviews)
3.6
3.6
User Avatar
I would like to bid this job because I am really suitable for job description: First: I am an software engineer who is very expertise with Java. In fact, I have done so many project of Java(Karatsuba multiplier, Nintendo design, encryption algorithm like Sax Hash, Bernstein Hash, HummingBird...Also, I participated in a Walker Recognition project(data from Camera to Human Detection(image processing-HOG feature and Adaboost) and display in VGA). Besides,,I implemented the image conpression (wavelet transform). Also, I am very good in English (IELTS 6.0) and I have several year of researching so I can fully understand your requirement and understand fully about the papers and write the academic report.. Please contact me and let me know if you want any special requirement and do with lower price. Thank you.
$50 USD in 3 days
4.8 (5 reviews)
3.7
3.7
User Avatar
HI SIR AWARD ME RIGHT NOW I M 100% CONFIDENT FOR THIS PROJECT!!! I am ready to start this immediately. I am extremely eager and ready to go. I am all of the following; attentive, detailed, creative, dedicated, efficient and effective. I can follow instructions extremely well and am very focused on providing only the best outcome - after all my work for you is a representation of myself and it must be 110%!! experts here, ready to start right now. Fluent English and always available on to discuss project specs. Why waste your time with anyone else
$250 USD in 3 days
4.9 (8 reviews)
3.3
3.3

About the client

Flag of UNITED STATES
Washington, DC, United States
5.0
11
Payment method verified
Member since Mar 8, 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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.