Question: This week's lectures talk about how methods are like mini - programs that do something special for our program and then, in some cases, return

This week's lectures talk about how methods are like mini-programs that do something special for our program and then, in some cases,return something.
For this discussion, think about some real-life situations where someone hands off a task to someone else who knows the details of taking care of that task--a specialist or professional, a coworker or supervisor. They're not a program or robot, , but the situation is similar to calling a method.
Below, describe the inputs, processing, and output of 2-4 real-life interactions that are similar to method calls. In other words, interactions where you ask someone to do a specific task, give them anyspecifics they need (parameters), and wait for them to eitherfinish (like a void method) or give something back to you (return avalue).
Then, create method headers that would make sense for the situation.
The goal here is to practice using the concepts of parameters and return values when thinking about situations. You do not have to code your methods, and you can invent any variable names or types necessary.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!