2 3 ? 5 CHAPTER 9 Advanced Modularization Techniques caps lock Writing Exercise
ID: 3702737 • Letter: 2
Question
2 3 ? 5 CHAPTER 9 Advanced Modularization Techniques caps lock Writing Exercise 9.2: Writing Methods that Require a Sin In this exercise, you use what you parameter to answer Questions 1-2 variable dec write the re Shift ? have learned about writing methods that the following variable declarations and method calls, write the 1. Given 154 require a . Open the sou a. String name; editor of you 2. Write the Ja 3. Save this printNameBadge (name); method's header so b. double side length; your worki Comp 5 Execute t calculateSquareArea(side.1ength) ook 4 Compile th c. int hours; displaySeconds InMinutes(minutes); MORE WITE 2. Given the following method headers, write a method call: Writing M String petName = "Mindre". public static void displayPetName(String petName) In Chapter 9 of more than one multiple paran as part of the actual param arieg clarity b. int currentMonth; public static void printBirthdays (int month) In Figure 9-5 that you des the program c. String password; public static void checkValidPassword(String password)Explanation / Answer
Q1-
a- public static void printNameBadge(String name);
b-public static void calculateSquareArea(Double side_length);
c-public static void displaySecondsInMinutes(int minutes);
Q2-
displayPetName(petName);
printBirthdays(currentMonth);
c-checkValidPassword(password);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.