![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java assignments for stanford
really_wy
这个作者很懒,什么都没留下…
展开
-
Assignment1_CollectNewspaperKarel
/* * File: CollectNewspaperKarel.java * -------------------------------- * At present, the CollectNewspaperKarel subclass does nothing. * Your job in the assignment is to add the necessary cod原创 2012-09-04 20:36:47 · 532 阅读 · 0 评论 -
Assignment2_Pyramid
/* * File: Pyramid.java * ------------------ * This program is a stub for the Pyramid problem, which draws * a brick pyramid. */ import acm.graphics.*; import acm.program.*; public class Pyrami原创 2012-09-09 21:02:26 · 416 阅读 · 0 评论 -
Assignment2_GraphicsHierarchy
/* * File: .java * ---------------------------- * This program is a stub for the GraphicsHierarchy problem, which * draws a partial diagram of the acm.graphics hierarchy. */ import acm.program.*原创 2012-09-09 20:35:14 · 321 阅读 · 0 评论 -
Assignment2_Quadraticequation
/* * File: Quadratic.java * -------------------- * This program is a stub for the Quadratic problem, which finds the * roots of the quadratic equation. */ import acm.program.*; pub原创 2012-09-08 09:05:58 · 295 阅读 · 0 评论 -
Assignment2_FindRange
/* * File: FindRange.java * -------------------- * This program is a stub for the FindRange problem, which finds the * smallest and largest values in a list of integers. */ import acm.p原创 2012-09-08 09:28:42 · 463 阅读 · 1 评论 -
Assignment2_Hailstone
/* * File: Hailstone.java * -------------------- * This program is a stub for the Hailstone problem, which computes * Hailstone sequence described in Assignment #2. */ import acm.progra原创 2012-09-08 09:40:53 · 332 阅读 · 0 评论 -
An Example of Stepwise Refinement(BanishWinter)
import stanford.karel.*; public class BanishWinter extends SuperKarel { public void run() { while (beepersInBag()) { moveToTree(); climbTree(); putDownBeeper(); toBottom(); } } p原创 2012-09-06 18:27:04 · 387 阅读 · 0 评论 -
Assignment1_MidFindingKarelpoint
/* * File: MidFindingKarelpoint.java * ------------------------------- * When you finish writing it, the MidpointFindingKarel class should * leave a beeper on the corner closest to the center原创 2012-09-05 09:12:41 · 572 阅读 · 0 评论 -
Assignment1_CheckerboardKarel
/* * File: CheckerboardKarel.java * ---------------------------- * When you finish writing it, the CheckerboardKarel class should draw * a checkerboard using beepers, as described in Assignmen原创 2012-09-04 20:39:52 · 434 阅读 · 0 评论 -
Assignment1_StoneMasonKarel
/* * File: StoneMasonKarel.java * -------------------------- * The StoneMasonKarel subclass as it appears here does nothing. * When you finish writing it, it should solve the "repair the quad"原创 2012-09-04 20:38:26 · 471 阅读 · 0 评论 -
Assignment2_Target
/* * File: Target.java * ------------------ * This program is a stub for the Target problem, which displays * a target by adding concentric circles to the canvas. */ import java.awt.Color; impor原创 2012-09-08 19:35:28 · 417 阅读 · 0 评论