Answer To: Project Media Rental System Before attempting this project, be sure you have completed all of the...
Shweta answered on Aug 10 2021
89399Solution/media.txt
MusicCD,124,Better Life,2021,140,true,2
MovieDVD,125,Rich Article,2000,130,false,1
MovieDVD,121,Rich Article,2020,105,false,3
EBook,123,Forever Young,2018,206,false,2
MovieDVD,122,Forever Young,2020,170,false,4
MovieDVD,1,Sweet Waters,1990,199,false,3
MusicCD,16,Last Words,1995,12,true,2
89399Solution/MediaRentalSystem/build/built-jar.properties
#Tue, 10 Aug 2021 19:50:27 +0530
C\:\\Users\\Acer\\Documents\\NetBeansProjects\\MediaRentalSystem=
89399Solution/MediaRentalSystem/build/classes/.netbeans_automatic_build
89399Solution/MediaRentalSystem/build/classes/.netbeans_update_resources
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/EBook.class
package mediarentalsystem;
public synchronized class EBook extends Media {
int chapters;
public void EBook(int, String, int, int, boolean, double);
public int getChapters();
}
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/Manager.class
package mediarentalsystem;
public synchronized class Manager {
java.util.ArrayList ebookMediaList;
java.util.ArrayList movieDVDMediaList;
java.util.ArrayList musicCDMediaList;
java.util.ArrayList mediaList;
String fileNameToLoad;
public void Manager();
public void LoadMedia(String) throws java.io.IOException;
public void FindMedia(String);
public void RentMedia(int) throws java.io.IOException;
public void UpdateMedia(String, int) throws java.io.IOException;
}
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/Media.class
package mediarentalsystem;
public synchronized class Media {
private int id;
private String title;
private int year;
private boolean available;
private double rentalPrice;
public void Media(int, String, int, boolean, double);
public int getID();
public String getTitle();
public int getYear();
public double getRental();
public boolean getAvailable();
}
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/MediaRentalSystem.class
package mediarentalsystem;
public synchronized class MediaRentalSystem {
public void MediaRentalSystem();
public static void main(String[]);
public static void show();
}
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/MovieDVD.class
package mediarentalsystem;
public synchronized class MovieDVD extends Media {
int size;
public void MovieDVD(int, String, int, int, boolean, double);
public int getSize();
}
89399Solution/MediaRentalSystem/build/classes/mediarentalsystem/MusicCD.class
package mediarentalsystem;
public synchronized class MusicCD extends Media {
int size;
public void MusicCD(int, String, int, int, boolean, double);
public int getSize();
}
89399Solution/MediaRentalSystem/build.xml
Builds, tests, and runs the project MediaRentalSystem.
89399Solution/MediaRentalSystem/dist/MediaRentalSystem.jar
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.7
Created-By: 1.8.0_111-b14 (Oracle Corporation)
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Main-Class: mediarentalsystem.MediaRentalSystem
mediarentalsystem/EBook.class
package mediarentalsystem;
public synchronized class EBook extends Media {
int chapters;
public void EBook(int, String, int, int, boolean, double);
public int getChapters();
}
mediarentalsystem/Manager.class
package mediarentalsystem;
public synchronized class Manager {
java.util.ArrayList ebookMediaList;
java.util.ArrayList movieDVDMediaList;
java.util.ArrayList musicCDMediaList;
java.util.ArrayList mediaList;
String fileNameToLoad;
public void Manager();
public void LoadMedia(String) throws java.io.IOException;
public void FindMedia(String);
public void RentMedia(int) throws java.io.IOException;
public void UpdateMedia(String, int) throws java.io.IOException;
}
mediarentalsystem/Media.class
package mediarentalsystem;
public synchronized class Media {
private int id;
private String title;
private int year;
private boolean available;
private double rentalPrice;
public void Media(int, String, int, boolean, double);
public int getID();
public String getTitle();
public int getYear();
public double getRental();
public boolean getAvailable();
}
mediarentalsystem/MediaRentalSystem.class
package mediarentalsystem;
public synchronized class MediaRentalSystem {
public void MediaRentalSystem();
public static void main(String[]);
public static void show();
}
mediarentalsystem/MovieDVD.class
package mediarentalsystem;
public synchronized class MovieDVD extends Media {
int size;
public void MovieDVD(int, String, int, int, boolean, double);
public int getSize();
}
mediarentalsystem/MusicCD.class
package mediarentalsystem;
public synchronized class MusicCD extends Media {
int size;
public void MusicCD(int, String, int, int, boolean, double);
public int getSize();
}
89399Solution/MediaRentalSystem/dist/README.TXT
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "MediaRentalSystem.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.
89399Solution/MediaRentalSystem/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
89399Solution/MediaRentalSystem/nbproject/build-impl.xml
Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar
Must set javac.includes
...