40439: printTodaysDate is a function that accepts no parameters and returns no value. Write a statement that calls printTodaysDate.
printTodaysDate()
40073: Write the code for a message whose method name is sendSignal. There are no arguments for this message.
sendSignal()
40440: printErrorDescription is a function that accepts one int parameter and returns no value. Write a statement that calls the function printErrorDescription, passing it the value 14.
printErrorDescription(14)
40074: Write the code for a message whose method name is sendNumber. There is one argument for this message, which is an int. Send the number 5 as an argument int he message.
sendNumber(5)
40075: Write the code for a message whose method name is sendVariable. There is one argument for this message, which is an int. Suppose an int variable called x has been declared and initialized to some value. Send this variable in your message.
sendVariable(x)
40441: printLarger is a function that accepts two int parameters and returns no value. Two int vaiables, sales1 and sales2, have already been declared and initialized. Write a statement that calls printLarger, passing it sales1 and sales2.
printLarger(sales1, sales2)
40076: Write the code for a message whose method is sendTwo. There are two arguements for thsi message: a double and an int. Send the Double value of 15.955 and the Integer value of 133 in the message.
sendTwo(15.955, 133)
40077: Write the code for a message whose mtehod name is sendObject. There is one arguement for this message, which is of type Customer. Suppose there is an object of type Customer, called John_Doe. Send this object within your message.
sendObject(John_Doe)
No comments:
Post a Comment