How do you use a value returned from a method? Provide an example.
What will be an ideal response?
If a method returns a value, then when you call the method, you normally use the returned value, although you are not required to do so. For example, when you invoke the calculateGross()method, you might want to assign the returned value (also called the method's value) to a double variable named myPay, as in the following statement:myPay = calculateGross(myHoursWorked, myRate);
You might also like to view...
Which of the following is not true about being prepared?
A) Arrive 30 minutes to an hour prior to the presentation. B) If you bring your own presentation equipment, make sure you have all of the cords to plug the projector into your computer and into the wall. C) If at all possible, you should check the seating arrangements, lighting, audio equipment, handouts, laser pointers, and the projection equipment prior to the presentation. D) Be sure that the background of your desktop is appropriate for a public view.
What tool would you use to find out which cells use the value of the active cell by displaying tracer arrows?
A) Trace Precedents B) Evaluate Formula C) Trace Dependents D) Show Formulas
A(n) ________learner is one who learns best by hearing information
Fill in the blank(s) with correct word
Which of the following is a portable, personal computer designed to fit on your lap?
A. handtop B. desktop C. PDA D. notebook