UML Class diagram作业代CSC 120留学生作业代写、Python程序作业调试、代做sumDigits作业、Python课程设计作业代写代做SPSS|代做留学生PrologUML...

CSC 120: Introduction to Computer Programming for Non-majorsSpring 2019Assignment 5Notes: For each question create a Python script with the name Question xxwhere xx is the question number. Provide your name and what program does in each script. Provide necessary comments. Once you are done, create a folder with the name Assignment-03, put allyour scripts in there, zip it, and then upload the zip file in to Canvas. Always show that your code works by using few test cases (1-3) If you are not clear about any of these steps, just ask. This must be your own work. I have already explained policies regradingplagiarism and they are in your syllabus.Question 1 (20 points) A pentagonal number is defined as n(3n–1)/2 forn = 1, 2, . . ., and so on. Therefore, the first few numbers are 1, 5, 12, 22, . . .Write a function that returns a pentagonal number for a given n ≥ 1.Write a test function that uses that to display the first 100 pentagonalnumbers with 10 numbers on each line.Question 2 (20 points) Write a function that computes the sum of the digitsin a non negative integer. For example, sumDigits(234) returns 9(2 + 3 + 4). Write a test function with few test cases and show that yourfunction sumDigits works.Question 3 (20 points) Write a function with the name reverse, thatreverses a non negative integer passed to it. As an example, it shouldreturns 456 when you pass 654 as the input.Write a test function to test your reverse function.Now, write another function with the name palindrome which takes a nonnegative integer and check if it is a palindrome.Hint: You should use the reverse method you just created.Write a test function to test your palindrome function.Question 4 (20 points) Write a function to determine a number is prime.Write a test function with atleast 5 test cases to test your function.Question 5 (20 points) π can be estimated using following series.m(i) = 4(1)Write a method to return m(i) for a given i and write a test function tothat displays the following approximation table.本团队核心人员组成主要包括硅谷工程师、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 或邮箱:[email protected] 微信:codehelp

你可能感兴趣的:(UML Class diagram作业代CSC 120留学生作业代写、Python程序作业调试、代做sumDigits作业、Python课程设计作业代写代做SPSS|代做留学生PrologUML...)