subject

I'm not sure what it wants me to do here. dx
complete the diskdrive class shown below. a diskdrive keeps track of how much disk space is used and how much is free. the maximum size of the drive is a parameter to the constructor. the occupied space on the drive can never exceed the maximum size of the drive and can never go below zero.
public class diskdrive
{
// declare instance variables
// postcondition: all instance variables are initialized
public diskdrive(double sizecapacity)
{
}
// postcondition: the disk space occupied is increased by the amount given by the
// parameter and cannot exceed the maximum
public void addfile(double size)
{
}
// postcondition: the disk space occupied is decreased by the amount given by the
// parameter and cannot be negative
public void deletefile(double size)
{
}
// postcondition: a quantity equal to the unoccupied disk space is provided and is
// not negative
public double getfreespace()
{
}
// other methods not shown
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
The physical parts or components of a computer system is called .
Answers: 1
You know the right answer?
I'm not sure what it wants me to do here. dx
complete the diskdrive class shown below. a diskd...
Questions
question
Mathematics, 07.11.2019 04:31
question
Physics, 07.11.2019 04:31
Questions on the website: 13722367