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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:00, silvijaaa
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
image
Computers and Technology, 22.06.2019 18:10, AdoNice
How can i delete permalinks from a word press site?
Answers: 1
image
Computers and Technology, 22.06.2019 21:10, itsmichaelhere1
Dameas communication challenge is due to which factor
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
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 in other subjects:

Konu
English, 04.08.2019 13:30
Konu
Mathematics, 04.08.2019 13:30