Write Java program for Assignment, thanks beforehand!

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write Java program for Assignment, thanks beforehand!

Post by answerhappygod »

Write Java program for Assignment, thanks beforehand!
Write Java Program For Assignment Thanks Beforehand 1
Write Java Program For Assignment Thanks Beforehand 1 (107.81 KiB) Viewed 25 times
Assignment 3 In this assignment you will practice file input and output. You are given two options: those who think up to 60% is enough for them, solve the first part. Those who think they are to get full point, continue with the second part. Part1 (basic: 60%) We have already seen how to copy a file using java. Utilizing that knowledge write a program that given a list of files (names) and the destination (all through command line input as executing the program), it will copy all those files into the destination folder. Note: if a specified path is a directory, mention that it is a directory, and skip copying it. Note: handle all the possible exceptional cases and user error. Note: every time a file is copied, print the number of bytes copied. Example: if file size is 36 bytes, print 36 B. if file size is 3635 bytes, print 4 KB. if file size is 3635124 bytes, print 4 MB. Part2 (medium: 40%) Given a list of directories and files followed by the destination copy all these directories (recursively) and files into the destination. Note: all the subdirectories and files inside the given directories must be kept in the same nested structure in destination folder. Assume that the folder structure is as following: (use tree /F command to see the directory structure recursively, just tree on Mac or Linux) -dest -resources -docs -books some citations.txt american LLondon BEFORE ADAM.txt THE IRON HEEL.txt The People of the Abyss.txt -russian Dostoevsky The Gambler.txt THE POSSESSED (The Devils).txt Tolstoy MASTER AND MAN.txt -personal doc.txt doc2.txt Sened.docx -img ada1.jpg ada2.jpg download (1).jpg download.jpg
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply