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

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

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

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

EG1hao
网课代修代上,cs代写代考
C++代做
您的位置: 主页 > 编程案例 > C++代做 >
代做C++/C:karatsuba算法代写 C++ Implementation - C++代做
发布时间:2021-07-25 22:53:57浏览次数:
C++ Implementation of Integer Addition, Multiplication, and Division, due Aug 25th 23:59PM, late submissions not acceptedkaratsuba算法代写1 Task DescriptionYou are asked to use C++ to implementSchool Method for Integer Addition and Karatsuba Algorithm for Integer Multiplication(5%)Integer Division (5% postgraduateonly)If you are an undergraduate student, the maximum mark (on Websubmission) is 100. If you are a postgraduate student, your maximum mark is 200.2 Submission GuidelineYou must follow this guideline! Your submission will be marked automatically. Failure to follow this guideline will result in 0.Your submission should contain exactly one file: main.cpp. You do not need to submit a design.Your program takes one line as input. The input line contains three integers separated by spaces. Let the three integers be I1, I2, and B. I1 and I2 are both nonnegative integers up to 100 digits long (there are no leading 0s, except when the value itself is 0). B is I1 and I2’s base (B is from 2 to 10).1Your program should output the sum of I1 and I2, using the school method, then the product of I1 and I2, using the Karatsuba algorithm, and finally the ratio between I1 and I2 (rounded down). You are asked to come up with a way to perform this division. It’s not covered in lectures. I2 will not be 0.The results should still use base B. Please separate the results using one space. Sample input 1: 101 5 10Sample output 1: 106 505 20Sample input 2: 10 111 2Sample output 2: 1001 1110 0Sample input 3: 111 10 2Sample output 2: 1001 1110 11If you are an undergraduate student, simply output 0 as the division result. For sample 3, instead of 1001 1110 11, simply output 1001 1110 03 MarkingMarking will be done automatically.  I trust that you’d indeed implement the school method for addition and the Karatsuba algorithm for multiplication. If you use other methods in your submission, it will be considered cheating and you will receive 0. Feel free to use whatever method for division.1This  makes  your  life  easier  as  you  do  not  have  to  deal  with  numbers  like  ‘a↵’. 4 SVN InstructionsFirst of all, you need to create a directory under version control:svn mkdir  parents -m  Creating ADSA Assignment 1 folder  https://version-control.adelaide.edu.au/svn/aXXXXXXX/2019/s2/adsa/assignment1/aXXXXXXX should be your student ID. The directory path needs to be exactly “2019/s2/adsa/assignmentK”, where “K” is the assignment number.To check out a working copy, typesvn checkout  https://version-control.adelaide.edu.au/svn/aXXXXXXX/2019/s2/adsa/assignment1/  adsa-19-s2-assignment1/ cd adsa-19-s2-assignment1svn add main.cppCommit the files to SVN:svn commit -m Adding ADSA assignment 1 main.cpp SVN helps keeping track of file changes (over di↵erent commits).  You  should commit your work early  and often.5 WebsubmissionYou are asked to submit via the web interface https://cs.adelaide.edu.au/services/websubmission/. The submission steps should be self-explanatory. Simply choose the correct semester, course, and assignment. The websubmission system will automatically fetch the latest version of your work from your SVN repository (you may also choose to submit older versions). Once your work is submitted, the system will launch a script checking the format of your submission. Click “View Feedback” to view the results. Your mark will be calculated o✏ine after the deadline. You are welcome to resubmit for as many times as you wish (before the deadline).We will compile your code using g++ -o main.out -O2 -Wall main.cpp. It is your responsibility to ensure that your code compiles on the university system.22g++ has too many versions, so being able to compile on your laptop does not guarantee that it compiles on the university system. You are encouraged to debug your code on a lab computer (or use SSH).最先出自315代写  C++代写合作:315代写

所有的编程代写范围: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++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。