ISDS 1100 : ComputerExamS14C
Document Summary
Download the computerexams14 folder found at ftp://stf. bus. lsu. edu/classfolder to your desktop. (port 990: no email or other programs may be opened, you may check off what you complete on this test paper, value returning method. (32 points) Open computerexams14 solution found in the computerexams14 folder on your desktop. In this form, the user will enter a number and choose to find its square or cube: set returnmethodform as your startup object, at the class level, write a comment including your name, declare constants. Include a constant to store the literal value, 2, for square and 3 for cube. Pass number and exponent to the function, getanswer: display the result in a messagebox. Include a caption, exponents and display the message in the following format: the result is 25: declare the method, getanswer. In the value returning method: declare a variable result as double data type, write the equation that will either square or cube the number.