I'm not sure what it wants me to do here. dx
complete the diskdrive class shown below. a diskd...
Computers and Technology, 15.09.2019 20:20 alvalynnw
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
}
Answers: 3
Computers and Technology, 22.06.2019 21:10, itsmichaelhere1
Dameas communication challenge is due to which factor
Answers: 2
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
Mathematics, 04.08.2019 13:30
History, 04.08.2019 13:30
English, 04.08.2019 13:30
Mathematics, 04.08.2019 13:30
History, 04.08.2019 13:30
Mathematics, 04.08.2019 13:30