This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Dominic Spucches | |
*29JUN2018 | |
*Blood Drive takes input of pints of blood donated | |
*and averages the number | |
*/ | |
import java.awt.*; | |
import javax.swing.*; | |
import java.awt.event.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# Author: Dominic Spucches | |
# Project: Rock, Paper, Scissors game with computer. | |
# Date Started: 6/26/2017 | |
print('Hello and welcome to a game of Rock, Paper, Scissors. You will play against a computer, if you wish to continue press 1 if not press 2.') | |
inp = int(input('> ')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# Author: Dominic Spucches | |
# Date: 18 JUN 2017 | |
# Project: Dice Game, asks if you want to play, generates random numbers. The program also says who won and if its a tie. | |
print("Hello! Would you like to play a game? Choose the number 1 for yes, and the number 2 for no!") | |
game = input('> ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rectangle1(): | |
width1 = int(input('Enter the width of rectangle 1: ')) | |
height1 = int(input('Enter the height of rectangle 1: ')) | |
print('The area of rectangle 1 is: ', width1 * height1) | |
return width1 * height1 | |
def rectangle2(): | |
width2 = int(input('Enter the width of rectangle 2: ')) |