[SOLVED] SOLVED: Geek.java

29.99 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

rar file icon Geek.java_.rar (5.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
đź”’ Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Geek.java

Write a class definition (not a program, there is no main method) named Geek (saved in a file Geek.java) that models a person who is a geek. For our purposes, a geek is someone who delights in answering all sorts of questions, such as “is this year a leap year?”, “what is the sum of all numbers between two numbers?”, “what is a prime number?”, among other things. A Geek has a name and also keeps track of how many questions s/he has answered.
Your Geek class must have only two instance variables – the Geek’s name and number of
What This Assignment Is About:
• Loops
• Control flow
• Implementing classes
Methods Description of the methods
public Geek (String name)
the Geek’s name, the number of questions is
assigned to zero.

  • Geek.java_.rar