![]() ![]() You can just scroll downĪnd skip the survey. Go to the following web page to download the jGRASP editor software to workįrom the jGRASP web site link above, click the button at top-right You can just repeatedly click Next to choose all the Do this byĭouble-clicking the JDK installer file you saved on the Desktop. Once you have finished downloading this file to your Desktop, you If you aren't sure, click here for more info.) (Unless you use 64-bit Windows, in which case you want jdk-8u101-windows-圆4.exe. The appropriate link for your operating system to download the file. Click Accept License Agreement, and then click You will be taken to a new page with the heading, "Java SE Development KitĨ Downloads." Scroll down to the section labeled "Java SE Development KitĨ." You will see a list of files to download for various operating Import to the following Oracle Java download page. I can't find what's wrong with my code that I am recieving the message "No main methods, applets, or MIDlets found in file." I will not test these features when I grade your application.īased on the requirements above, you will have a minimum of four methods:Ī method to process the number of hours at homeĪ method to determine and display the recommended pet. You do not need to program a response when the user clicks the Cancel button or clicks the X in the upper right corner of the dialog. You may not use any "global" variables, that is variables declared outside a method. The program logic to determine the pet and display the message dialog box with the recommend pet must be in its own method and separate from main(). ![]() Keep in mind the recommended pet will change based on the user input. Your message dialog box must look like Figure 5 below. ![]() Display this recommendation in a message dialog box. The program logic to display the input dialog box and edit the input for hours at home must be in its own method and separate from main().īased on the type of dwelling and the number of hours at home, use this table to determine what type of pet the user should get. Continue processing if a valid value was entered. Stop the application after displaying the error message dialog if invalid data was entered. Your message dialog must look like Figure 4 below. Display a message dialog box indicating an invalid value was entered if A, a, B, b, C, c, D, d, E or e was not entered. The value must be A, a, B, b, C, c, D, d, E or e. Your input dialog must look like Figure 3 below.Įdit the value entered into the input dialog box. Use an input dialog box to request the number of hours the program user is at home during the day. The program logic to display the input dialog box and edit the input for type of dwelling must be in its own method and separate from main(). Your message dialog must look like Figure 2 below. Display a message dialog box indicating an invalid value was entered if A, a, H, h, D, or d was not entered. Use an input dialog box to request the type of dwelling the program user lives in.Įdit the value entered into the input dialog box. Your application will consist of one class, PetAdvice. ![]() I'm currently working on an assignment for my Java class with the following instructions: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |