美文网首页
Java代写:Programming Homework Assi

Java代写:Programming Homework Assi

作者: gaitingzhou | 来源:发表于2019-04-24 21:24 被阅读0次

    Introductionjava的数据结构题目,考察用java实现LinkedQueue和LinkedStack这2个数据结构,包括enqueue,dequeueisEmpty, size, toString()等方法的实现,最后在main里面完成测试RequirementCIS 22CProgramming Homework Assignment #2 Page 1 of 2Programming Homework Assignment #2Due Date: Sunday May 1, 11:55 PM• Upload the source files (.java files) with output (copied andpasted to the end of the main file) (see Catalyst under Week 4for where to submit)Problem:Write a Java program which completes and tests the LinkedQueue classas declared in the LinkedQueue.java file (in the Queue Code Filefolder on Catalyst under Week 2). CHANGE the LinkedQueue file sothat it reads: public class LinkedQueue>implements QueueInterface, DeepCloneable>The methods that need to be completed in LinkedQueue.java are:• default constructor (does nothing)• deepClone method that returns another LinkedQueue (MUSTmake a DEEP COPY) (note: expect T to do a deep clone, too)• enqueue• dequeue• isEmpty• size• toString() (public method that returns a String that has allthe data in the Queue separated by a space, BUT NOT CHANGINGANYTHING in the Queue) THIS ISN’T IN THE LinkedQueue class yet,so you MUST ADD it!!!!A “deep copy” or deep clone copies the data elements (T) of thequeue, NOT have the cloned queue refer to the same data elements,but to clones (copies) of the data elementsHINTS: The Java code for these methods will be VERY SIMILAR to theLinkedStack class, with a few changes, as mentioned in class, ANDdon’t forget:• enqueue adds to the back of the queue, BUT you must check if itwas empty (if it was, also assign the frontNode, but it not,link the new node to the old back node)• dequeue adds removes from the front of the queue, but itbecomes empty after removing it, you need to update thebackNode (you should figure out to what!)• in the toString() method (which overrides the ObjecttoString()), DON’T call dequeue nor enqueue and DON’T changeanything in the Queue, but traverse similar to the LList.javacodeRun a bank queue simulation, simplified from other simulations so ithas no priority queue and only 1 teller, AND you are to use asubclass of the Simulation abstract class given in theHW2_JavaCodeFile. Other simplifications include not本团队核心人员组成主要包括BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com 微信:codehelp

    相关文章

      网友评论

          本文标题:Java代写:Programming Homework Assi

          本文链接:https://www.haomeiwen.com/subject/kawngqtx.html