Preview

metcs520 W4 Assignment

Good Essays
Open Document
Open Document
637 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
metcs520 W4 Assignment
CS520 Week 4 Assignment (Lego Mania)
General Rules for Homework Assignments








You are strongly encouraged to add comments throughout the program. Doing so will help your facilitator to understand your programming logic and grade you more accurately.
You must work on your assignments individually. You are not allowed to copy the answers from the others. However, you are encouraged to discuss approaches to the homework assignment with your section mates and the facilitator in your section via the discussion board.
Each assignment has a strict deadline. However, you are still allowed to submit your assignment within 2 days after the deadline with a penalty. 15% of the credit will be deducted unless you made previous arrangements with your facilitator and professor. Assignments submitted 2 days after the deadline will not be graded. When the term lastName is referenced in an assignment, please replace it with your last name.

You are strongly encouraged to add comments into your program!
Create a new Java Project in Eclipse named HW4_lastName. Create a package named cs520.hw4 and complete the following by writing the appropriate classes under this package. Part 1 (50 points)
Create a Swing GUI application that displays the following graphics of red and blue lego blocks. The tower is always built from bottom row to top row, left to right in each row. Write a class named Legos1 extending the JFrame class with the following specifications. a. Declare the integer type instance variables startX, startY, legoWidth, and legoHeight. The first two values represent the top-left coordinates of the first red block in the bottom row. The next two values are the width and height of each block.
b. Declate another integer instance variable, baseLength. This represents the number of blocks in the bottom row.
c. In the constructor, specify the appropriate window title using your lastName and assign the above instance variables with the values 20,
300,

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Ac553 Wk4 Assignment

    • 601 Words
    • 3 Pages

    Susan Sweets is a 40 percent shareholder in Acclaim Inc., a theatrical supplies company. She transfers a fully depreciated car with a…

    • 601 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Submit to the assignment box before the due date. (Late assignments will receive a late penalty).…

    • 448 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 4 Assignment

    • 381 Words
    • 2 Pages

    In this paper we will discuss two different cabling solutions (copper & fiber), and in what situations you would choose one over the other. One might be better for one type of application while the other might be a better fit, depending on the situation. They each have their own advantages which we will discuss in the following paragraphs.…

    • 381 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 3

    • 659 Words
    • 3 Pages

    Program description: I calculated the usable area in square feet of a house. Assume that the house has a maximum of four rooms, and that each room is rectangular. I wrote pseudo code statements to declare 4 Integers and labeled them homesqft, room1, room2, room3, and room4. Each room will have its length and width to calculate its area.…

    • 659 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Is3110 Week2 Assignment

    • 348 Words
    • 2 Pages

    missed, a penalty of $100,000 is assessed. Three months after the deadline, the contract will be…

    • 348 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    ISSC342 Assignment5

    • 338 Words
    • 1 Page

    During the first two phases of the five step process of a cyber-attack a hacker conducts reconnaissance of the target network and scans for any vulnerabilities that could be exploited. (EC-Council, 2009) These vulnerabilities are known as a system’s attack surface. One of the core job functions of Network administrators is reducing this attack surface through a process called system hardening. There a number of techniques that can be used to harden Microsoft clients and servers such as scanning the system with nmap to find any vulnerabilities that comes from having open ports. After the initial scan the administrator should close open ports and uninstall unnecessary services. (Solomon, 2014) Administrators should also run follow up scans with nmap to make sure that there are no ports or services that they may have missed during their first run. Nmap is not the only program that can identify vulnerabilities within a server, the SCW utility should also be used when you are installing new server hardware to check for any unwanted services that may be set to run on the server as a default setting. (Solomon, 2014)…

    • 338 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Home Work 7

    • 826 Words
    • 7 Pages

    You will receive no credit for items you complete after the assignment is due. Grading Policy…

    • 826 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Unit 2 Lan

    • 272 Words
    • 2 Pages

    Weekly tasks or assignments (Individual or Group Projects) will be due by Monday and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time.…

    • 272 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    If a BB copy of your assignment is more than 10 days late you will receive 0%.…

    • 674 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    3635 assignment

    • 520 Words
    • 3 Pages

    Late Penalty: The late penalty for the assignment is 10 percent of the full mark per day for…

    • 520 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Weekly tasks or assignments (Individual or Group Projects) will be due by Monday, and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time.…

    • 327 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    All assignments MUST be submitted by the deadline. If you think you will not be able to submit your assignment in time (because of illness or bereavement) you must contact your instructor in advance and NOT on the due date for the assignment. If the assignment is not received within 15 minutes by the specified deadline it will be counted as missed and will not be graded (you will receive 0% for that assignment). If you know you cannot meet the assigned deadline for any reason, contact your instructor as soon as possible to make alternate arrangements.…

    • 1650 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment Due Date: This assignment is due NO LATER THAN Saturday, 11:59pm MST of Week 4. A late assignment will be automatically deducted 20% as per classroom…

    • 331 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 4 Assignment

    • 259 Words
    • 2 Pages

    My major personal is to stay dedicated, be focus and do my work and pull thru any positive goals. My professional is to maintain motivated and to earn a promotion and one day make a successful business for being counseling. My academic is to set a good goal that will benefit me and my future of life, also finish school, get a bachelor’s degree for being a counseling and raise my GPA up to be successful. The ways i can work around these challenges are being present in school.…

    • 259 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NU FS 363

    • 2744 Words
    • 11 Pages

    due at the beginning of class (9:30) on the day indicated in the course outline. Late assignments…

    • 2744 Words
    • 11 Pages
    Satisfactory Essays

Related Topics