1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sergeu [11.5K]
3 years ago
10

Write a class called Date that represents a date consisting of a day, month, and year. A date object should have the following m

ethods: public Date(int day, int month, int year) -- Constructs a new Date object to represent the given date public int getDay() -- returns the day value of this date public int getMonth() -- returns the month value of this date public int getYear() -- returns the year value of this date public void addDays(int days) -- Moves the Date object forward in time by the given number of days public int daysTo(Date other) -- Returns the number of days between this Date and the other Date public boolean isLeapYear() -- Returns true if the year of this Date is a leap year. A leap year occurs when the value of the year is divisible by 4, except when it is divisible by 100 and not 400 (so 1700, 1800, and 1900 are not leap years) public String toString() -- returns a String representation of this date in the form day/month/year Write a program in which to test your class. This program should prompt the user to enter the days, months, and years of two separate dates, and then print out the number of days between these two dates.
Computers and Technology
1 answer:
Inessa [10]3 years ago
7 0

Answer:

No

Explanation:

Because it's years and its also very public

You might be interested in
What is the process called when programmers look for and fix errors in code?
AveGali [126]

Answer:

d

Explanation:

7 0
3 years ago
Read 2 more answers
Does anyone want to play nitro type with me for my typing class I put 100 points into this so If you put link or random stuff I
Tju [1.3M]

Answer:

okay

so what is it what is your question..

7 0
3 years ago
What are radio waves and what kinds of Information do they transmit ​
loris [4]

Answer:

Explanation:

Radio waves are a part of electromagnetic waves. They are high wavelength and low frequency waves that are classified as non-ionizing radiation. These waves are mostly used for communication purposes.

Radio waves carry are interpreted by devices that converts them to mechanical energy that can be interpreted and easily discerned. These waves carry a broad range of information.

These waves carry time-varying electrical signals that can easily be transmitted and they are produced by accelerated electrical charges.

4 0
4 years ago
Which of the following is a booting technique in which a computer loads the operating system from a connected network rather tha
ser-zykov [4K]

Answer:

Option c is the correct answer for the above question.

Explanation:

PXE is an interface that is used to load the network computer which is not loaded. It is a booting technique from which any system loads the operating system. The above question asked about the booting techniques which are used to boot the network. Then the answer is PXE which is also called Preboot Execution Environment which stated from option c. hence option c is correct while other is not because--

  • Option 'a' states about window boot manager which is used to boot the operating system.
  • Option b states about Virtual network computing that is used for remote networking.
  • Option d states about SSO which is not used for booting networks.
8 0
3 years ago
The line of code after a line beginning with the word 'else' needs to begin with a(n) ___.
Julli [10]
The answer to your question is D
7 0
2 years ago
Other questions:
  • If a = 3 and b = a+3 find value of b.
    14·2 answers
  • What is the first thing you should do when creating a spreadsheet
    5·1 answer
  • Write a program that, for four points A, B, C and P, which a) Draws a triangle formed by ABC and a small cross showing the posit
    15·1 answer
  • Consider the following methods:
    10·1 answer
  • CRM software programs are designed to help companies gather all customer contact information into multiple data management progr
    13·1 answer
  • HELP I WILL MARK BRAINLIEST!!! I NEED ASAP!!!
    5·1 answer
  • What is the difference between a try block and a try statement? Group of answer choices There is no difference; the terms can be
    6·1 answer
  • A Windows user right-clicks on his desktop. What is he planning to do?
    10·1 answer
  • Which user characteristic may not be used to change keyword bids in adwords?:?
    11·1 answer
  • What is role can ICT play in helping school take part in social responsibility
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!