Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Playing with objects

love236
love236 


please see the attached files Attachments Tags Clarifications

Answers

Answer

mariobeka
mariobeka 



Solution for just a part of the problem Attachments
Main.java (3 K) Download Preview
IMAGECOLS = 70; private static int MAXROCKS = 4; private static double MINANGLE = 10.0; private static double MAXANGLE = 80.0; static Vector<Rock> rocks; static Vector<String> image; public static void main(String[] args) { // TODO code application logic here Scanner inp = new Scanner(System.in); /* Prompt for number of rocks

Rock.java (1 K) Download Preview
editor. */ package jlab4b; /** * * @author mglass */ public class Rock { public static final double ACC = -9.81; /* Gravitational acceleration */ private double initial_velocity; private double initial_angle; private double xv; /* X-velocity (does not change with time) */ private double yv; /* Initial y-velocity (changes with time) */

Screenshots
Purchase Answer