New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Programming Fundamentals

by: Adonis Nader

Programming Fundamentals IT 108

Adonis Nader
GPA 3.61

Irene Bruno

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Irene Bruno
Class Notes
25 ?




Popular in Course

Popular in Information technology

This 5 page Class Notes was uploaded by Adonis Nader on Monday September 28, 2015. The Class Notes belongs to IT 108 at George Mason University taught by Irene Bruno in Fall. Since its upload, it has received 35 views. For similar materials see /class/215221/it-108-george-mason-university in Information technology at George Mason University.

Similar to IT 108 at Mason

Popular in Information technology


Reviews for Programming Fundamentals


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/28/15
T108 April 9 2009 Problem Create an 00 solution to calculate the amount of fencing needed to surround a rectangular yard The minimum dimensions the company can handle is 500 feet 0 800800 64000 6 stops working correctly 0 What to limit any rectangle to 800 o Instance Variables 0 Gets its very own copy of everything in the class 0 Rectangle yard ew RectangleO Creates Instance yard and calls constructor Constructor Rectangle setLengthO getperimetero getLengthO getWidthO setenghtmtb 39e 39quot Validating setWidthintboolean Process 0 Activity involves of the values in one object in order to solve the problem 0 Anything that has multiple job is taken care of Rectangle Code item Last Class public class RectangleClassDef private int length private int width public int getLengthO return length public int getWidthO return width public void setLengthint l length l T108 April 9 2009 public void setWidth int w width w public int perimeter 0 return 2 length 2 width public int area 0 return length width assign it to it to Changes to Class Code class Rectangle private int length private int width public int getLength 0 return length I input from user public int getWidth 0 return width width dimension of valid rectangle public Boolean setLengthint L ifLgtoampampLltsoo G length L return true else return false public Boolean setWidthint w if wgt0ampampwlt800 width w return true else T108 April 9 2009 return false public length L public int perimeter 0 return 2 length 2 width public int area 0 return 2 length 2 public void setLengthint l length l public void setWidthint w width w Changes to Class Code import javaxswingJOptionPane public class Fence public static void main String args rectangle yard new Rectangle int yardLengt h yardWidt h do yardLength lntergerparaselntJOptionPaneshowlnputDialog Enter length of yard while lyardsetLengthyardLength yardWidth lntergerparaselntJOptionPaneshowlnputDialog Enter width of yard quot while lyardsetLengthyardWidth yardWidth lntergerparaselntJOptionPaneshowlnputDialog ERROR Enter width of yard quotD JOptionPaneshowMessageDialognull A yard with length yardgetLength feet and widthquot yardgetWidth feet requires quot feet requiresquot yardpermiter feet of fencing quot Changes to Class Code Create and Fill an Obie import javaxswingJOptionPane public class Fence public static void main String args Rectangle mWard input 0 JOptionPaneshowMessageDialognull A yard with length yardgetLength feet and widthquot yardgetWidth feet requires quot feet requiresquot yardpermiter feet of fencing April 2 2009 0 0 solulion l Wholislne problem 2 Wholislne Objecl Procedural Info oul 3 Objecl ChOlT relurn vcrlue ccesslgel implemenlcrlion gequmeso Soccer Lecrue l lnpul info M Soccerjcrvcr Pl 0 l Dolor in one objecl 9 clossdefincrlion Access from objecl Oulpul home and slcrls lnformcrlion in orcrmeler Mucrlcrlorlseln Creole objecl lnpul leomNcrme lnpul inlo Objecl Tecrmjcrvcr o Dolo i Will be unique for each objecl l lnslonce vorioble b Melnods 39 Access Mulolor Conslruclor iv Speciol purpose Speciol Purpose 1 Operolion inslonce dolo lt April 2 2009 public class Team private String name private int won private int lost public String Mistakel return name public int getWon public void setNameString name return won name name public int getLost return lost Problem is one variable is representing public void setNameString n for two things name n Same name cant do both public void setWon int W Local over rides it you get a team won W without a name public void setLost int I lost l Public int stats return 100 won won lost Creates Teamname myTeam Falcons Public class soccer Public static void main String args Team myTeam newTeam Team another newTeam teamName JOption PaneSnowlnputDialog Namez


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.