Let us worry about your assignment instead!

We Helped With This Python Programming Homework: Have A Similar One?

More InfoPython Assignment

Assignment Description

Homework 5

Problem 1: For this exercise, write a dictionary that catalogs the classes you took last term - the keys should be the class number, and the values should be the title of the class.

Then, write a function add_class that takes two arguments - a class number and a description - that adds new classes to your dictionary. Use this function to add the classes you’re taking this term to the dictionary.

Finally, write a function print_classes that takes one argument - a department abbreviation (e.g. ‘MA’) - and prints out all the classes you took in that department. Example output:

>> print_classes(‘MA’)

MA241 - Mathematical Computation and Programming

MA122 - Calculus II

>> print_classes(‘CM’) No CM classes taken

For this exercise, we suggest using strings everywhere. Be sure to test with Course numbers that you both did and did not take!

Problem 2: We will be plotting OFTEN for the remainder of the course, so the first problem will ensure you are able to plot. I want you to plot the function) over the interval from 0 to 10. You will have to import math as discussed in class (no need to use Taylor series). For full credit, you must include the following:

1.    Space so that the plotted x-values are no larger than 0.1 between points

2.    Label the axes appropriately3. Give the figure a title

4.   Set the line width equal to 2

5.   The color of the line should be black

6.   Include a legend in the figure

7.   Set the axes to be x = [0,10] and y = [-1,1]. Problem 3: Later in this course, you will all need a decent sequence plotter. You will build that now.

Write a function that takes two inputs: start and stop, describing where to start and stop the sequence (they should be integers). This function should plot your sequence as red dots. Label your axes and give your plot a title. Finally, the function should print out the final value plotted in the sequence.

Problem 4: Write code to evaluate ln(x) using the Taylor series expansion from class. Make this a function that allows the user to input the number of terms to use (n), the desired x value (x), and prints the Taylor series estimate. I will test this code on ln(1.5).


Frequently Asked Questions

Is it free to get my assignment evaluated?

Yes. No hidden fees. You pay for the solution only, and all the explanations about how to run it are included in the price. It takes up to 24 hours to get a quote from an expert. In some cases, we can help you faster if an expert is available, but you should always order in advance to avoid the risks. You can place a new order here.

How much does it cost?

The cost depends on many factors: how far away the deadline is, how hard/big the task is, if it is code only or a report, etc. We try to give rough estimates here, but it is just for orientation (in USD):

Regular homework$20 - $150
Advanced homework$100 - $300
Group project or a report$200 - $500
Mid-term or final project$200 - $800
Live exam help$100 - $300
Full thesis$1000 - $3000

How do I pay?

Credit card or PayPal. You don't need to create/have a Payal account in order to pay by a credit card. Paypal offers you "buyer's protection" in case of any issues.

Why do I need to pay in advance?

We have no way to request money after we send you the solution. PayPal works as a middleman, which protects you in case of any disputes, so you should feel safe paying using PayPal.

Do you do essays?

No, unless it is a data analysis essay or report. This is because essays are very personal and it is easy to see when they are written by another person. This is not the case with math and programming.

Why there are no discounts?

It is because we don't want to lie - in such services no discount can be set in advance because we set the price knowing that there is a discount. For example, if we wanted to ask for $100, we could tell that the price is $200 and because you are special, we can do a 50% discount. It is the way all scam websites operate. We set honest prices instead, so there is no need for fake discounts.

Do you do live tutoring?

No, it is simply not how we operate. How often do you meet a great programmer who is also a great speaker? Rarely. It is why we encourage our experts to write down explanations instead of having a live call. It is often enough to get you started - analyzing and running the solutions is a big part of learning.

What happens if I am not satisfied with the solution?

Another expert will review the task, and if your claim is reasonable - we refund the payment and often block the freelancer from our platform. Because we are so harsh with our experts - the ones working with us are very trustworthy to deliver high-quality assignment solutions on time.

Customer Feedback

"Thanks for explanations after the assignment was already completed... Emily is such a nice tutor! "

Order #13073

Find Us On

soc fb soc insta

Paypal supported