Final project - Overview Ready to be finally Object Oriented and have fun? You will be...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Final project - Overview Ready to be finally Object Oriented and have fun? You will be converting homework #2, 3 and 4 into the project. You will create TheFarm and TheFarmer classes. There will be several Farmers working on TheFarm. There will be several possible tasks to accomplish on TheFarm, for example: • calculate how many days left in the year to do a better harvest planning • how much wood to buy for a fence around TheFarm • one of the farmers could be a German contractor who is going to be helping on the farm with the fence, who does not think in miles, but understands meters and kilometers • Each Farmer should have a nick name consisting of a part of their first name and a part of their last name followed maybe by "TheFarmer", so your DJ becomes Fred Farmer with the nick name FreMerTheFarmer, for example Ⓒ Feel free to be creative with the nick names. In your driver class you can decide which farmer to give which task and do it "forever" or until your user is fed-up with your program. 10% of your final grade Use only the material introduced in cs110 At a minimum, contains at least one from each of the following: Fundamentals: a println or print method, OR uses a dialog box Fundamentals: relies on Scanner, to read input from the keyboard Decision Structures: an if, if-else, or an if-else-if statement Decision Structures: a switch statement Loops: a while, do-while, or for loop Files: utilizes the File class, to read from, or write to a file Randomness: uses the Random class and the random number generator Methods: at least three non-static methods (other than main, "getters" and "setters", outside driver class). They cannot be of the same "type." The five "types" are 1) receives no uments and returns void, 2) receives a single argument and returns void, 3) receives a single argument and returns a value, 4) receive multiple arguments and return void, 5) receive multiple arguments and returns a value. Array: either single dimensional or multidimensional, or ArrayList Page 1 > of 2 ZOOM + ● "setters´´, outside driver class). They cannot be of the same "type." The five "types" are 1) receives no arguments and returns void, 2) receives a single argument and returns void, 3) receives a single argument and returns a value, 4) receive multiple arguments and return void, 5) receive multiple arguments and returns a value. Array: either single dimensional or multidimensional, or ArrayList RUBRIC Class: 2 classes other than the driver class. Fully commented Items Required components Uses print or println Uses Scanner (no hardcoding user data) if, if-else, if-else-if, etc. switch statement while, do-while, or for loop File I/O Uses the Random class Two non-driver Classes (with contractors) properly used in the "driver class" At least three non-static not "getters" or "setters" methods outside the "driver class that are used No statics (just main) Array or ArrayList Program compiles Runs as expected Headers, proper names, comments, code formatting, etc. Total Final code uploaded to Canvas, do not ZIP. Points Available 10 20 20 10 10 10 10 10 100 Page 2 of 2 ZOOM + Final project - Overview Ready to be finally Object Oriented and have fun? You will be converting homework #2, 3 and 4 into the project. You will create TheFarm and TheFarmer classes. There will be several Farmers working on TheFarm. There will be several possible tasks to accomplish on TheFarm, for example: • calculate how many days left in the year to do a better harvest planning • how much wood to buy for a fence around TheFarm • one of the farmers could be a German contractor who is going to be helping on the farm with the fence, who does not think in miles, but understands meters and kilometers • Each Farmer should have a nick name consisting of a part of their first name and a part of their last name followed maybe by "TheFarmer", so your DJ becomes Fred Farmer with the nick name FreMerTheFarmer, for example Ⓒ Feel free to be creative with the nick names. In your driver class you can decide which farmer to give which task and do it "forever" or until your user is fed-up with your program. 10% of your final grade Use only the material introduced in cs110 At a minimum, contains at least one from each of the following: Fundamentals: a println or print method, OR uses a dialog box Fundamentals: relies on Scanner, to read input from the keyboard Decision Structures: an if, if-else, or an if-else-if statement Decision Structures: a switch statement Loops: a while, do-while, or for loop Files: utilizes the File class, to read from, or write to a file Randomness: uses the Random class and the random number generator Methods: at least three non-static methods (other than main, "getters" and "setters", outside driver class). They cannot be of the same "type." The five "types" are 1) receives no uments and returns void, 2) receives a single argument and returns void, 3) receives a single argument and returns a value, 4) receive multiple arguments and return void, 5) receive multiple arguments and returns a value. Array: either single dimensional or multidimensional, or ArrayList Page 1 > of 2 ZOOM + ● "setters´´, outside driver class). They cannot be of the same "type." The five "types" are 1) receives no arguments and returns void, 2) receives a single argument and returns void, 3) receives a single argument and returns a value, 4) receive multiple arguments and return void, 5) receive multiple arguments and returns a value. Array: either single dimensional or multidimensional, or ArrayList RUBRIC Class: 2 classes other than the driver class. Fully commented Items Required components Uses print or println Uses Scanner (no hardcoding user data) if, if-else, if-else-if, etc. switch statement while, do-while, or for loop File I/O Uses the Random class Two non-driver Classes (with contractors) properly used in the "driver class" At least three non-static not "getters" or "setters" methods outside the "driver class that are used No statics (just main) Array or ArrayList Program compiles Runs as expected Headers, proper names, comments, code formatting, etc. Total Final code uploaded to Canvas, do not ZIP. Points Available 10 20 20 10 10 10 10 10 100 Page 2 of 2 ZOOM +
Expert Answer:
Answer rating: 100% (QA)
I can help you get started with the design of the classes and methods for your final project Lets break down the requirements and create a basic struc... View the full answer
Related Book For
Practical Management Science
ISBN: 978-1305250901
5th edition
Authors: Wayne L. Winston, Christian Albright
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
A beam of light consisting of two wavelengths, 650 nm and 520 nm, is used to obtain interference fringes in a Young's double-slit experiment. Find the distance of the third bright fringe on the...
-
Using the information in the previous question, assume that the Collins' Form 1095-A also indicated that the total advance payment of the premium tax credit was $9,200. Calculate the excess advance...
-
Write an equation of the following parabolas. (-1,0). H Directrix x = -2 + 2 X
-
Determine whether each of the following is true or false. In each case, assume \(P\) is located at \(t=0\) and \(F\) is located at \(t=n\), and the \(A\) s are spread uniformly over the planning...
-
Frevert purchased a new piece of equipment to be used in its new facility. The $370,000 piece of equipment was purchased with a $50,000 down payment and with cash received through the issuance of a...
-
We are presented with growth strategies Each firm is free to choose their own development strategy based on the profit potential of their choice. . a) Does either firm have a dominant strategy? (6...
-
Walmart Inc. is the world's largest retailer. A large portion of the premises that the company occupies are leased. Its financial statements and disclosure notes revealed the following information:...
-
1. Positive Message (5 points) refer to your textbook "checklist: writing routine replies and positive messages. Write an example of a message that if kept too direct it might seem impersonal and not...
-
You currently work at IBM and are applying for a new Diversity, Equity, and Inclusion (DEI) Manager position. As part of your interview process, you are to create a comparative analysis of IBM and...
-
The business where you work handles a lot of cash - either physical currency or electronic.Write a memo to your supervisor at work, it should describe the risks of handling cash and suggest specific...
-
Using Lehman's Online Library search engine, look up the keywords in your research question. Identify one research study from the past ten years that studied your topic. Do not select clinical...
-
What is a method to check that the following numbers in a financial report are correct and consistent? - Cash at Bank - Foods and Drinks stock - Accrued Wages - Accounts Payable
-
Write a book report on a subject that is of interest to you concerning some aspect of Crisis Intervention. Write a summary of what the book was about and your reaction to the book. Did you like the...
-
In the busy port of Chennai, India, the number of containers loaded onto ships during a 15-week period is as follows: 1. Develop a linear trend equation to forecast container loadings. 2. Using the...
-
1. Suppose that the yields of the five zero-coupon bonds are all 8.5% one year from today. What are the returns of each bond over the period? 2. Using a simulation with 1000 iterations, estimate the...
-
In the RedBrand model in the file RedBrand Logistics Shrinkage Finished.xlsx, change the assumptions. Now instead of assuming that there is some shrinkage at the warehouses, assume that there is...
-
Appliances Unlimited (AU) sells refrigerators. Any refrigerator that fails before it is three years old is replaced for free. Of all refrigerators, 3% fail during their first year of operation; 5% of...
-
Starting with Eq. (4.62), derive Eq. (4.63). Data From Equation (4.62) Data From Equation (4.63)
-
You want to design a side looking synthetic aperture ultrasonic radar operating at f0 = 60 KHz and peak power Pt = 2 W. The antenna beam is conical with 3dB beam width 3dB = 5. The maximum gain is...
-
In reference to Figure 4.18, assume a radar height of \(h_{r}=100 \mathrm{~m}\) and a target height of \(h_{t}=500 \mathrm{~m}\). The range is \(R=20 \mathrm{~km}\). (a) Calculate the lengths of the...
Study smarter with the SolutionInn App