# Java object oriented programming (freshman level)

Java object oriented programming (freshman level)
Place a Bid
Amount you will charge(\$) A 10% transaction fee will be added to your bid
Submit
Bids Placed by Scholars
Actions
Bookmark Project
Details
Posted By View Student Profile
Subject Computer
Deadline (Pacific Time) 03/19/2017 08:58 pm
Budget \$30-\$100
I have attached 2 assignments and 3 files(a04 solution, a05, and a06). ao5 builds off of a04 solution, and a06 builds off of a05 when complete. If I am pleased with
the quality of the work I will be seeking a weekly arrangement for up to 6 weeks. I have 2 assignments due this Sunday at 11:59 CST, then will have an assignment due
each sunday following that (with exceptions)

Â

Quality/speed of work is more important than price, so I am willing to negotiate.

fastest way to contact me is at cshomeworkacct@gmail.com
File #1
File #2
File #3

Assignment 5
Calculator Framework due on March 5
Objectives: frameworks, inheritance, trees, tree traversal, visitor design pattern
This is a pair assignment. You can solve the assignment alone or in a team of two. Do not
copy code from other students or teams!
Background: In Assignments 2 – 4, we have built a calculator framework. The current calculator
instances compute as the calculator input is processed. However, instead of computing immediately,
we could also represent the calculation in form of an expression tree. Consider the figures below
representing the input in tree format. Expression trees represent computations in form of a tree.
The tree consists of interior nodes that represent operations, and leaf nodes that represent values.
(a) represents (3 + 4) ∗ 5 (b) represents 3 + 4 + 5
In order to compute an expression at the root of the tree, we can compute the result of its
subexpressions. For example, Fig. 1a represents the an expression tree for the input (3 + 4) ∗ 4.
The last computation in this tree is the multiplication. Before it can be carried out, we need to
compute the results of its subtrees. The left-hand subtree is an add operation. In order to compute
the result for add, we “compute” the result of its sub-expressions. Its subexpression are two values,
which are leaf-nodes in the tree. Their computation just yields their values, 3 and 4 respectively.
Then, we can carry out the add, yielding 7. Before we can compute the multiplication, the result
for its right-hand branch has to be computed. Its computation yields 4. Hence the result will yield
28. Similarly the result can be computed for the right-hand example.
For this assignment you can continue your own framework, or you start from the model solution
for Assignment 4. The model solution also includes classes that represent operations and values for
the expression tree. The UML diagram of this classes is depicted in Fig. 2.
• Build a calculator that returns the root of an expression tree (instead of performing the calculation
immediately). To this end, implement a class ExprTreeTokenizer that parses doubles
and returns the content in an object of type Value. Second, a class ExprTreeCalculator will
be needed that creates the corresponding tokenizer object. No modification of the calculator
base classes should be required.
1
Figure 2: UML showing expression classes
• Implement the method toString in all concrete subclasses of Expression. The output of
toString should be a string representing the same expression. A leaf node would just return
the value in form of a string. An interior node would concatenate the result of toString
of the left side, the operator, and the result of toString of its right hand side operand. To
preserve operator precedence, add and sub would use parenthesis around their expression.
For example, the output for the two sample expressions in Fig. 1a and Fig. 1b would be
(3 + 4) ∗ 4 an ((3 + 4) + 4) respectively.
• Implement the method equals in all concrete subclasses of Expression. Two expression
nodes are equal if they have the same type and if their subtrees are equal. Two Value nodes
are equal if they contain the same value.
• Extend the expression classes with the Visitor pattern.
– Define an abstract class Visitor that contains methods for visiting all nodes in an
expression tree (all subclasses of Expression).
– Extend the class Expression with an abstract void accept(Visitor v) method.
– Implement the accept method in all concrete classes that extend Expression.
• Implement a class CalcVisitor that computes the numeric result of an expression tree.
If the problem statement is unclear, use the Canvas forum to ask for clarifications.
2
Turn in a zip file named blazerid hw5.zip. The file should contain an exported Eclipse project1
with the following items.
• All files needed to compile and run your solution.
• A document (or text file) that states how the team collaborated on the assignment (responsibilities),
help from somebody else in class, please give credit to those students. If you would like to get
a graded version on paper, add a note at the top of the report saying “paper copy requested”.
• (10pts) Lab attendance (Week of Feb 27.)
• (10pts) Assignment report (see paragraph above)
• (10pts) The ExprCalculator produces a correct expression tree.
• (10pts) toString and equals work correctly.
• (10pts) Provision for the Visitor pattern is implemented.
• (10pts) CalcVisitor works correctly.
1
If you do not use Eclipse, the turned in file also needs to have a file readme.txt in its top directory that explains
how to compile and test your code.
3
Assignment 6
Calculator/Plotter due on March 19
Objectives: frameworks, inheritance, graphical user interface, graphics
This is a pair assignment. You can solve the assignment alone or in a team of two. Do not
copy code from other students or teams!
Background: This assignment builds on Assignment 5. You can use your own code, or the posted
model solution. The goal of this assignment is to create a plotter that reads an arithmetic expression
containing a variable, evaluates the expression over a given range, and plots the output as a graph.
• Enhance the ExprTreeCalculator with the ability to read variables.
– Introduce a new subclass of expression (e.g., Variable) that holds the name of a variable.
– Extend the visitor pattern with visit methods for the new sub-class.
– Extend the ExprTreeTokenizer so that it recognizes variables (a sequence of characters)
as a number.
• Create a graphical or text (your choice) user interface that allows the user to input the
expression, the range of the variable, and the size of the graphical window.
For example, a textual input could look like this.
plot in 300 x 300 for x from 0 to 20
x ∗ 2 + (1 / (x+1)) + 1
The first line describes what needs to be done. Plot in a 300×300 window, a graph for a
variable y ranging from 0 to 20. The second line is the function which we want to plot.
• Draw the graph on the screen
– Compute the step size for the evaluation. In the example, the step size would be 300
(size of output) divided by 20 (range of variable).
– Evaluate the expression at each step and store the coordinates.
– Creates a JFrame with a JComponent
– Draw the output into the JComponent
If the problem statement is unclear, use the Canvas forum to ask for clarifications.
1
Turn in a zip file named blazerid hw6.zip. The file should contain an exported Eclipse project1
with the following items.
• All files needed to compile and run your solution.
• A document (or text file) that states how the team collaborated on the assignment (responsibilities),
help from somebody else in class, please give credit to those students. If you would like to get
a graded version on paper, add a note at the top of the report saying “paper copy requested”.
• (10pts) Lab attendance (Week of Mar 6.)
• (10pts) Assignment report (see paragraph above)
• (10pts) The ExprCalculator can read in expressions with variables, and the built-in methods
work correctly (i.e., toString, equals).
• (10pts) The user interface allows the user to input the desired data, and the data is processed
correctly.
• (10pts) The function is plotted correctly.
1
If you do not use Eclipse, the turned in file also needs to have a file readme.txt in its top directory that explains
how to compile and test your code.
2

# Our Service Charter

1. ### Excellent Quality / 100% Plagiarism-Free

We employ a number of measures to ensure top quality essays. The papers go through a system of quality control prior to delivery. We run plagiarism checks on each paper to ensure that they will be 100% plagiarism-free. So, only clean copies hit customers’ emails. We also never resell the papers completed by our writers. So, once it is checked using a plagiarism checker, the paper will be unique. Speaking of the academic writing standards, we will stick to the assignment brief given by the customer and assign the perfect writer. By saying “the perfect writer” we mean the one having an academic degree in the customer’s study field and positive feedback from other customers.
2. ### Free Revisions

We keep the quality bar of all papers high. But in case you need some extra brilliance to the paper, here’s what to do. First of all, you can choose a top writer. It means that we will assign an expert with a degree in your subject. And secondly, you can rely on our editing services. Our editors will revise your papers, checking whether or not they comply with high standards of academic writing. In addition, editing entails adjusting content if it’s off the topic, adding more sources, refining the language style, and making sure the referencing style is followed.
3. ### Confidentiality / 100% No Disclosure

We make sure that clients’ personal data remains confidential and is not exploited for any purposes beyond those related to our services. We only ask you to provide us with the information that is required to produce the paper according to your writing needs. Please note that the payment info is protected as well. Feel free to refer to the support team for more information about our payment methods. The fact that you used our service is kept secret due to the advanced security standards. So, you can be sure that no one will find out that you got a paper from our writing service.
4. ### Money Back Guarantee

If the writer doesn’t address all the questions on your assignment brief or the delivered paper appears to be off the topic, you can ask for a refund. Or, if it is applicable, you can opt in for free revision within 14-30 days, depending on your paper’s length. The revision or refund request should be sent within 14 days after delivery. The customer gets 100% money-back in case they haven't downloaded the paper. All approved refunds will be returned to the customer’s credit card or Bonus Balance in a form of store credit. Take a note that we will send an extra compensation if the customers goes with a store credit.

