20201108_CS1083_Fall_2020_P3_Moving_Forms.pdf - \u00a9Copyright UTSA-CS1083-Fall-2020 Project 3 This may not be copied to any website CS 1083 Fall 2020

20201108_CS1083_Fall_2020_P3_Moving_Forms.pdf -...

This preview shows page 1 - 3 out of 9 pages.

©Copyright UTSA-CS1083-Fall-2020 Project 3. This may not be copied to any website. UTSA – CS1083 – Fall 2020 – Project 3 - Problem Statement - Page 1 CS 1083 Fall 2020 Project 3: Moving Shapes (80 points) The Moving Shapes Class Objectives This is one of three major programming projects this semester. You should NOT collaborate on this project. While you may ask for assistance in debugging, this project should be ENTIRELY your own work. Objectives include: Use of a Scanner Use of loops Use of methods Use of global and local variables Use of arrays Use of graphical objects Hand-in Requirements All projects will be submitted electronically through Blackboard. Zip up your entire project directory to submit as the source. (Right-click on the project folder and follow 7-Zip > Add to "abc123_project3.zip" ; The project folder should include the following files: MovingShapes.java MovingShapesScreenShot.jpg The classes included in the java.util and java.awt packages are the only ones allowed to be used in this project. The source code of the DrawingPanel.java class that can be used in this project can be downloaded from this link . Note that it is NOT permitted to modify the DrawingPanel class. It is also NOT allowed to use concepts/techniques not covered in the course. Everything has to be coded in the MovingShapes.java file. The use of unallowed materials mentioned in this or the first paragraph may grant an automatic zero grade. Introduction This project aims to display a set of shapes that will move from the center of the drawing panel following the configuration the user will input.
©Copyright UTSA-CS1083-Fall-2020 Project 3. This may not be copied to any website. UTSA – CS1083 – Fall 2020 – Project 3 - Problem Statement - Page 2 Your program has to manage a set of global variables as follows: A Scanner variable An integer number of Shapes to be displayed An integer number of times that the shapes will move Additionally, the program has to manage a set of global arrays that store information about every shape's different characteristics. An array of Strings that will store the shapes: The only possible values for this array are "Square" and "Circle" An array of integer numbers of the size of every shape An array of Strings that will store the color of every shape: The values that could be stored in this array could be: "Red", "Blue", "Pink", "Yellow", "Green", "Magenta", "Orange", "Dark_gray", "Light_gray", and "Gray" An array of integers corresponding to the direction of every shape. The possible values to be stored are: 0 for left, 2 for up, 4 for right, and 6 for down An array of integers corresponding to the speed that every shape will be moving. The possible values to be stored are between 0 to 10 An array of integers corresponding to the x position of the top left corner of every shape An array of integers corresponding to the y position of the top left corner of every shape Note that the different characteristics of every shape will be stored in the corresponding arrays. For example, if the

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture