Programmer Defined Function
INPUT, OUTPUT, AND BUILT-IN AND PROGRAMMER-DEFINED FUNCTIONS
Case Assignment
Case 2 assignments consist of keyboard input, formatted output, built in functions, and programmer functions:
Review the assigned videos in the background materials of the course before attempting to read the Python chapters.
Complete the following exercises from chapters 5, 6, 7 and 15 from “Python 2: For Beginners Only.”
Exercise 5.1, Exercise 5.3, and Exercise 6.3.
Exercise 7.2, Exercise 7.3,
Exercise 15.3, Exercise15.4 (exercises 1-4 only)
Create a Word file named as “ITM205-Case 2-Exercises-YourFirstNameLastName”containing a copy of each of the IDLE source codes and running results with clear exercise numbers marked on the page.
You can use the Snipping tools or screen print (ctrl + Print Screen) to show the Pythons editor’s (IDLE) code and results and demonstrate that your program executed correctly.
Write a summary document in Microsoft Word format named as “ITM205-Case2-Summary-YourFirstNameLastName” to show what you have accomplished through the exercises.
INPUT, OUTPUT, AND BUILT-IN AND PROGRAMMER-DEFINED FUNCTIONS
Name:
Institution:
Exercise 5.1
Source code:
The result:
Exercise 5.3
The Python format characters are:
dSigned integer decimal.
iSigned integer decimal.
oUnsigned octal.
uUnsigned decimal.
xUnsigned hexadecimal (lowercase).
XUnsigned hexadecimal (uppercase).
eFloating point exponential format (lowercase).
EFloating point exponential format (uppercase).
fFloating point decimal format.
FFloating point decimal format.
gSame as "e" if exponent is greater than -4 or less than precision, "f" otherwise.
GSame as "E" if exponent is greater than -4 or less than precision, "F" otherwise.
cSingle character (accepts integer or single character string).
rString (converts any python object using repr()).
sString (converts any python object using str()).
%No argument is converted, results in a ...
👀 Other Visitors are Viewing These APA Essay Samples:
-
Working with Functions, Built-in and Programmer Defined Functions
1 page/≈275 words | 1 Source | APA | Technology | Coursework |
-
Python Program
2 pages/≈550 words | No Sources | APA | Technology | Coursework |
-
Conditional Iterations and Loops
2 pages/≈550 words | No Sources | APA | Technology | Coursework |