diff --git a/Assignments/Assignment_4.6 b/Assignments/Assignment_4.6 new file mode 100644 index 0000000..90cc793 --- /dev/null +++ b/Assignments/Assignment_4.6 @@ -0,0 +1,22 @@ +Hello Fellows! + +Write a program to prompt the user for hours and rate per hour using raw_input to compute gross pay. +Award time-and-a-half for the hourly rate for all hours worked above 40 hours. +Put the logic to do the computation of time-and-a-half in a function called computepay() and use the function to do the computation. +The function should return a value. Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75). +You should use raw_input to read a string and float() to convert the string to a number. +Do not worry about error checking the user input unless you want to - you can assume the user types numbers properly. +Do not name your variable sum or use the sum() function. + +Begin writing the program with the code below: +def computepay(h,r): + return 42.37 + +hrs = raw_input("Enter Hours:") +p = computepay(10,20) +print "Pay",p + + + +Happy Coding, +Tunisia diff --git a/Slides/Py4Inf-01-Intro.pdf b/Slides/03-24,29-16-Intro.pdf similarity index 100% rename from Slides/Py4Inf-01-Intro.pdf rename to Slides/03-24,29-16-Intro.pdf diff --git a/Slides/04-07-16-Functions.pdf b/Slides/04-07-16-Functions.pdf new file mode 100644 index 0000000..e6eb870 Binary files /dev/null and b/Slides/04-07-16-Functions.pdf differ diff --git a/Slides/04-12-16-Iterations.pdf b/Slides/04-12-16-Iterations.pdf new file mode 100644 index 0000000..cc284ab Binary files /dev/null and b/Slides/04-12-16-Iterations.pdf differ diff --git a/Slides/04-14-16-Strings.pdf b/Slides/04-14-16-Strings.pdf new file mode 100644 index 0000000..e9d7139 Binary files /dev/null and b/Slides/04-14-16-Strings.pdf differ