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

For this week’s discussion, please read this selection from Paulo

 For this week’s discussion, please read this selection from Paulo Freire’s Pedagogy of the Oppressed: http://faculty.webster.edu/corbetre/philosophy/education/freire/freire-2.html (Links to an external site.) In your discussion response, respond to the following questions (at least 350 words all together): 1.  What is Freire’s main argument, here, about the nature of education? 2. Do you

1. The length of the summary for each article should

1. The length of the summary for each article should be between 15-30 lines (single-spaced, Times New Roman, 12-point font, 1-inch margins). Please use a space between the paragraphs. 2. Please make sure to separate each article and case by the title of the article or case in bold format.

As you close your weekly meeting with Deborah, she says,

As you close your weekly meeting with Deborah, she says, “There are some very good ideas here. I would like to see you continue with a global marketing plan. We need more concrete analysis and data for the presentation. Get your team to work.” After your meeting with Deborah, you

This week, you learn about Maslow’s Hierarchy of Needs. In

  This week, you learn about Maslow’s Hierarchy of Needs. In addition, you look at two ways in which everyone is motivated—intrinsic and extrinsic motivation. Everyone has needs that they must fulfill. These needs are what motivate people to seek out education and training, a career path, or  hobbies and

Generalized Anxiety Disorder is a psychological condition that affects 6.1

  Generalized Anxiety Disorder is a psychological condition that affects 6.1 million Americans, or 3.1% of the US Population. Despite several treatment options, only 43.2% of those suffering from GAD receive treatment. This week you will review several different classes of medication used in the treatment of Generalized Anxiety Disorder.

The history of life in the Cosmos

 For this assignment, you will be given three events or conditions in the history of the development of life in the cosmos. Choose any TWO of these events or conditions (at your discretion and according to your interests). For each one, you must make a short, evidence-based argument addressing both

Please upload 5 items. 1. PDF of screenshots of the

 Please upload 5 items.1. PDF of screenshots of the 4 problems with 2D dimensions and 4 screenshots of 3D models. -Show date and time of computer -Please put name and class number plus section.2. The 4 separate SolidWorks part files. You can add 2 files by clicking ” add another file” in canvas

Identify and explore the socio-cultural aspects of health and illness,

For part two of the assignment, you are asked to find a newspaper article or peer-reviewed journal article related to material covered in the course or in the text and provide a written analysis of the article that explores a medical sociological aspect of the ideas or events depicted within

From the list below, choose a subject you would like

From the list below, choose a subject you would like to research. This will be the topic of your thread: Customer loyalty Global marketing Marketing research Branding In at least 600 words, discuss your topic by addressing the following items: o Explain the concept of the marketing management topic (picked

Create a thread of at least 500 words for the

Create a thread of at least 500 words for the prompt below.  Each thread must include the textbook, 2 scholarly sources (published within the last 5 years), and biblical integration.  All citations and references must be in current APA format.  Do not repeat the same sources, use of the text

What is the PCR process? Why is this application important

What is the PCR process? Why is this application important particularly for cold cases or cases in which only a small amount of DNA is recovered?  2. What is STR analysis? Why is this an effective method for DNA typing?  3. What is forensic genealogy and how is it used

Nursing professionals are information-dependent knowledge workers. As health care continues to evolve in an increasingly competitive information marketplace, professionals—that is, the knowledge worke Nursing Assignment Help

Nursing professionals are information-dependent knowledge workers. As health care continues to evolve in an increasingly competitive information marketplace, professionals—that is, the knowledge workers—must be well prepared to make significant contributions by harnessing appropriate and timely information. Nursing informatics (NI), a product of the scientific synthesis of information in nursing, encompasses

Food Evolution Documentary Review and Analysis Outline Introduction Topic Sentence

Food Evolution     Documentary Review and Analysis Outline Introduction Topic Sentence (Production Information: Documentary Title, Director, Year Released and Production Company) Background (Brief Summary of the Film) Note: You can use the film’s summary/description to help craft this section.  Thesis Statement Claim (Was the film well-crafted/good representation of reality/informative) Warrants

HED 204 Extra Credit Nursing Assignment Help

Go to the video about detective work on trafficking that I have included in the week 5 PowerPoint slides. Watch the video. Write two or three paragraphs about what you learned by watching this video. Expert Solution Preview Introduction: As a medical professor responsible for creating college assignments and evaluating

Watch the brief video on identifying beliefs, incorporating self-awareness, and

Watch the brief video on identifying beliefs, incorporating self-awareness, and employing empathy by clicking on the link below.    After reviewing the video, think about how you are going to create presence.  LinkedIn Learning Module:  Identify beliefs to enhance self-awareness (Links to an external site.) Use the video to create a

Central Engineering w-areas of concern

Objective:                  Analyze the situation in the case and identify the underlying problems and determine an approach that will address the issues and the obstacles to its implementation.   Requirements:          Successful Strategic thinking Exercises will be three (3) to five (5) pages in length and incorporate the information and knowledge gained

Consider yourself as an international manager who is preparing a

Consider yourself as an international manager who is preparing a report for an MNC. Your job is to research and discuss how cultural aspects influence below listed management practices for switzerland (MNC home country) and norway (new country they want to engage with) What is the culture-specific influences and considerations