Please assist. thank you! Exercise 9-1: Writing Procedures with No Parameters In
ID: 3772448 • Letter: P
Question
Please assist. thank you!
Exercise 9-1: Writing Procedures with No Parameters
In this exercise, you use what you have learned about writing procedures with no parameters to answer Questions 1–2.
1.
Given the following procedure calls, write the procedure’s header:
a.printMailingLabel() _____________________________________________________________________
b.displayOrderNumbers()_____________________________________________________________________
c.displayTVListing() _____________________________________________________________________
2.
Given the following procedure headers, write a procedure call:
a.Sub printCellPhoneNumbers()_____________________________________________________________________
b.Sub displayTeamMembers()_____________________________________________________________________
c.Sub showOrderInfo() _____________________________________________________________________
Explanation / Answer
Answer 1)The procedures header are the following:
a)void printMailingLabel();-> It has the return type void as it will print the label and this function does not return any value.
b)void displayOrderNumbers();- this will display the order numbers.It will not return any value as it simply displays.
c) void displayTvListing();- this will display the tv listing simply.
Answer 2) procedure calls:
a) printCellPhoneNumbers();
b)displayTeamMembers();
c)showOrderInfo();