Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

Week 3: Methods Developing computer programs is all about telling the computer what to do

Computer Science Sep 22, 2020

Week 3: Methods

Developing computer programs is all about telling the computer what to do. So far in this course, you have been exploring the specific Java statements that provide the foundation for telling the computer what to do. But, one Java statement can only do so much. The power comes when you put these statements together into a sequence of steps. These are called methods, and developing methods is a critical skill for object-oriented programmers.

As you step through the design of a computer program, abstracting the essence of what the computer needs to do, you are creating the outline for the methods that will eventually be implemented to actually carry out your task in Java. These methods are the meat of your Java program. They can be used, and reused, to provide great overall power to a program.

This week, you harness the power of methods in Java. You will evaluate the concept of succinctness in developing computer languages and programs, and you will step through a series of exercises that will extend your Java programming abilities by developing your skills in method design and implementation.

Objectives

Students will:

  • Apply abstraction to analyze a task
  • Apply the concept of method abstraction in software development
  • Design and implement methods using stepwise refinement
  •  
  • Discussion: Succinct Code

 

You use the concepts of abstraction and encapsulation every day. You may call it “understanding the bigger picture” or “seeing the forest for the trees.” It helps you manage the complexity of your tasks without getting bogged down in the details. Think about the ways in which you apply abstraction to your tasks or decisions. Think about the ways you apply encapsulation to your tasks and organizing your work. In the context of computer programming, abstraction requires you to eliminate detail from an object to identify its defining characteristics—the things that make the object “tick.”

Give an example that describes how you have used abstraction as a strategy and how it was beneficial to you. Be as specific as possible about the strategy and why you feel it worked well. How was encapsulation applied in your strategy?

Next, describe a situation in which abstraction or encapsulation may not yield the best results. After all, boiling a group of things down to their defining, component attributes may overlook unique and special characteristics of that group’s members, and this could lead to a less-than-ideal process or decision. Once again, be specific about your method and the results.

By Day 2

Post your response.

Expert Solution

Please find attached

Archived Solution
Unlocked Solution

You have full access to this solution. To save a copy with all formatting and attachments, use the button below.

Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get 100% fresh solution
Get Custom Quote
Secure Payment