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
protocol AgeClasificationProtocol { | |
var age: Int { get } | |
func agetype() -> String | |
} | |
class Person { | |
var firstname: String | |
var lastname: String | |
var age: Int | |
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
/* | |
* File: Breakout.java | |
* ------------------- | |
* Name: | |
* Section Leader: | |
* | |
* This file will eventually implement the game of Breakout. | |
*/ | |
import acm.graphics.*; |
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
// | |
// WatchSessionManager.swift | |
// WatchConnectivityDemo | |
// | |
// Created by Natasha Murashev on 9/3/15. | |
// Copyright © 2015 NatashaTheRobot. All rights reserved. | |
// | |
import WatchConnectivity |
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
/* | |
* File: Hangman.java | |
* ------------------ | |
* This program will eventually play the Hangman game from | |
* Assignment #4. | |
*/ | |
import acm.graphics.*; | |
import acm.program.*; | |
import acm.util.*; |
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
/* | |
* File: MidpointFindingKarel.java | |
* ------------------------------- | |
* When you finish writing it, the MidpointFindingKarel class should | |
* leave a beeper on the corner closest to the center of 1st Street | |
* (or either of the two central corners if 1st Street has an even | |
* number of corners). Karel can put down additional beepers as it | |
* looks for the midpoint, but must pick them up again before it | |
* stops. The world may be of any size, but you are allowed to | |
* assume that it is at least as tall as it is wide. |
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
/* | |
* File: StoneMasonKarel.java | |
* -------------------------- | |
* The StoneMasonKarel subclass as it appears here does nothing. | |
* When you finish writing it, it should solve the "repair the quad" | |
* problem from Assignment 1. In addition to editing the program, | |
* you should be sure to edit this comment so that it no longer | |
* indicates that the program does nothing. | |
*/ |
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
//adding individual paddle object | |
private GRect paddle; | |
private double lastX; | |
//paddle set-up | |
private void drawPaddle() { | |
//starting the paddle in the middle of the screen | |
double x = getWidth()/2 - PADDLE_WIDTH/2; | |
//the paddle height stays consistent throughout the game | |
//need to make sure to subtract the PADDLE_HEIGHT, |
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
/* | |
* File: Pyramid.java | |
* Name: | |
* Section Leader: | |
* ------------------ | |
* This file is the starter file for the Pyramid problem. | |
* It includes definitions of the constants that match the | |
* sample run in the assignment, but you should make sure | |
* that changing these values causes the generated display | |
* to change accordingly. |
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
/* | |
* File: Yahtzee.java | |
* ------------------ | |
* This program will eventually play the Yahtzee game. | |
*/ | |
import acm.io.*; | |
import acm.program.*; | |
import acm.util.*; | |
import java.util.*; |
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
/* | |
* File: Target.java | |
* Name: | |
* Section Leader: | |
* ----------------- | |
* This file is the starter file for the Target problem. | |
*/ | |
import acm.graphics.*; | |
import acm.program.*; |
NewerOlder