If you are confused about what these methods should return and how many parameters they need to have, be sure to ask me these clarification questions during lab // Insert any necessary import statements here. Then fill in the code for the body of the methods. As a first step, just write the method headers, and make sure that their return type and parameters match this specification. The only steps to perform are to write the code for the above four methods. o displayData - This method should accept the rectangle's length, width, and area as arguments, and display them in an appropriate message on the screen Use the following main method and do not modify it. We will be using the following software, which is installed in the Engineering computer labs: Java (JDK), jGRASP, Checkstyle, and JUnit.If you plan to use your personal computer for lab assignments, youll need to install Java (JDK), jGRASP, and Checkstyle to get started. For most people, the installation instructions in the previous table are all that you need. Instructions for that process are available here: Microsoft Windows From the following table, select the instructions corresponding to your version of the Java release. 1-7 Installing (1.8.7) 1.3 Installing on Mac OS X To install jGRASP on a Mac OS X machine, an administrator password is required. jGRASP es una aplicaciĆ³n que permite a los usuarios y programadores crear nuevos proyectos desde cero y modificar los existentes. The area is calculated by multiplying the length by the width. In order to run Java applets within a browser, you must install the JRE plugin manually. jGRASP You can start jGRASP by double clicking the icon on your Windows desktop or via the Windows Startmenu. o getArea - This method should accept the rectangle's length and width as arguments, and return the rectangle's area. o getWidth - This method should ask the user to enter the rectangle's width, and then return that value as a double. In jGRASP, click on Tools, pull down to Checkstyle and across to Configure (or Settings, depending on the version). 5, Programming Challenge #3) Complete the following program which will ask the user to enter a width and length of a rectangle, and then display the rectangles area (Recall that length x width = area.) Write the program so that it calls the following methods to modularize the workload and make the main less complex: o getlength - This method should ask the user to enter the rectangle's length, and then return that value as a double. Then it will automatically select dependent plugins. Ab Instructions, Working Outside of Class, Installing jGrasp, Warning about Collaboration, Late Policy. Use eclipse update manager to install the plugins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |