lab2
2 Pages

lab2

Course Number: CSC 1302, Fall 2009

College/University: Columbus State University

Word Count: 461

Rating:

Document Preview

Assignment 2 Media Contributions Maximum Points = 50 The purpose of this lab is to focus on the study of classes, objects, and inheritance. The faculty at CSU are being asked to keep track of their professional and service contributions. One particular set of these are media contributions (TV, radio, newspapers, magazines, Internet). BASIC ASSIGNMENT a) Design and implement a base class that represents media...

Unformatted Document Excerpt
Coursehero >> Georgia >> Columbus State University >> CSC 1302

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

2 Assignment Media Contributions Maximum Points = 50 The purpose of this lab is to focus on the study of classes, objects, and inheritance. The faculty at CSU are being asked to keep track of their professional and service contributions. One particular set of these are media contributions (TV, radio, newspapers, magazines, Internet). BASIC ASSIGNMENT a) Design and implement a base class that represents media contributions. A media contribution has a code (T, R, N, M, I, O), a title, author, and date of activity. b) Design and implement classes for specific types of media contributions: TV, radio, newspaper, magazine, and Internet. a. TV and radio activities would include the station of the broadcast, the time of the broadcast, and the name (type) of show, e.g. Evening News. b. Newspaper and magazine activities would include the name of the publication, and page number (s). Newspaper activities would also include a section (e.g. A). c. Internet activities would include the URL. c) Make sure to include necessary constructors, accessors & mutators (gets/sets), and toString methods for all classes. d) Design and implement a main class that a. reads the data from a file (media.txt) where the first field identifies the type of activity (T TV, R Radio, N Newspaper, M magazine, I Internet). Each record consists of the data for the activity with each field separated by # (see Listing 5.11 on page 248-259). b. After reading in all of the data, your main class should print out all of the records in a nice Sample format. Input T#Online classes at CSU#Wayne Summers#July 6, 2008#WTVM#17:25#Five O'clock News R#Half-time show#Coach Hayes#January 28, 2009#WDAK#17:45#Cougar Basketball N#Neuromancer movie review#William Gibson#December 30, 2009#Columbus LedgerEnquirer#D#12 M#Snowcrash book review#Neal Stephenson#October 8, 2004#SciFi Weekly#45 I#Wayne's World#Wayne Summers#November 1994#http://csc.colstate.edu/summers EXTRA FEATURES a) Allow the user to select the file to read the data from. b) Allow the user to select one type of media (T TV, R Radio, N Newspaper, M magazine, I Internet) and display only that type. a. Use keyboard selection b. Use JOptionPane c. Use drop-down list c) Sort the data by type before displaying. d) Sort the data by author's name before displaying. e) Allow the user to select a field for sorting and then display the data sorted on that field. (Due before class on Tuesday, Februar...

Textbooks related to the document above:

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Columbus State University - CSC - 1302
Assignment 6 ITunes Music DatabaseMaximum Points = 50 The purpose of this lab is to focus on the study of classes, objects, GUI, and Linked Lists. The purpose of this lab is to introduce you to the linked list data structure. In this lab you will w
Columbus State University - CSC - 1302
Assignment 6 ITunes Music DatabaseMaximum Points = 50 The purpose of this lab is to focus on the study of classes, objects, GUI, and Linked Lists. The purpose of this lab is to introduce you to the linked list data structure. In this lab you will w
Columbus State University - CSC - 1301
LAB 1 - Introduction to Computers and Computer ProgrammingDemonstration of the inside of a computer, learn to locate motherboard power supply RAM disk drives portsVerify that your userids are operational. 1. Since it's fall semester, the acc
Columbus State University - CSC - 1301
LAB 3 - Introduction to DrJavaLab ExercisesTopics Installing DrJava Starting DrJava Math Operators Printing Results of a Statement Data Types in Math Expressions Lab ExercisesExercisesInstalling DrJava a) Make sure you have Java 1.5 or above ins
Columbus State University - CSC - 1301
LAB 8 - Introduction to Programming (part 3 turtles)Lab ExercisesTopics To create a method to reuse a series of Java statements To be able to use methods to perform tasks To be able communicate with methodsExercises 3.5 Creating MethodsType i
Columbus State University - CSC - 1301
LAB 9 - Introduction to Programming (part 4 working with Media)Lab ExercisesTopics To create and manipulate media like pictures and soundsExercises 3.6 Working with Media3.6.1 Creating a Picture Object Type in the following code in the Interac
Columbus State University - CSC - 1301
LAB 34 Creating Classes (part 3)Lab ExercisesTopics To create additional classes. ToExercises 11.8 Creating Another Classi) Open a new file in Dr. Java and type in the following enumerated data type: /* * Semester enumerated data type */ enum
Columbus State University - CSC - 1301
LAB 36 Creating and Modifying Text (part 1)Lab ExercisesTopics To manipulate structured text, such as a delimited string. To manipulate strings To use the swing class JOptionPaneExercises 12.2 Strings: Character Sequencesi) Open a new file i
Columbus State University - CSC - 1301
LAB 37 Creating and Modifying Text (part 2)Lab ExercisesTopics To manipulate structured text, such as a delimited string. To manipulate strings To use the swing class JOptionPaneExercises 12.2 Strings: Character Sequencesi) Create a textfile
Columbus State University - CSC - 1301
LAB 38 Creating and Modifying Text (part 3)Lab ExercisesTopics To write programs that directly access and use text information from the Internet To access the Internet via a program To use the BlueJ IDEBlueJ (http:/www.bluej.org/ [ tutorial a
Columbus State University - CSC - 1301
LAB 39 AppletsLab ExercisesTopics To write an Applet that can be accessd via the Internet To use the BlueJ IDE to write and test the appletUsing BlueJ to start a new applet1) Starting BlueJ - double-click icon. 2) Creating a new project - sel
Columbus State University - CSC - 1301
LAB 40 GUI (Frames and Panels)Lab ExercisesTopics To introduce components and containers used in graphical user interfaces. To write a GUI using frames and panels To use the BlueJ IDE to write and test the applicationUsing BlueJ to start a ne
Columbus State University - CSC - 1301
LAB 41 GUI (Buttons, events, and listeners)Lab ExercisesTopics To introduce the concepts needed to create an interactive graphical user interfaces. To write an interactive GUI using buttons, events, and listeners To use the BlueJ IDE to write a
Columbus State University - CSC - 1301
LAB 42 Creating and Modifying MoviesLab ExercisesTopicsTo generate frame-based animations with simple geometric shapes, text, and images To add parameters to methods to make them reusable How to move more than one drawn object in a movie To
Allan Hancock College - CIVL - 5264
The University of Sydney School of Civil EngineeringToday's lecture will cover: Creep and shrinkage effects in concrete Available design models to depict time effectsWEEK 4 LECTURE 4 CIVL5264 Composite steel-concrete structuresTIME-DEPENDENT
Allan Hancock College - CIVL - 5264
The University of Sydney School of Civil EngineeringWEEK 8 LECTURE 8 CIVL5264 Composite steel-concrete structuresEC GUIDELINES SOME CONSIDERATIONS ON THE NONLINEAR ANALYSIS OF COMPOSITE CROSS-SECTIONS Lecturer: Gianluca RANZI Semester I - 20071
Columbus State University - CSC - 6126
RSA Public Key Coding: Key Selection WorksheetSelect two different three-digit primes between 137 and 311 (see the list to the right) and enter them in cells B6 and B7. First Prime: Second Prime: Your modulus is: Euler totient*: OUT OF RANGE BOTH TH
Columbus State University - CSC - 6126
Secret Key Splitting WorksheetEnter a three digit number in cell B5 - the key to be split. Key: 227Enter three moduli in cells A12, A13 and A14. These be numbers between 10 and 31 that have no common factors (other than 1) Modulus 11 13 16 Piece 7
Allan Hancock College - XXXCIVL - 2110
CIVL2110MATERIALS Soil and RockTutorial solutionQuestion 1 Discuss what properties are needed for a shoe sole Friction coefficient high enough to prevent slip, able to cope with a variety of ground surfaces. (Sports shoes need to slide sometim
Allan Hancock College - CIVL - 5451
Application in Section 5.1.2:Nodal coordinatesNode No. 1 2 3 4 5 x-coord. 4 0 2 4 0 y-coord. 5 5 2.5 0 0Element connectivity dataElement No. 1 2 3 4 Node l 1 2 5 4 Node m 2 5 4 1 Node n 3 3 3 3 a(unrestrained) =Nodes 2 & 5 are fixed in x-direc
Columbus State University - CSC - 6128
RSA Public Key Coding: Key Selection WorksheetSelect two different three-digit primes between 137 and 311 (see the list to the right) and enter them in cells B6 and B7. First Prime: Second Prime: Your modulus is: Euler totient*: OUT OF RANGE BOTH TH
Columbus State University - CSC - 6128
Secret Key Splitting WorksheetEnter a three digit number in cell B5 - the key to be split. Key: 227Enter three moduli in cells A12, A13 and A14. These be numbers between 10 and 31 that have no common factors (other than 1) Modulus 11 13 16 Piece 7
Columbus State University - CS - 456
STUDENT WEB-EMAIL ACCOUNT INSTRUCTIONS TO OBTAIN A USERNAME: Open a browser program. Netscape or Internet Explorer is a good choice. Click your mouse pointer on the Address/Location: and key in the following address. http:/orion.nmhu.edu/email Pres
Columbus State University - CS - 558
Homework questions for Chapter 12 1. Log onto rex.nmhu.edu 2. Run w and who. Who is logged in right now? 3. Run ifconfig (/sbin/ifconfig) a. What is the MAC address of rex? b. What are the broadcast and subnet masks for rex? c. What is the maximum nu
Penn State - JDM - 341
Dave Maino Lighting/Electrical Dr. Mistrick TCES Incline Village, NV 10/06/05 Technical Report 1. . . . . . .name option advisor building location date titleThis report, along with supplemental information, can be found at "P:\ae 481\tech1" Ful
Penn State - EDS - 145
Eric Singley Countrywide Conference Room February 03, 2006All files used are located at P:/thesis/Feb3Luminaire Data: Fixture (A)Lamp Data:Manufacturer: Catalog number:Se 'lux International M6R1-1T5-MPType and Color: Number per luminaire:
Penn State - MAP - 370
Table of Contents Executive Summary.2 Building Summary.3Key Players Architecture Building Envelope and Facade Zoning/ Site Other SystemsExisting Structure.6Gravity Lateral Foundation Summary Codes and LoadingProblem Statement..17Proposed Inves
Columbus State University - CSC - 1301
TSYS Department of Computer Science Why Computer Science? 2007Wayne Summers, Columbus State University The number of Computer Science majors has dropped 40-50% nationwide since 2001 The percentage of women has dropped to about 15% From a high of
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Chapter 6 Conditionals - part 1Learning GoalsUnderstand at a conceptual and practical level Howto conditionally execute a statement or a block of statements How to remove red-eye from a pictureRemove Red Eye
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Chapter 6 Conditionals - part 2Learning GoalsUnderstand at a conceptual and practical level Howto use conditionals with two possibilities How to do simple edge detection How to use `and', `or', `exclusive or' and
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Chapter 6 Conditionals - part 4Learning GoalsUnderstand at a conceptual and practical level Howto change the background on a picture? How to do chroma key?Background ReplacementIf you have a picture of a
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Chapter 7 Drawing in Java part 1Learning GoalsUnderstand at a conceptual and practical level Howto change pixel colors to draw lines How to use the java.awt.Graphics class to do simple drawingHow to draw simple
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Chapter 7 Drawing in Java part 2Learning GoalsUnderstand at a conceptual and practical level Howto draw more simple shapes with java.awt.GraphicsArcs Rectangles Bitmappedpictures versus vector graphics Ho
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1Introduction:AppletsAppletsA Java application is a stand-alone program with a main method A Java applet is a program that is intended to transported over the Web and executed using a web browser An applet can also
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1GUIs (part 1) Frames and PanelsGUI ComponentsA GUI component is an object that represents a screen element such as a button or a text field GUI-related classes are defined primarily in the java.awt and the javax.swing
Columbus State University - CSC - 1301
CPSC1301 Computer Science 1GUIs (part 2) Buttons, Events, and ListenersGraphical User InterfacesA Graphical User Interface (GUI) in Java is created with at least three kinds of objects: components events listenersWe've previously discuss
Columbus State University - CS - 101
CS101 Living with Computers ACTIVITIES & QUESTIONS FOR DISCUSSION Chapter 3 (Classes 6-7): Answer student questions. Discuss what's on the CD (interactive keyboard and mouse tutorials; interactive demo of inner workings of computer) Discuss what'
Penn State - PLH - 139
Patrick L. HoppleFaculty Consultant : Dr. Linda Hanagan Date: Tuesday, October 05, 2004 Project: Hyatt Center (71 South Wacker Drive : Chicago, IL)Technical Assignment #1 Structural Concepts/Structural Existing Conditions Report Executive Summary:
Columbus State University - CS - 558
Chapter 3Chapter 3 Basic Foundations:Standards, Models, and LanguageNetwork Management: Principles and Practice Mani Subramanian 20003-1Chapter 3Introduction Standards Standards organizations Protocol standards of transport layers P
Columbus State University - CS - 557
Other Important TCP/IP StandardsDomain Name System (DNS) Autoconfiguration ProtocolsDomain Name System (DNS) Only IP addresses are official e.g., 128.171.17.13 These are 32-bit binary numbers Only they fit into the 32-bit destination and sourc
Columbus State University - CS - 557
Broader PerspectiveA Multiprotocol WorldOther TCP/IP-IP Standards Even if you use TCP/IP-OSI, you will not always use HTTP, TCP, and IP at the top layers There are any other TCP/IP protocols for the application, transport, and internet layers A
Columbus State University - CS - 557
A Closer Look at HTTPHyperText Transfer ProtocolHTTP: A Closer Look World Wide Web Standards HTTP (HyperText Transfer Protocol) governs requests and responses between the browser and the webserver application program HTML (HyperText Markup Lang
Columbus State University - CS - 557
TCP: A Closer LookTransmission Control ProtocolTCP: A Closer Look Browser does not send HTTP Requests directly to the webserver application The application layer programs are not physically connected Browser sends HTTP Request to the user PC's
Columbus State University - CS - 557
More on PPPPoint-to-Point ProtocolData Link Layer Process Internet layer process passes EACH IP packet to the data link layer process for delivery over the data linkInternet Layer Process IP Packet Data Link Layer ProcessPPP Point-to-Point Pr
Columbus State University - CS - 557
More on TCP AcknowledgementsSequence Number Field Initial Sequence Number Acknowledgement Number FieldTCP TCP is Reliable IP packets carrying TCP segments may arrive out of order TCP must put the TCP segments in order5 3 4 2 1TCP TCP is Rel
Columbus State University - CS - 557
Mask Operations Masks were introduced in Chapter 3 IP addresses alone do not tell you the size of their network or subnet parts Network Mask Has 1s in the network part Has 0s in the remaining bits Subnet Mask Has 1s in the network plus subnet
Columbus State University - CS - 557
IPv6 Current version of the Internet Protocol is Version 4 (v4) Earlier versions were not implemented The next version will be Version 6 (v6) No v5 was implemented Informally called IPng (Next Generation) IPv6 is Already Defined Continuing i
Columbus State University - CS - 557
IP FragmentationMTU Maximum Transmission Unit (MTU) Largest IP packet a network will accept Arriving IP packet may be largerMTU IP PacketIP Fragmentation If IP packet is longer than the MTU, the router breaks packet into smaller packets Cal
Columbus State University - CS - 557
Internet Control Message Protocol (ICMP)ICMP Internet Control Message Protocol IP is the delivery standard at the TCP/IP internet layer ICMP is the standard for supervisory messages IP and ICMP are designed to work together; Even have adjacent
Columbus State University - CS - 557
Dynamic Routing Protocols Why Dynamic Routing Protocols? Each router acts independently, based on information in its router forwarding table Dynamic routing protocols allow routers to share information in their router forwarding tablesRouter Forw
Columbus State University - CS - 557
Address Resolution Protocol (ARP)Internet and Data Link Layer Addresses Each host and router on a subnet needs a data link layer address to specify its address on the subnet This address appears in the data link layer frame sent on a subnet For
Columbus State University - CS - 557
Using the Internet from Home: The Physical LayerChapter 4Copyright 2001 Prentice HallAnalog Transmission In analog transmission, the state of line can vary continuously and smoothly among an infinite number of states States can be signal streng
Columbus State University - CS - 557
Wire Propagation Effects Propagation Effects Signal changes as it travels If change is too great, receiver may not be able to recognize itOriginal SignalFinal SignalDistanceWire Propagation Effects: Attenuation Attenuation: Signal Gets We
Columbus State University - CS - 557
PC 232 Serial Ports Ports Connectors at back of PC Plus related internal electronics to send/receive PC 232 Serial Port Follows EIA/TIA 232 standardsPC 232 Serial Ports: 9-Pin and 25-Pin Ports 9 pins or 25 pins Parallel ports have 25 holes
Columbus State University - CS - 557
Modems Problem Computer is digital Telephone line is analog Need translation device called a modemDigital Signal Modem Analog SignalModems Note: Device is digital;Transmission line is analog Cannot just say "modem translates between analog
Columbus State University - CS - 557
Modem Standards Two Modems Must Follow Same Standards Speed standards (modulation method) Error correction and compression standards Facsimile standards Modern modem standards are created by the ITU-TModem Standards Training Period When two
Columbus State University - CS - 557
V.90 Modems Telephone Bandwidth is Limited (Chapter 4) Bandwidth limits speed Limits speed to about 35 kbps When you transmit, limited to 35 kbps35 kbpsV.90 Modems Telephone Bandwidth is Limited Limits occur when you transmit in analog to th
Columbus State University - CS - 557
Faster Speeds; Called Broadband Services Also Higher Cost Translation devices more expensive than modems Faster (more expensive) transmission line to ISP ISP may charge more because of heavier transmission load Faster interface than 232 serial
Columbus State University - CS - 557
DSLsDigital Subscriber LinesDigital Subscriber Lines (DSLs) Offered by Telephone Companies Lines to customer premises are subscriber lines, which connect subscribers to the telephone system These are digital Hence "digital subscriber line"DSL
Columbus State University - CS - 557
Cable Modem ServiceBroadband Internet AccessCable Modem Service Service of Cable Television Companies Deliver 10 Mbps downstream to the home Capacity is shared by multiple subscribers, so real speed is more limited Limited to about 64 kbps to
Columbus State University - CS - 557
Limited to Transmission Between Customer Premises and the ISP ISP Speed can Limit Service Speed Internet Backbone Speed can Limit Service Speed Server Host Access Line Speed can Limit Service Speed Server Host Processing Speed can Limit Service