Example Programs - InputInteger.java use a loop to read...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Example Programs Triangle.java - nested loops ChristmasTree.java - more nested loops Eighteen.java - Exercise 18, ch 2, Reges and Stepp book Quiz4.java - solution to quiz 4 TestType.java -- validating input type ReverseString.java Digits.java -- read an integer from the user, and print the sum of its digits Nested.java - simple example of nested loops StringArray.java SomeCircles.java CommandLine.java SquareTwo.java -- overriding methods inherited from Object class SquareTwoTest.java Rectangle.java RectangleDriver.java MarsRoverExample.java - part of MarsRover class MarsRoverTestExample.java Point.java - represents a point in 2 dimensional space PointDriver.java Date.java - represents any date Fillup.java - use a constant, compute price of gas CloseFloats.java - determine if two floating point numbers or really close Palindrome.java - determine if a string of length 3 is a palindrome
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: InputInteger.java- use a loop to read input from user until an integer is entered TriangleOfNumbers.java- nested loops Print15.java- loop CountPosNegZero.java- read ints from user and count number of negative, positive and zero inputs StringPractice.java RandPrac.java- generating pseudo-random numbers ScanTest.java- using the Scanner class ScanTest2.java- using the Scanner class to read input from a file ReadLine.java- practice with the String methods Box.java- practice with nested loops Coin.java CoinToss.java Square.java SquareTest.java Circle.java CircleTest.java FormattedOutput.java Rectangle.java Pair.java PairTest.java Student.java StudentTester.java Tax.java (printf example) Square.java SquareTest.java SquareTwo.java SquareTwoTest.java SquareRectangleTest.java SockPuppet.java...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern