Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want Urgently in java Using Eclipse here the body of the code please fill please follow f your variable names are not descriptive of
I want Urgently in java Using Eclipse here the body of the code please fill please follow f your variable names are not descriptive of their use. If you have not included comments throughout your code. If your code is not properly indented. If your code is unnecessarily long or the logic you used is unnecessarily complicated. For each additional library import that was not originally given eg HashMaps, ArrayLists. Each import will attract an additional mark penalty. Avoiding imports by using the full path to a class eg writing "java.util.Arrays.sort in the main body of your code. package questions; public class Album private String albumName; private Photo primaryPhoto; The photo used as the album cover private Photo photos; public String getAlbumName return albumName; public Photo getPrimaryPhoto return primaryPhoto; public Photo getPhotos return photos; marks @param primaryPhoto the photo used to set the instance variable This function should copy the primaryPhoto parameter value to the primaryPhoto instance variable using a deep copy. To perform a deep copy you must create a new Photo object which contains all the same values as the primaryPhoto parameter variable. public void setPrimaryPhotoPhoto primaryPhotoTODO To be completed marks @param photos the photo array used to set the instance variable This function should use a shallow copy to copy the photos parameter value to the 'photos' instance variable. public void setPhotosPhoto photosTODO To be completed marks @param albumName the albumName used to set the instance variable This function should ensure the following: The albumName should be between and characters inclusive in length The albumName should only contain uppercase, lowercase, digits and space characters If any of these are not followed, the function should return false and not modify the previous albumName that was saved. Otherwise the function should return true. public boolean setAlbumNameString albumNameTODO To be completed return false; marks @param primaryPhoto @param photos @param albumName This constructor must: Use the passed values to set the appropriate instance variables Use the setters defined above No marks will be given unless all the setters above are used. Full marks will be awarded if the constructor is defined correctly. public AlbumString albumName, Photo primaryPhoto, Photo photosTODO To be completed DO NOT MODIFY ANYTHING BELOW!!! public Album
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started