Case-Based Critical Thinking Questions
?
Case 9-2
Skylar is studying for her midterm exam in her accounting class. Her study partner Lisa is her go-to person for help with calculating depreciation.
?
?
Which of the following functions does Lisa say is used to calculate a double-declining balance depreciation?

A. DDB
B. SLN
C. SYD
D. VBD


Answer: A

Computer Science & Information Technology

You might also like to view...

Non-abstract classes are called ________.

a. real classes. b. instance classes. c. implementable classes. d. concrete classes.

Computer Science & Information Technology

For security reasons, the path in a URL normally represents a(n) ________ on the server.

a. Actual directory. b. Virtual directory. c. File. d. None of the above.

Computer Science & Information Technology

Write an Anagram Game application that contains an array of preset words. The game should randomly select a word and scramble its letters (Fig. 23.19). The first letter is extracted and placed back in the String at a random location. This process is repeated 20 times to ensure that the String is sufficiently scrambled. A JLa- bel displays the scrambled word for the user to guess. If the user guesses correctly, display a message and repeat the process with a different word. If the guess is incorrect, display a mes- sage and let the user try again.



a) Copying the template to your working directory. Copy the C:Examples Tutorial23ExercisesAnagram directory to your C:SimplyJava directory.
b) Opening the template file. Open the Anagram.java file in your text editor.
c) Adding a for statement to the generateAnagram method. The generateAnagram method (lines 133–145) selects a String from a predefined array and scrambles this String for the user. The String to be scrambled is stored in variable scrambled for you. A random index in this String has also been generated for you and stored in variable randomIndex. In this exercise, you will be completing only the generate- Anagram method—the rest of the application has been provided for you. After the variable declarations inside the generateAnagram method, add an empty for state- ment that will loop 20 times.
d) Generating the scrambled word. Inside the for statement you added in Step c, declare char firstCharacter and assign to it the first character in scrambled. Use the su

Computer Science & Information Technology

Which of the following will open a blank window that can display a custom confirmation notice?

A) var win = window.open("menubar=yes", "confirmWindow", ""); B) var win = window.open("confirmWindow", ""); C) var win = window.open("confirmWindow", "","menubar=yes"); D) var win = window.open("", "confirmWindow","menubar=yes");

Computer Science & Information Technology