Posted: September 13th, 2017

LISTS, TUPLES, STRINGS, DICTIONARIES, AND BUILT-IN FUNCTIONS

Paper, Order, or Assignment Requirements

 

Kindy, M. (2008). Chapter 15: Programmer-defines Functions. Python 2: For Beginners Only. Edition1.0. Retrieved from https://cs118.kindy.net/p2fbo_20131230.pdf

Kindy, M. (2008). Chapter 16: Fruitful functions. Python 2: For Beginners Only. Edition1.0. Retrieved from https://cs118.kindy.net/p2fbo_20131230.pdf

Kindy, M. (2008). Chapter 17: Files. Python 2: For Beginners Only. Edition1.0. Retrieved from https://cs118.kindy.net/p2fbo_20131230.pdf

our SLP 3 assignment is about using files for persistent data:

Read Chapter 17, in the online book of “Python 2: For Beginners Only” and run all the examples and and collect all the running results from output by copying and pasting into a file named as “ITM205-SLP3-Examples-YourFirstnameLastName
Finish the following exercises from “Python 2: For Beginners Only”:
Exercise 17.1, Exercise 17.2
Exercise-A: modify the examples code in Chapter 17.6 in “Python 2: For Beginners Only” to define a function as make_contact(file name) that generates a file named as “EmergencyContacts” using module anydbm and include 5 pair of name and phone number. And then define another function as print_contacts(file name) to print out all the contact in the given “file name”. Test them with your own data.

Exercise-B:

Put both function make_contacts(file name) and print_contacts(file name) into a file and create a module named as “contacts.py. Write another test program test.py that import your contacts.py as a module and use the functions inside and test them.

Create a submission file named as “ITM205-SLP3-Exercises-YourFirstNameLastName “ which contains source code and running results marked with exercise number.

Write a summary document in Microsoft Word format named as “ITM205-SLP3-Summary-YourFirstNameLastName” to show what you have accomplished.

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp