Skip to content

Instantly share code, notes, and snippets.

View lacytimlick's full-sized avatar
😸

lacytimlick

😸
View GitHub Profile
@lacytimlick
lacytimlick / Duration.py
Created January 12, 2020 19:33
This program asks the user for Hour, Min, Duration. Calculates Time and duration to return end time.
hour = int(input("Starting time (hours): "))
mins = int(input("Starting time (minutes): "))
dura = int(input("Event duration (minutes): "))
# put your code here
MD = mins+dura
#used to brake decimal away and return only whole #
TT = MD%60
@lacytimlick
lacytimlick / gist:7671650
Last active December 29, 2015 12:39
In this lab you will create a single source code file called PointerFunctions.c that uses the main routine shown below: 1. You will provide the functionality for the functions in blue 2. Your task is to create the special functions used by this routine, which are shown in blue in the above program. The special functions are swapArgs, divideArgs …
#include <stdio.h>
#include <stdlib.h>
/* MAIN */
int main() {
int parmA, parmB;
int parma, parmb; // used later to reset
printf("Enter 2 integers ");
@lacytimlick
lacytimlick / Structs
Created November 26, 2013 01:45
So the program is a simple address book that allows the user to input 10 contacts the point of it is when I enter OR for example it would display the contacts that have OR as their state...I have got the inputs working just fine (using structures and a for loop) and also have it so it displays all the contacts that have been entered (for debuggi…
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#define size 2
struct Customer{
char firstName[30];
char lastName[30];
char street[35];