1 Page

hw1

Course: CSC 2310, Fall 2009
School: Bowling Green
Rating:
 
 
 
 
 

Document Preview

Spring CSc2310, 06 Assignment #1 Due: Feb. 02, 2006 Problem: Write a Java program, called Bear.java, using displayable character to display the following ASCII valentine teddy bear. Your teddy bear must be displayed 10 spaces from the left screen. \__,,,,___,,,,,___,,,,__/ /,,,/(')\,,,/(')\,,,\ |,,,,___ _____ ___,,,,| |,,,/ \\o_o// \,,,| |,,| | |,,| |,,| \__/|\__/ |,,| \,,\ \_/ /,,/ \__\___________/__/...

Register Now

Unformatted Document Excerpt

Coursehero >> Ohio >> Bowling Green >> CSC 2310

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.
Spring CSc2310, 06 Assignment #1 Due: Feb. 02, 2006 Problem: Write a Java program, called Bear.java, using displayable character to display the following ASCII valentine teddy bear. Your teddy bear must be displayed 10 spaces from the left screen. \__,,,,___,,,,,___,,,,__/ /,,,/(')\,,,/(')\,,,\ |,,,,___ _____ ___,,,,| |,,,/ \\o_o// \,,,| |,,| | |,,| |,,| \__/|\__/ |,,| \,,\ \_/ /,,/ \__\___________/__/ ________________/,,,,,,,,,,,,,\________________ \,,,,,,,,,,,,,,,,___________,,,,,,,,,,,,,,,,/ / \ ( ),,,,,,,,,,,,,,/ \,,,,,,,,,,,,,,( ) \_/____________,,/ \,,____________\_/ /,/ *SWEET* \,\ |,| |,| |,| *LOVE* |,| |,| |'| |,| O |,| \,\ /,/ /,,\_____________/,,\ /,,,,,,,,,,,,,,,,,,,,,\ /,,,,,,,,_______,,,...

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:

Bowling Green - CSC - 2310
CSC2310 Intro to Computer Science In class exerciseSpring, 2006 Ken Nguyena. Develop a class called PhoneRecord containing two data fields: name and phone number b. Write a program to prompt the user to fill an array of PhoneRecords (max 10 recor
Bowling Green - CSC - 2310
Chapter 3: Classes and ObjectsChapter 3Classes and ObjectsJava ProgrammingFROM THE BEGINNING1Copyright 2000 W. W. Norton & Company.Chapter 3: Classes and Objects3.1 Objects as Models A program can be thought of as a model of reality,
Bowling Green - CSC - 2310
Chapter 7: Class Variables and MethodsChapter 7Class Variables and MethodsJava Pr ogr ammingF ROM T H E BEGI N N I N G1Copyright 2000 W. W. Norton & Company.Chapter 7: Class Variables and Methods7.1 Class Methods Versus Instance Metho
Bowling Green - CSC - 2310
Chapter 8: More Control StructuresChapter 8More Control StructuresJava ProgrammingFROM THE BEGI NNI NG1Copyright 2000 W. W. Norton & Company.Chapter 8: More Control Structures8.1 Exceptions When a Java program performs an illegal ope
Bowling Green - CSC - 2310
Chapter 9: Primitive TypesChapter 9Primitive TypesJava ProgrammingFROM THE BEGINNING1Copyright 2000 W. W. Norton & Company.Chapter 9: Primitive Types9.1 Types Numbers, like all data, must be stored in computer memory. Computer memor
Bowling Green - CSC - 2311
Copyright 2003 Pearson Education, Inc.Slide 1Chapter 11Strings and VectorsCreated by David Mann, North Idaho CollegeCopyright 2003 Pearson Education, Inc.Slide 2Overview An Array Type for Strings (11.1) The Standard string class (11.
Bowling Green - CSC - 2311
Copyright 2003 Pearson Education, Inc.Slide 1Chapter 13RecursionCreated by David Mann, North Idaho CollegeCopyright 2003 Pearson Education, Inc.Slide 2Overview Recursive Functions for Tasks(13.1) Recursive Functions for Values (13.2)
Bowling Green - CSC - 3320
CSc 3320 Ken D. Nguyen Summer, 2001 Quiz 3 July 25th, 2001 Name:_ 1. What is the major difference between fgrep and grep?2. Besides tar utility, what are the other two common utilities that are used for archiving data and structures?3. Give a com
Bowling Green - CSC - 2311
Practice 1Due next class (Tuesday 24th)Write a game program that allows a user to guess the day of your birthday. Add logic to your program to limit the guesses between 1 and 31, since the days of a month are in this limit. Print out appropriate
Bowling Green - CSC - 2311
Parameter passing by value or reference C+ supports parameter passing using three mechanisms: by value: a private copy of the argument is passed to the called function. by address: the address of the argument is passed to the called function (ie
Bowling Green - CSC - 2310
InstallationUnzip the installation file Setup.exe of JCreator in a temporary directory and follow the steps for the Setup Wizard. Setting up JCreator with the Java Development Kit (JDK) Make sure you have the Java Development Kit suite installed fro
Bowling Green - CSC - 2310
Java Software SolutionsLewis and LoftusObjects An object has: state - descriptive characteristics behaviors - what it can do (or be done to it) For example, a particular bank account has an account number has a current balance can be dep
Bowling Green - CSC - 2310
Coordinate System Note that the basic AWT coordinate system for the Graphics context methods goes as follows: Origin (0,0)- top left hand corner x (in pixels) - increases towards the right o Maximum x = width - 1 y (in pixels) - increases towards
Bowling Green - CSC - 2310
INHERITANCE Class Hierarchies Extending Objects Abstract Methods Abstract Classes Overriding Methods protectedInheritance1 of 30September 21, 2004Introduction In real situations either when modeling real world objects such as vehicles
Wisc Stout - CHEM - 135
Wisc Stout - CHEM - 135
Wisc Stout - CHEM - 135
Wisc Stout - CHEM - 135
Wisc Stout - CHEM - 135
Wisc Stout - CHEM - 135
2. The decomposition of hydrogen peroxide was studied and produced the following kinetic data: 2H2O2 O2 + 2H2O Time 0 120 300 600 1200 1800 2400 3000 3600 [H2O2] 1 0.91 0.78 0.59 0.37 0.22 0.13 0.08 0.05 Time 0 120 300 600 1200 1800 2400 3000 360
Minnesota - HINC - 0024
Review of Film Production Pert ChartBy Matthew Decker The pert chart that was viewed was a good example because it shows a couple different branches on the pert chart. The pert chart reviewed, explained the steps and milestones in making a film. The
Minnesota - HINC - 0024
Review of Petras PERT ChartBy Gregory Hinck Petras PERT chart is a nice and concise example of a good PERT chart. The chart use the information from the Work Breakdown Structure (WBS) that can be found on the Document XI. The chart list all tasks is
N.C. State - PYTHON - 201
optparseReplacement for getopt, originally developed as Optik. from optparse import OptionParser op = OptionParser() op.add_option('-i', '-input', action='store', type='string', dest='input', help='set input filena
N.C. State - PYTHON - 201
Resources O'Reillys web site (I don't care for this one)http:/www.onlamp.com/python/Biology and Pythonhttp:/biopython.org/All the power of python with all the incompatibility of java.http:/www.jython.org/Python makes windows suck a little
N.C. State - PYTHON - 201
Resources Beginning pythonhttp:/www.uselesspython.com/index.htmlPython Bloghttp:/www.deadlybloodyserious.com/PythonIntroduction to Numerical Pythonhttp:/www.onlamp.com/pub/a/python/2000 /05/03/numerically.htmlPsyco (JIT) http:/psyco.sourc
W. Kentucky - CSC - 462
Since ILP has inherent limitations, can we exploit multithreading? a thread is defined as a separate process with its own instructions and data this is unlike the traditional (OS) definition of a thread which shares instructions with other threads
W. Kentucky - CSC - 425
CSC 425/525 Homework #6 (Chapter 10) Due: Wednesday, April 1 Word process all answers. Figures may be hand drawn. Undergraduates answer question 1 and any three additional questions, all five questions for extra credit. Graduate students answer all f
W. Kentucky - CSC - 362
CSC 362 Midterm 1 answer key 1) Convert 11101010 to decimal assuming the following representations. a. Unsigned magnitude = 128 + 64 + 32 + 8 + 2 = 234 b. Signed magnitude = -(64 + 32 + 8 + 2) = -106 c. One's complement - (00010101) = -(16 + 4 + 1)
Grinnell - MAT - 115
Chapter 13 Confidence Intervals for the mean California SAT Data There are 250,000 California High School Students We did a SRS and selected 500 to take the test. With a mean of X = 461 What if we had selected a different 500 students? Would the sa
Grinnell - MAT - 115
Normal, knownH1: oX - oH1: < o or H1: > oX - o/ nNormal, unknownz 2/ nX - o s/ n X 1 - X 2 -# 2 2 s1 s 2 + n1 n 2z ( ) t n -1( )X - o s/ nt n -1 2tn small -1 2Normal andH1: 1 - 2 #X 1 - X 2 -# s s + n1
Grinnell - MAT - 115
Analysis of variance (ANOVA) is similar to regression in that it is used to investigate and model the relationship between a response variable and one or more independent variables. However, analysis of variance differs from regression in two ways: t
Grinnell - MAT - 115
Common Questions1) I have numeric data in a column, but the column number appears with a T, indicating that my data is treated as text. How can I change it so it is recognized as numeric?Minitab identifies a column as either text, numeric, or dat
Grinnell - MAT - 115
Tree Diagram Problems0.085 Ace 0.077King0.915 Other0.923 Other0.085King0.915 OtherP(2nd is K) = P(A|K) =0.0851 0.0065 / 0.0851 = 0.0769Probability of following that path: 0.0065 P ( A&K) 0.0704 P(A & other)0.0786 P( Other and K)
Grinnell - MAT - 115
MA214 Fall 2002Exam 1Name_30 points Question 1) A company is trying to determine if adjusting heat and type of plastic will affect the strength of a toy. They have 3 types of plastic ( A B and C) and 2 heat settings (250o and 300o) they want to
Grinnell - MAT - 115
EXAM 1 STUDENT QUESTIONS Chapter 2-3 What exactly do variance calculations represent? What do we know from calculating the variance? How do you calculate standard deviation and what does it tell you? Could you go over the problem on the in-class quiz
Grinnell - MAT - 115
MAT115EXAM IIName_Question 1) 25 pointsYou take a simple random sample of 20 toys out of a total shipment of 50000 and find the average pull-strength of the 20 toys to be 27 lbs. In addition, assume that the population standard deviation is 5.
Grinnell - MAT - 115
Using MinitabBe sure to include a title and proper labels! Copy and paste the graphs into word, and type in any necessary comments. 1) Create a Pie Chart and Bar Chart of the Education data. (Data is listed on following examples). 2) Create a Histog
Grinnell - MAT - 115
MATH 115: OLD FAITHFUL Lab 3Today we will work through a data analysis using Minitab and a data set called faithful. Click on the Minitab icon (blue and white arrow) in windows. You can always just select the text and data from excel and paste it in
Grinnell - MAT - 115
County-by-County Data on Presidential Vote in Florida (with October 10, 2000 data on rTotal of Gore, Bush, Buchana Reform n, and Buchana Bush Gore Register Gore Bush Buchana Nader Nader n Vote Vote Vote ed COUNTY Votes Votes n Votes Votes Votes Shar
Grinnell - MAT - 115
MATH 115: Project Description and Guidelines - Fall 2005Objective: To conduct a simple statistical study to answer a research question. The research question does not have to change the world. A simple question (but not too simple) is better than an
Grinnell - MAT - 115
Sampling Distributions Activity Part 1 The Situation: Joe, Cally, and Nick are 3 clerks who work in the small claims office at the government building in a large metropolitan city. Their supervisor periodically checks up on them to see how long it ta
Grinnell - MAT - 115
Venn and Tree Diagrams P(A) =.4 P(B) = .7 P(A B) =.2 P(A B) = P(A') = P(B') = P(A B') = P(A B') = P(A' B') = P(A' B') = P(A' B) = P(A | B) = P(C) = .3 P(A C) =.15 P(C B) =.2 P(A B C) = .1P(A B C) = P(C') = P(B'C') = P(A B') C') = P(C B) = P(C' B')
Grinnell - MAT - 115
1. Imagine a distribution of all textbook prices at our school. This distribution has a mean () of $40 and a standard deviation () of $10. Now, imagine that all possible samples of 25 textbooks are taken from this population, and for each sample, the
Grinnell - MAT - 115
Lab 8name_Question 1) Each year, over 20,000 students take a math competency test. Over several years, 89 % of these students have passed the test. Reformers claim a new mathematics curriculum will increase the percent that pass. A random sample
Grinnell - MAT - 115
Lab 10: Minitab, Hypothesis Tests and Confidence Intervals For each problem, use Minitab to conduct the hypothesis interval and find the appropriate CI Print at least one graph to visualize the problem, but do not turn the graphs in. Copy and Paste
Grinnell - MAT - 115
SCORE HANDICAP 1.9 NONE 2.5 NONE 3 NONE 3.6 NONE 4.1 NONE 4.2 NONE 4.9 NONE 5.1 NONE 5.4 NONE 5.9 NONE 6.1 NONE 6.7 NONE 7.4 NONE 7.8 NONE 1.9 AMPUTEE 2.5 AMPUTEE 2.6 AMPUTEE 3.2 AMPUTEE 3.6 AMPUTEE 3.8 AMPUTEE 4 AMPUTEE 4.6 AMPUTEE 5.3 AMPUTEE 5.5 A
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw1.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw1.dvi -o %DVIPSParameters: d
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: sol1.dvi %Pages: 5 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips sol1.dvi -o %DVIPSParameters:
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw2.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw2.dvi -o %DVIPSParameters: d
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: sol2.dvi %Pages: 3 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips sol2.dvi -o %DVIPSParameters:
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw3.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw3.dvi -o %DVIPSParameters: d
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: sol3.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips sol3.dvi -o %DVIPSParameters:
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw4.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw4.dvi -o %DVIPSParameters: d
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: sol4.dvi %Pages: 4 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips sol4.dvi -o %DVIPSParameters:
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw5.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw5.dvi -o %DVIPSParameters: d
Wisconsin - CPMA - 521
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw6.dvi %Pages: 2 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw6.dvi -o %DVIPSParameters: d
Wisconsin - MATH - 340
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw1.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw1.dvi -o %DVIPSParameters: d
Wisconsin - MATH - 340
%!PS-Adobe-2.0 %Creator: dvipsk 5.86 p1.5d Copyright 1996-2001 ASCII Corp.(www-ptex@ascii.co.jp) %based on dvipsk 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com) %Title: hw2.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %En
Wisconsin - MATH - 340
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw3.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw3.dvi -o %DVIPSParameters: d
Wisconsin - MATH - 340
%!PS-Adobe-2.0 %Creator: dvipsk 5.86 p1.5d Copyright 1996-2001 ASCII Corp.(www-ptex@ascii.co.jp) %based on dvipsk 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com) %Title: hw6.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %En
Wisconsin - MATH - 340
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: hw7.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips hw7.dvi -o %DVIPSParameters: d