We have a support team working 24/7 ready to give your issue concerning the order their immediate attention. If you have any questions about the ordering process, communication with the writer, payment options, feel free to join live chat. Be sure to get a fast response. They can also give you the exact price quote, taking into account the timing, desired academic level of the paper, and the number of pages.

Excellent Quality
Zero Plagiarism
Expert Writers

or

## Instant Quote

Instant Quote
 Subject: Please Select... Art   Architecture   Dance   Design Analysis   Drama   Movies   Music   Paintings   Theatre Biology Business Chemistry Communications and Media   Advertising   Communication Strategies   Journalism   Public Relations Creative writing Economics   Accounting   Case Study   Company Analysis   E-Commerce   Finance   Investment   Logistics   Trade Education   Application Essay   Education Theories   Pedagogy   Teacher's Career Engineering English Ethics History   African-American Studies   American History   Asian Studies   Canadian Studies   East European Studies   Holocaust   Latin-American Studies   Native-American Studies   West European Studies Law   Criminology   Legal Issues Linguistics Literature   American Literature   Antique Literature   Asian Literature   English Literature   Shakespeare Studies Management Marketing Mathematics Medicine and Health   Alternative Medicine   Healthcare   Nursing   Nutrition   Pharmacology   Sport Nature   Agricultural Studies   Anthropology   Astronomy   Environmental Issues   Geography   Geology Philosophy Physics Political Science Psychology Religion and Theology Sociology Technology   Aeronautics   Aviation   Computer Science   Internet   IT Management   Web Design Tourism Type: Please Select... Essay Term Paper Research Paper Coursework Book Report Book Review Movie Review Dissertation Thesis Thesis Proposal Research Proposal Dissertation Chapter - Abstract Dissertation Chapter - Introduction Chapter Dissertation Chapter - Literature Review Dissertation Chapter - Methodology Dissertation Chapter - Results Dissertation Chapter - Discussion Dissertation Services - Editing Dissertation Services - Proofreading Formatting Admission Services - Admission Essay Admission Services - Scholarship Essay Admission Services - Personal Statement Admission Services - Editing Editing Proofreading Case Study Lab Report Speech Presentation Math Problem Article Article Critique Annotated Bibliography Reaction Paper PowerPoint Presentation Statistics Project Multiple Choice Questions (None-Time-Framed) Other (Not listed) Pages/Words: 1 page/approx 275 words 2 pages/approx 550 words 3 pages/approx 825 words 4 pages/approx 1100 words 5 pages/approx 1375 words 6 pages/approx 1650 words 7 pages/approx 1925 words 8 pages/approx 2200 words 9 pages/approx 2475 words 10 pages/approx 2750 words 11 pages/approx 3025 words 12 pages/approx 3300 words 13 pages/approx 3575 words 14 pages/approx 3850 words 15 pages/approx 4125 words 16 pages/approx 4400 words 17 pages/approx 4675 words 18 pages/approx 4950 words 19 pages/approx 5225 words 20 pages/approx 5500 words 21 pages/approx 5775 words 22 pages/approx 6050 words 23 pages/approx 6325 words 24 pages/approx 6600 words 25 pages/approx 6875 words 26 pages/approx 7150 words 27 pages/approx 7425 words 28 pages/approx 7700 words 29 pages/approx 7975 words 30 pages/approx 8250 words 31 pages/approx 8525 words 32 pages/approx 8800 words 33 pages/approx 9075 words 34 pages/approx 9350 words 35 pages/approx 9625 words 36 pages/approx 9900 words 37 pages/approx 10175 words 38 pages/approx 10450 words 39 pages/approx 10725 words 40 pages/approx 11000 words 41 pages/approx 11275 words 42 pages/approx 11550 words 43 pages/approx 11825 words 44 pages/approx 12100 words 45 pages/approx 12375 words 46 pages/approx 12650 words 47 pages/approx 12925 words 48 pages/approx 13200 words 49 pages/approx 13475 words 50 pages/approx 13750 words 51 pages/approx 14025 words 52 pages/approx 14300 words 53 pages/approx 14575 words 54 pages/approx 14850 words 55 pages/approx 15125 words 56 pages/approx 15400 words 57 pages/approx 15675 words 58 pages/approx 15950 words 59 pages/approx 16225 words 60 pages/approx 16500 words 61 pages/approx 16775 words 62 pages/approx 17050 words 63 pages/approx 17325 words 64 pages/approx 17600 words 65 pages/approx 17875 words 66 pages/approx 18150 words 67 pages/approx 18425 words 68 pages/approx 18700 words 69 pages/approx 18975 words 70 pages/approx 19250 words 71 pages/approx 19525 words 72 pages/approx 19800 words 73 pages/approx 20075 words 74 pages/approx 20350 words 75 pages/approx 20625 words 76 pages/approx 20900 words 77 pages/approx 21175 words 78 pages/approx 21450 words 79 pages/approx 21725 words 80 pages/approx 22000 words 81 pages/approx 22275 words 82 pages/approx 22550 words 83 pages/approx 22825 words 84 pages/approx 23100 words 85 pages/approx 23375 words 86 pages/approx 23650 words 87 pages/approx 23925 words 88 pages/approx 24200 words 89 pages/approx 24475 words 90 pages/approx 24750 words 91 pages/approx 25025 words 92 pages/approx 25300 words 93 pages/approx 25575 words 94 pages/approx 25850 words 95 pages/approx 26125 words 96 pages/approx 26400 words 97 pages/approx 26675 words 98 pages/approx 26950 words 99 pages/approx 27225 words 100 pages/approx 27500 words 101 pages/approx 27775 words 102 pages/approx 28050 words 103 pages/approx 28325 words 104 pages/approx 28600 words 105 pages/approx 28875 words 106 pages/approx 29150 words 107 pages/approx 29425 words 108 pages/approx 29700 words 109 pages/approx 29975 words 110 pages/approx 30250 words 111 pages/approx 30525 words 112 pages/approx 30800 words 113 pages/approx 31075 words 114 pages/approx 31350 words 115 pages/approx 31625 words 116 pages/approx 31900 words 117 pages/approx 32175 words 118 pages/approx 32450 words 119 pages/approx 32725 words 120 pages/approx 33000 words 121 pages/approx 33275 words 122 pages/approx 33550 words 123 pages/approx 33825 words 124 pages/approx 34100 words 125 pages/approx 34375 words 126 pages/approx 34650 words 127 pages/approx 34925 words 128 pages/approx 35200 words 129 pages/approx 35475 words 130 pages/approx 35750 words 131 pages/approx 36025 words 132 pages/approx 36300 words 133 pages/approx 36575 words 134 pages/approx 36850 words 135 pages/approx 37125 words 136 pages/approx 37400 words 137 pages/approx 37675 words 138 pages/approx 37950 words 139 pages/approx 38225 words 140 pages/approx 38500 words 141 pages/approx 38775 words 142 pages/approx 39050 words 143 pages/approx 39325 words 144 pages/approx 39600 words 145 pages/approx 39875 words 146 pages/approx 40150 words 147 pages/approx 40425 words 148 pages/approx 40700 words 149 pages/approx 40975 words 150 pages/approx 41250 words 151 pages/approx 41525 words 152 pages/approx 41800 words 153 pages/approx 42075 words 154 pages/approx 42350 words 155 pages/approx 42625 words 156 pages/approx 42900 words 157 pages/approx 43175 words 158 pages/approx 43450 words 159 pages/approx 43725 words 160 pages/approx 44000 words 161 pages/approx 44275 words 162 pages/approx 44550 words 163 pages/approx 44825 words 164 pages/approx 45100 words 165 pages/approx 45375 words 166 pages/approx 45650 words 167 pages/approx 45925 words 168 pages/approx 46200 words 169 pages/approx 46475 words 170 pages/approx 46750 words 171 pages/approx 47025 words 172 pages/approx 47300 words 173 pages/approx 47575 words 174 pages/approx 47850 words 175 pages/approx 48125 words 176 pages/approx 48400 words 177 pages/approx 48675 words 178 pages/approx 48950 words 179 pages/approx 49225 words 180 pages/approx 49500 words 181 pages/approx 49775 words 182 pages/approx 50050 words 183 pages/approx 50325 words 184 pages/approx 50600 words 185 pages/approx 50875 words 186 pages/approx 51150 words 187 pages/approx 51425 words 188 pages/approx 51700 words 189 pages/approx 51975 words 190 pages/approx 52250 words 191 pages/approx 52525 words 192 pages/approx 52800 words 193 pages/approx 53075 words 194 pages/approx 53350 words 195 pages/approx 53625 words 196 pages/approx 53900 words 197 pages/approx 54175 words 198 pages/approx 54450 words 199 pages/approx 54725 words 200 pages/approx 55000 words Single spaced approx 275 words per page Urgency (Less urgent, less costly): Please Select... 6 hours 12 hours 24 hours 48 hours 3 days 4 days 5 days 7 days 10 days 20 days 30 days Level: Choose High School Undergraduate Master Ph. D. Currency: USD GBP CAD AUD EUR Total Cost: NaN

Get 10% Off on your 1st order!