java programming project - Programming
Full requirement and sources code in the attached files.Solve the subset-sum problem.Define the new class(es): GroceriesFileReader, SubsetSum class(es)Practice using the java.util.ArrayList class.Test the class ShoppingBagGet in the habit of dividing larger projects into smaller parts.Use EGit features such as commit and clone to write and read from your repository.For extra credit test the class FoothillTunesStore using your SubsetSum class. programming_assignment__2.pdf ginox99_cs1c_project02.zip Unformatted Attachment Preview 1/15/2020 Programming Assignment #2 Objectives: Solve the subset-sum problem. Define the new class(es): GroceriesFileReader, SubsetSum class(es) Practice using the java.util.ArrayList class. Test the class ShoppingBag Get in the habit of dividing larger projects into smaller parts. Use EGit features such as commit and clone to write and read from your repository. For extra credit test the class FoothillTunesStore using your SubsetSum class. Material from: Syllabus and Program Guidelines. Material from Week 1 modules. Class ShoppingBag, FoothillTunesStore under the subsets package, cs1c package, and example data files (included under the resource folder) in your assigned GitHub repository. First a note... Parts I is required. Part II is optional and is worth four points extra credit. Part I. class ShoppingBag Write the classes GroceriesFileReader and SubsetSum such that class ShoppingBag and main() method will successfully: Read the input file that contains the prices of the different items. Then given the condition of how much the users budget is, determines a list of items we can buy. Were at a cash only store. So, no purchases via checks or credit! Were working with a specific target in the classSubsetSum and findSubset() method. NOTE: Your static findSubset() method is static should be self-contained. This means that it should not depend on astatic or class field. If your implementation relies on these, then these class fields should be initialized every single time the user call the static methods. Finally, captures and outputs the estimated run time of your implementation and reports it back. The format of the input file is: bananas,2.50 beans,4 https://foothillcollege.instructure.com/courses/11509/assignments/301761 1/6 1/15/2020 Programming Assignment #2 beef,11.50 chicken,7 fish,15 juice,4 milk,6 ramen,8 Output of example (with input from standard in shown in bold): The list of groceries has 8 items. Groceries wanted: [2.5, 4.0, 11.5, 7.0, 15.0, 4.0, 6.0, 8.0] Enter your budget: 20 Algorithm Elapsed Time: 0 hrs : 0 mins : 0 sec : 1 ms : 944393 ns Purchased grocery prices are: [2.5, 11.5, 6.0] Done with ShoppingBag. NOTE: Regarding result... The items in the sub-list L appear in the order that it appears in the set S (i.e. groceries wanted): [2.5,11.5,6.0] Also, note there maybe more than one correct answer. However the sub-list(s) which have the closest sum to the target are correct. Your output should cover these three test cases: When budget is > sum of all elements. When budget is < sum of all elements and a subset of elements is found with a total that has an exact match our budget amount. When budget is < sum of all elements and there is no exact match. So, we return a subset of elements with closest match. Clearly distinguish the different test cases. Suggestion: Use the following template for your RUN.txt file: --------------------------------------------------------------------------------------------------------Test file: resources/inputFile01.txt budget: 2000 NOTES: Testing target budget > sum of all elements. ----------------------------------------------------[Paste your output here.] https://foothillcollege.instructure.com/courses/11509/assignments/301761 2/6 1/15/2020 Programming Assignment #2 ----------------------------------------------------------------------------------------------------Test file: resources/inputFile02.txt budget: 17.5 NOTES: Testing set of elements found with sums to exactly to target budget. --------------------------------------------------[Paste your output here.] ----------------------------------------------------------------------------------------------------- Part II. class FoothillTunesStore Use your implementation of class SubsetSum such that class FoothillTunesStore and main() method will successfully: Creates an object of type MillionSongSubset which parses the JSON file provided. NOTE: This has already been done for you. Then given the condition of how much users play list target duration is, determines a list of songs to add to the play list. Finally, captures and outputs the estimated run time of your implementation and reports it back. The format of the input file is: { songs : [ { genre: classic pop and rock, artist_name: Blue Oyster Cult, title: Mes Dames Sarat, duration: 246.33424, song_id: 000001 }, { genre: classic pop and rock, artist_name: Blue Oyster Cult, title: Screams, duration: 189.80526, song_id: 000002 }, https://foothillcollege.instructure.com/courses/11509/assignments/301761 3/6 1/15/2020 Programming Assignment #2 ... ]} Output of example: Welcome! We have over 59600 in FoothillTunes store! Enter the duration of your play list (in minutes): 81.5 Songs in play list: [Mes Dames Sarat, 0:4:7, Blue Oyster Cult, classic pop and rock , Screams, 0:3:10, Blue Oyster Cult, classic pop and rock , Dance The Night Away, 0:2:39, Blue Oyster Cult, classic pop and rock , Debbie Denise, 0:4:11, Blue Oyster Cult, classic pop and rock , (Dont Fear) The Reaper, 0:5:8, Blue Oyster Cult, classic pop and rock , Morning Final, 0:4:15, Blue Oyster Cult, classic pop and rock , The Revenge Of Vera Gemini, 0:3:51, Blue Oyster Cult, classic pop and rock , True Confessions, 0:2:58, Blue Oyster Cult, classic pop and rock , Out Of Stadion - Original, 0:1:22, Blue Oyster Cult, classic pop and rock , Ginger Snaps - Original, 0:1:35, Blue Oyster Cult, classic pop and rock , Demons Kiss - Original, 0:3:53, Blue Oyster Cult, classic pop and rock , Remodeling - Original, 0:2:14, Blue Oyster Cult, classic pop and rock , Spray That Scumbag - Original, 0:1:44, Blue Oyster Cult, classic pop and rock , Shadows - Original, 0:0:25, Blue Oyster Cult, classic pop and rock , Screams, 0:3:10, Blue Oyster Cult, classic pop and rock , Redeemed, 0:3:52, Blue Oyster Cult, classic pop and rock , Workshop Of The Telescopes, 0:4:2, Blue Oyster Cult, classic pop and rock , What Is Quicksand, 0:3:41, Blue Oyster Cult, classic pop and rock , Dominenance And Submission, 0:5:50, Blue Oyster Cult, classic pop and rock Additional Requirements for Part I and Part II: Your program must read input from files located in a directory called resources. Make sure to use relative path instead of specifying the entire path (such as /Users/alicew/myworkspace/so_on_and_so_forth). If the first exact match is found, stop class SubsetSum findSubset() method and print it out. If there is no exact match found, go through all combination of sublists and print out the first closest match. Show enough runs to prove your algorithm works, and show at least one run that does not meet target, exactly. Also, provide a special test to quickly dispose of the case in which the target is larger than the sum of all elements in the master set. This way, any target that is too large will not have to sit through a long and painful algorithm. Demonstrate that this works by providing at least one run that seeks a target larger than the sum of all master set elements. Modify the test file to include additional test cases. https://foothillcollege.instructure.com/courses/11509/assignments/301761 4/6 1/15/2020 Programming Assignment #2 FAQ: How do I read user input? Read user input from standard in (i.e. the keyboard). Read the input file by using a parser. For Part I you have to write your own parser. FAQ: Should I include additional test runs? Yes. Paste all the test cases in the same RUN.txt file. FAQ: Does my output have to match the example output? Your output style can be different from mine, as long as it is contains equivalent information and is easy to understand. However, your input files must match. Otherwise, I will not be able parse and therefore grade your submission. FAQ: Can I submit more than once? Yes, make sure to create and test one feature at a time, however small...rather than implementing a lot of code that you never test. If your implementation so far compiles and runs successfully, commit to your repo. Then, continue working on the next feature. FAQ: Can I include additional attributes, methods and or classes? Yes, add as many as you see fit outside of the test classes ShoppingBag and FoothillTunesStore. Keep in mind that I run two test files when checking your work: 1) I first run your test file (i.e. the one you submit and perhaps modify). 2) Then, I run the instructor test file, which will be testing for different input. If your test class creates and depends on classX or methodY(), but the original test class (i.e. one or more test classes that you received as the starting code in your assigned repository) had never created an object of type classX or calledmethodY(), then the result will be compilation errors in the instructor test class. This is because the interfaces the instructor test class relies on is the same interfaces (i.e. class types and method calls) as the original test class (es). In general, do *not* change method signatures. This includes: the package name, list of file imports, visibility of methods, capitalization of method names, order of arguments, handling of exceptions, etc. I will *not* be grade your project if it results in compilation or runtime errors. FAQ: For Part II may I optimize the algorithm to avoid running out of memory? Yes, you may modify the algorithm to optimize it. A potential optimization is to throwing away unnecessary subsets. If we are able to construct the bigger subset L + x (which is based on the smaller one), then we can throw away the smaller subset L. For example, if you have 1,2,3,4, and I already have {1,2,3} and {1,2,4} less than target, do you still want {1,2} in your list? https://foothillcollege.instructure.com/courses/11509/assignments/301761 5/6 1/15/2020 Programming Assignment #2 FAQ: For Part I and Part II should I sort the given set first? That depends on your implementation. However, consider how expensive it would be to first sort a vary large library of songs. For example, I highly recommend agains using BubbleSort.java class. Your implementation should not take more than a few seconds to run. If it does, then you need to optimize your implementation. FAQ: Do I need to submit Javadocs for Part I and Part II? Submitting documentation in the form of Javadocs for Part I is required. You must submit documentation for all .java files you are using (this includes ShoppingBag.java class). If you would like to receive extra credit for Part II then submit Javadocs here as well. REMINDER: Check that the index.html file of your docs folder to make sure the Javadocs are generated correctly. As a reminder follow the Syllabus and Program Guideline for all required files, etc. https://foothillcollege.instructure.com/courses/11509/assignments/301761 6/6 ... Purchase answer to see full attachment
CATEGORIES
Economics Nursing Applied Sciences Psychology Science Management Computer Science Human Resource Management Accounting Information Systems English Anatomy Operations Management Sociology Literature Education Business & Finance Marketing Engineering Statistics Biology Political Science Reading History Financial markets Philosophy Mathematics Law Criminal Architecture and Design Government Social Science World history Chemistry Humanities Business Finance Writing Programming Telecommunications Engineering Geography Physics Spanish ach e. Embedded Entrepreneurship f. Three Social Entrepreneurship Models g. Social-Founder Identity h. Micros-enterprise Development Outcomes Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada) a. Indigenous Australian Entrepreneurs Exami Calculus (people influence of  others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalities  of these three) to reflect and analyze the potential ways these ( American history Pharmacology Ancient history . Also Numerical analysis Environmental science Electrical Engineering Precalculus Physiology Civil Engineering Electronic Engineering ness Horizons Algebra Geology Physical chemistry nt When considering both O lassrooms Civil Probability ions Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years) or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime Chemical Engineering Ecology aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less. INSTRUCTIONS:  To access the FNU Online Library for journals and articles you can go the FNU library link here:  https://www.fnu.edu/library/ In order to n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.  Key outcomes: The approach that you take must be clear Mechanical Engineering Organic chemistry Geometry nment Topic You will need to pick one topic for your project (5 pts) Literature search You will need to perform a literature search for your topic Geophysics you been involved with a company doing a redesign of business processes Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages). Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in in body of the report Conclusions References (8 References Minimum) *** Words count = 2000 words. *** In-Text Citations and References using Harvard style. *** In Task section I’ve chose (Economic issues in overseas contracting)" Electromagnetism w or quality improvement; it was just all part of good nursing care.  The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management.  Include speaker notes... .....Describe three different models of case management. visual representations of information. They can include numbers SSAY ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3 pages): Provide a description of an existing intervention in Canada making the appropriate buying decisions in an ethical and professional manner. Topic: Purchasing and Technology You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.         https://youtu.be/fRym_jyuBc0 Next year the $2.8 trillion U.S. healthcare industry will   finally begin to look and feel more like the rest of the business wo evidence-based primary care curriculum. Throughout your nurse practitioner program Vignette Understanding Gender Fluidity Providing Inclusive Quality Care Affirming Clinical Encounters Conclusion References Nurse Practitioner Knowledge Mechanics and word limit is unit as a guide only. The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate “Re-su Trigonometry Article writing Other 5. June 29 After the components sending to the manufacturing house 1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard.  While developing a relationship with client it is important to clarify that if danger or Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business No matter which type of health care organization With a direct sale During the pandemic Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record 3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015).  Making sure we do not disclose information without consent ev 4. Identify two examples of real world problems that you have observed in your personal Summary & Evaluation: Reference & 188. Academic Search Ultimate Ethics We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities *DDB is used for the first three years For example The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case 4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972) With covid coming into place In my opinion with Not necessarily all home buyers are the same! When you choose to work with we buy ugly houses Baltimore & nationwide USA The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be · By Day 1 of this week While you must form your answers to the questions below from our assigned reading material CliftonLarsonAllen LLP (2013) 5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda Urien The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle From a similar but larger point of view 4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open When seeking to identify a patient’s health condition After viewing the you tube videos on prayer Your paper must be at least two pages in length (not counting the title and reference pages) The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough Data collection Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an I would start off with Linda on repeating her options for the child and going over what she is feeling with each option.  I would want to find out what she is afraid of.  I would avoid asking her any “why” questions because I want her to be in the here an Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych Identify the type of research used in a chosen study Compose a 1 Optics effect relationship becomes more difficult—as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte I think knowing more about you will allow you to be able to choose the right resources Be 4 pages in length soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test g One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti 3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family A Health in All Policies approach Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum Chen Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change Read Reflections on Cultural Humility Read A Basic Guide to ABCD Community Organizing Use the bolded black section and sub-section titles below to organize your paper. For each section Losinski forwarded the article on a priority basis to Mary Scott Losinksi wanted details on use of the ED at CGH. He asked the administrative resident