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 12, 2018 07:46
WARD AND DISTRICT SELECTOR FOR HOSPITAL NOT WORKING
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 October 16, 2018 01:51
B
license: mit
@renauld94
renauld94 / .block
Created October 17, 2018 01:03
Filtering multichart with label color
license: mit
@renauld94
renauld94 / .block
Last active October 17, 2018 01:29
Filtering 2 charts with label color
license: mit
@renauld94
renauld94 / .block
Last active October 18, 2018 06:11
Multicharts Connectinning Map
license:
@renauld94
renauld94 / .block
Created October 18, 2018 06:59
fresh block
license: mit
height: 1000
@renauld94
renauld94 / .block
Last active October 18, 2018 07:29
Data table filtering
license: mit
@renauld94
renauld94 / .block
Created October 18, 2018 07:31
datatable
license: mit