Computer Science Exam

Topic 4 - Computational thinking, problem-solving and programming

INSTRUCTIONS

  1. Download and unzip the folder given in this link [JAVA PROJECT]
  2. Change the folder's name by your code, first and lastname
  3. Open the project in there

PROBLEM

An application to create a backup of files from a hardisk to a flash memory, should be implemented as a java class. Files on the hard disk are identified by their file's name, size (kilobytes) and type (Word, Excel, PDF, ...).

The program should

  • collect the data about names, sizes and types of the files by using arrays
  • require the flash drive's capacity and determine if is the files' transfer possible or not, based on the total size of them. If so, an announcement has to indicates that the copy has been successfully, if not the program should ask for another memory
  • ask for a file's size and determine which files have more weight in bytes than that value
  • Search files by giving the file's type. A list of the files should be shown in a single window