EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Java代写
您的位置: 主页 > 编程案例 > Java代写 >
代写Java:澳洲CS作业代写 java代写Part A: Car log book Part B: File System Part - Java代写
发布时间:2021-07-25 20:39:44浏览次数:
Assignment Design· This assignment is to be undertaken as an individual assignment· This assignment is graded upon 15 marks and counts for 15% of your Overall Marks for this course· The assignment is due on Wednesday October 24, 2018, by 1200hrs (noon)· The assignment must be submitted electronically via Ed   Assessments. Please read the submission requirements for each question carefully.· Test cases might be used to do a first-round marking of your code. You should try to run your program on Ed to check if they pass the test cases. Test run your code as early as possible because you might need to make changes to your code.· Please use the Ed discussion forum to discuss any issues related to this assignment.· The readability of your code is one of the marking criteria. You should take care of your coding style and include comments in your code (wherever appropriate) to help explain it澳洲CS作业代写Please make sure you have read the information about UNSW Business School protocols, University policies, student responsibilities and education quality and support on your Course Outline: https://www.business.unsw.edu.au/degrees-courses/course- outlines/archives/INFS1609-2018-S2#policies If you have any questions about interpreting the assignment and its requirements, please make use of the LICs consultation sessions. To avoid confusion and misunderstanding, we will not be answering assignment-related questions over email.Part A: Car log book (5%)A rental company has a fleet of vehicles. At the end of the vehicle’s life, the company will take out the log book and input the following data into their system:· Name· Registration· Colour· Number of Trips· Odometer readings of each tripDesign a Car class which contains the appropriate attributes to store all of the information, you must create the appropriate getter, setter and constructor methodsSpecific Requirements:· A TestCar class is provided for you on Ed. This class is responsible for prompting the user for input and displaying the output as specified below§ Once all the required information is gathered, the test class should print out the name,registration and colour, as per the sample outputs below§ It should also print out the longest, shortest and average distance between odometer readings (round the average to 2 decimal places)· All odometer readings will be positive values and each value will be greater than or equal to the previous· Odometer reading 0 represents the car’s initial odometer reading· Please submit a Car.java and a TestCar.java· TestCar.java will be used for testingSample (OUTPUTS in red, INPUTS in green):Input name: Red Racer Input registration: ABC123 Input colour: redInput trips: 3Odometer reading 0: 0Odometer reading 1: 100Odometer reading 2: 200Odometer reading 3: 300Red Racer | ABC123 | red  Longest distance travelled: 100 Shortest distance travelled: 100 Average distance travelled: 100Input name: Swift Squeaker Input registration: NBC374 Input colour: blueInput trips: 0Odometer reading 0: 123Swift Squeaker | NBC374 | blue Longest distance travelled: 0 Shortest distance travelled: 0 Average distance travelled: 0Part B: File System (7%)You have been asked by an Operating Systems developer to implement a basic File System. The following types of files will be stored in this file system:· GenericFile with no format (file name, author)· Word document (file name, author, pages, word count)· Video (file name, author, duration in seconds, width, height)Your File System is a bit quirky, the file size is calculated in the following way:· GenericFile with no format = length of filename * length of author· Word Document = length of author’s name * pages * word count· Video = duration * width * heightTask 1 (5%):Using your knowledge of OOP, design and implement the classes described above.Specific Requirements: · You should submit 5 Java files: GenericFile.java, Word.java, Video.java, FileSystem.java and TestFileSystem.java·Your FileSystem class is in charge of maintaining the objects (i.e. the GenericFiles). The FileSystem constructor should take an int which specifies the number of files the FileSystem can hold, and should provide the following publicly accessible methods:public boolean createFile(String fileString);The boolean will indicate whether the file was successfully created. Returns false if the File System is full or if there is a duplicate file namefileString will come in the following format: GFILE|| WORD|||| VIDEO|||||public boolean fileExists(String filename);The boolean will indicate whether the file exists or not, returns true if it does and false if it doesn’t

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。