1. Model a real-life object as a Java class with

 

1. Model a real-life object as a Java class with at least one attribute and an instance method. Write a main method to create an instance of the class, assign a value to the attribute, call your method, and demonstrate that the value of the attribute changed and that the method successfully completed what it was supposed to do. The main method can be created in a separate driver class (e.g. MyDriver.java) within which you will create an instance of the object class. For example, if the name of the object class is Car (meaning, you are coding Car.java) then you can create an instance of Car inside MyDriver.java.

Be sure to create a program different from any of the programs already posted by your classmates or the examples in-class materials.

2. Reply to another student’s post. Modify the student’s class to add another attribute and a method that fits (is consistent with) the object the class is modeling, or suggest a different version of the code. Write the main method to demonstrate the correct functionality of the additions. As you reply to the other students, try to reply to a post that does not have a reply yet, and if not; try to reply to a post with a fewer number of replies.

Be sure to create a program different from any of the programs already posted by your classmates or the examples in the class materials.

As you answer these questions, use proper Java naming convention (Camel case), name the class, attribute, and method in a meaningful way to represent the business meaning, and add comments to the Java code as applicable.

The deliverables are the Java code and the documentation. The documentation is a single Microsoft Word document, or PDF containing the screenshot of the results obtained by running the code. 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Many American students don’t know very much about religions other

  Many American students don’t know very much about religions other than their own.  Read the comparison between Christianity and the Islamic faith in the slides provided for this module.  Were you surprised by the similarities between the two?  Explain your answer.   PreviousNext 

Supply Chain Management: LOG301 SLP1

Please begin by reading Anderson et al. (1997), with particular attention to their seven SCM principles. All of these will be covered in the following modules, if not in the same sequence as the authors. During this session long project, you will analyze a logistics firm such as UPS, FedEx,

Develop your vision of the ideal health care system. List

  Develop your vision of the ideal health care system. List some of the characteristics that constitute such a system. What would be the goal or goals of your ideal system? Think about how you would go about implementing your ideal system. Consider some of the problems you are likely

DQ6: A useful tool to clearly depict the interrelationship between

DQ6: A useful tool to clearly depict the interrelationship between process and datamodels is the CRUD matrix. The CRUD (create, read, update, delete) matrix is atable that depicts how the system’s processes use the data within the system. It ishelpful to develop the CRUD matrix on the basis of the

400-600 words APA Format Being an effective practitioner or scholar

 400-600 words APA Format Being an effective practitioner or scholar in your field is heavily dependent on managing interpersonal relationships. At some point, you will need to reach out to your fellow professionals for advice, assistance, or possibly a job referral. Developing your network of personal contacts is vital. Discuss

Chemical Plant Explosion

 Every student is asked to write a report on an environmental health topic. The topic should be related to any environmental incident or accident that happened in the past, including natural disasters or man-made accidents. Identify and describe an environmental health topic of your choice that you would like to

In this second part of our discussion board I would

In this second part of our discussion board I would like you to start by reading the posts by your classmates to Discussion Board Part 1 summarizing each of the theories. I would like you to write around 250-300 words here where you answer the following: which of these theories

Write a 2-3 page executive briefing of a selected business-related

  Write a 2-3 page executive briefing of a selected business-related case pertaining to the topic of contract law. Introduction In this introductory course to business law, you will examine real-world court decisions pertinent to the topics that you will be studying. This is not a course designed to train

The concept of Gross Domestic Product (GDP) was developed by

The concept of Gross Domestic Product (GDP) was developed by Simon Kuznets in 1937 and has been used almost universally since that time. The World Economic Forum (WEF) is an independent international organization committed to improving the state of the world by engaging business, political, academic and other leaders of

What are your predictions about where technology is heading in

What are your predictions about where technology is heading in the upcoming years? Please choose two that are not included in the materials of the class, and justify your answer. What is the topic from class you believe it will be the most useful to you and why? Was there

Popular press article summary and critique

These assignments require that you summarize a popular press article relating to Physiological Psychology. Find a recent popular press article (Time, Slate, local newspaper, etc., published later than 2007 – an electronic version is fine) relating to Physiological Psychology. Attach a copy of the article to the assignment. Summarize the

Mental Disorder in the DSM-5

 The focus of this paper is on researching a specific mental disorder in the DSM-5. The paper should include the following: a. Identify the disorder you selected from the DSM-5 and describe it in detail. This should include a description of the diagnostic criteria as set forth in the DSM-5

Before children are able to formally decode words on a

Before children are able to formally decode words on a page, the experiences they have developing oral language skills greatly influence their mastery of language and may impact their success in school. On pgs. 41-42, your text cites research outcomes that support this statement. Part 1 of DB Prompt: imagine

https://www.youtube.com/results?search_query=Brief+Therapy+for+Addictions%2C+6%2C+Motivational+Interviewing++written+by+William+R.+Miller%3B Brief Therapy for Addictions, 6, Motivational Interviewing Video (start

     https://www.youtube.com/results?search_query=Brief+Therapy+for+Addictions%2C+6%2C+Motivational+Interviewing++written+by+William+R.+Miller%3B  Brief Therapy for Addictions, 6, Motivational Interviewing Video (start at 20:35)  I can’t find the hole video only half of the video on YouTube  SESSION EVALUATION ASSIGNMENT INSTRUCTIONS OVERVIEW This Session Evaluation Assignment is designed to give you the opportunity to review a video  recorded session as an

DQ2 Nursing Assignment Help

Today’s workforce is diverse and has multiple conflicting priorities. As a nurse leader, you would like to see your hospital implement an outreach program that will benefit needy members of the community. What are some methodologies of communication you would use to develop a shared vision with your stakeholders? How