hostpublic.blogg.se

How i run bluej program
How i run bluej program











How i run bluej program code#

For each line of code add a short comment to explain its meaning.

how i run bluej program

Use multiple line comment in the beginning of the code and write your name, e-mail address, class, and section. Format your code accordingly using indentation and spacing. Use proper names for the variables suggesting their purpose. See how this is implemented in Checklnput,java. Use the Type class Type.java) to check for the type of the input. 5.6, wikipedia org/wiki/Flowchart) Use Age,java as a starter code. Requirements and restrictions: the logic of your program (see Fig. o Otherwise (if age is between 18 and 65, inclusive) it prints "You are an adult o Finally, if the person's birth month is the same as the current month, the program prints a happy birthday greeting that includes the person's name too.

how i run bluej program

。lf the person's age is under 18 it prints "You are a kid. If any one of these conditions is not satisfied the program must print a proper message indicating which condition is not met and terminate after that If the input is correct the program computes the age of the person and prints o The person's name and age in years and months o If the person's age is over 65 it prints Then the program validates the input by checking the following conditions: the input for month and year must be of integer type o o o the month must be in the interval the year must be in the interval. Transcribed image text: Write a program in Java and run it in BlueJ according to the following specifications: The program first asks the user for his/her name and then for the month and year of his/her birth.











How i run bluej program