Skip to content

Instantly share code, notes, and snippets.

@renauld94
renauld94 / gist:f69e68fde9a3b8c88749
Created February 1, 2016 20:09
Pay program and overtime
# Write a program to prompt the user for hours and rate per hour using raw_input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. 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 - assume the user types numbers properly.#
hrs = float(raw_input("Enter Hours:"))
rate = float(raw_input("Enter rate:"))
if 0 < hrs <=40:
print hrs * rate
if hrs > 40:
print 40 * rate + (hrs-40)*rate*1.5
@renauld94
renauld94 / .block
Last active October 19, 2018 08:42
multiple layers select
license: mit
@renauld94
renauld94 / .block
Last active October 22, 2018 09:47
Interactive map ward
license: mit
@renauld94
renauld94 / .block
Last active October 18, 2018 06:11
Multicharts Connectinning Map
license:
@renauld94
renauld94 / .block
Last active October 12, 2018 07:46
WARD AND DISTRICT SELECTOR FOR HOSPITAL NOT WORKING
license: mit
@renauld94
renauld94 / .block
Last active October 16, 2018 01:51
B
license: mit
@renauld94
renauld94 / .block
Last active November 5, 2018 04:08
interactive labels HOSPITALS with (OSM or mapbox selector)
license: mit
@renauld94
renauld94 / .block
Last active October 16, 2018 01:50
Pie chart and color label map
license: mit
@renauld94
renauld94 / .block
Last active November 6, 2018 07:18
multiple layer select with labels not working yet
license: mit
@renauld94
renauld94 / .block
Last active October 23, 2018 03:48
filtering chart pie with label color
license: mit