数值分析编程代写 Programming代写 Python代写 编程代写
627Programming assignment #1: rootfinding 数值分析编程代写 Problem 1. Write a Python function: roots = findroots(p, a, b) whose arguments are: p: a list or ndarray of double-precision floating poi...
View detailsSearch the whole station
计算概论代写 Assignment 2 – Python Practice: working with functions & Turtles As always, all your answers should use functions and every function should
As always, all your answers should use functions and every function should have a documentation string explaining the purpose of the function. Use the Python template given below at the top of your program you submit (don’t forget to modify it to include your information; your name and your student number.)
# Program: cpsc111-SP2020-asg2.py
# Author: Enter your Name and student number here
# Class: CPSC 111
# Section: Enter your section
# Date: Enter the starting date (for example June. 1 st, 2020)
# Task: Assignment #2
# Purpose: Solving _________________________________
#
Do not wait until the last minute to do this assignment in case you run into problems.
Submit your assignment to the instructor by email at: drahmalki@gmail.com
Answer the following questions:
a) Write a Python function evaluateFunction() that takes one floating point number x as its argument and returns
The math module has a square root function and a logarithm function.
b) Using a while loop, write a Python function createListOfRandomFloatingPoints() that takes two floating point numbers start and end and returns the created list of 10 random floating-point values in the range of start to end inclusive. The random module has a random.uniform(start, end) function that returns a random floating-point number N such that start <= N <= end. Test your program using 19.95 and 99.95 as values entered for start and end.
c) Create a Python function dispalyTable() that takes the created list of random floatingpoint values and applies the function evaluateFunction() you wrote to each value in the list and print the results in normal and reverse orders as tables. There is a built-in function to reverse a list. You may not use it in this question.
1. Write a turtle graphics function that uses nested loops to draw 50 triangles forward and backward, to create the design shown below. Also, write the code that will demonstrate your function. Be sure to pay attention to proper indentation.
2. Write a turtle graphics function that uses a loop to draw 50 diamonds, to create the design shown below. Also, write the code that will demonstrate your function. Be sure to pay attention to proper indentation.
N.B: Next, you are going to make sure you can use the submission properly. This will be how you turn in your assignments electronically. The submission procedure only accepts zip files (NOT rar Files), so you are going to create a “Asg2_YourFirstName_YourStudentID.zip file containing all the programs you just wrote as well as this document with your name and student number added to it. To create a “.zip file, find the directory where the files are saved and select all of them. If you right-click on one of the selected files, you should have the option to create an archive by choosing “Send to” then “Compressed “zipped” Folder”.
Rename the created “.zip” file and give it the name Asg2_YourFirstName_YourStudentID.zip.
10 marks will be deducted if:
1. the email did not have a full name and a student # in the subject field or
2. the procedure for zipped file is not followed or
3. Python template and documentation are missing or
4. This document, with your names and student numbers on it, is not included with the zipped file or
5. Your partner’s email is not included in CC or BCc or
6. More than one submission has been made
A score of zero (0) will be given to everyone whose email is empty.
更多代写:CS澳大利亚网课代考 托福代考 英国Management 管理学 澳洲统计学论文代写 research代写 英国论文essays代写
合作平台:essay代写 论文代写 写手招聘 英国留学生代写
Programming assignment #1: rootfinding 数值分析编程代写 Problem 1. Write a Python function: roots = findroots(p, a, b) whose arguments are: p: a list or ndarray of double-precision floating poi...
View detailsPython2 Python算法代写 测试数据 工单数量自由设定,先设定为 20 机器数量自由设定,先设定为 6,编号为[1 2 3 4 5 6] 工人数量自由设定,先设定为 2,编号为[1 2] PTq[5 10 15 20 25 5 10 15 20 25 5 10 15 20 2...
View details学计算机的留学生一定要了解什么是python代考 国外python代考 计算机在现在是一个非常热门的行业,但是计算机专业也是非常难学的,计算机专业和法学、医学齐名,这三个专业被称之为最难熬的三个专业。这...
View detailsCOMP 424 Final Project Game: Colosseum Survival! AI算法代写 1.Goal The main goal of the project for this course is to give you a chance to play around with some of the AI algorithms discuss...
View details