×

### Let's log you in.

or

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

×

or

## Week 1 Continued

1 review
by: Jessica Hutchinson

67

3

# Week 1 Continued COSC 236

Jessica Hutchinson
Towson
GPA 3.5
Introduction to COSC 1
Robert G. Eyer

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

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

Enter your email below and we will instantly email you these Notes for Introduction to COSC 1

(Limited time offer)

Unlock FREE Class Notes

### Enter your email below to receive Introduction to COSC 1 notes

Everyone needs better class notes. Enter your email and we will send you notes for this class for free.

These notes are still review but this also includes the first hw assignment and answers
COURSE
Introduction to COSC 1
PROF.
Robert G. Eyer
TYPE
Class Notes
PAGES
WORDS
CONCEPTS
COSC 236, Computer Science, towson
KARMA
Free

## 3

1 review
"Clutch. So clutch. Thank you sooo much Jessica!!! Thanks so much for your help! Needed it bad lol"
Austyn Kuhic

## Popular in ComputerScienence

This page Class Notes was uploaded by Jessica Hutchinson on Monday February 8, 2016. The Class Notes belongs to COSC 236 at Towson University taught by Robert G. Eyer in Spring 2016. Since its upload, it has received 67 views. For similar materials see Introduction to COSC 1 in ComputerScienence at Towson University.

×

## Reviews for Week 1 Continued

Clutch. So clutch. Thank you sooo much Jessica!!! Thanks so much for your help! Needed it bad lol

-Austyn Kuhic

×

×

### What is Karma?

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

Date Created: 02/08/16
COSC 236 For loops Used to tell compiler to do something a certain number of times 0 If test condition never goes to false it becomes an infinite loop 0 Tests the loop counter variable against a limit 0 Uses comparison operators lt less than lt less than or equal to gt greater than gt greater than or equal to Example SystemoutprintquotTminus quot for int i 10 i gt 1 i Systemoutprinti quot quot Systemoutprintlnquotblastoff quot SystemoutprintlnquotThe endquot Output Tminus 10 9 8 7 6 5 4 3 2 1 blastoff The end Parts of a for loop For int I I lt 4 i Initialization l Xv Increment Test 7 Nested for loops A loop within a loop Outerloop prints lines horizarionally and inner loop prints it vertically For example SystemoutprintquotTminus quot for int i 10 i gt 1 i Systemoutprinti quot quot Systemoutprintlnquotblastoff quot SystemoutprintlnquotThe endquot Output Tminus 10 9 8 7 6 5 4 3 2 1 blastoff The end 0 Always make sure to have a counter otherwise loops are infinite 0 String concentration using a plus symbol between a string and a variable value to make a longer string EX the value of j is j Output the value of j is 25 0 Methods are used to create multiple occurrences like functions in C Lab Notes Building Java Programs Chapter 1 Lab Handout Systemoutprintln 1 Hello quotDoubleSlashquot magazine I m confused by your publication Should I use a slash or a slash Respectfully Harold J Prescott quotHarryquot Program public class Test public static void mainString args Systemoutprint1n quotCan you explain to me the differencequot Systemoutprint1nquotbetween using a 39 and a quot or between a quot and a quotquot Systemoutprint1nquotOne is What is seen When typing a program but thequot Systemoutprint1nquotother is What always appears on the quotconsolequotquot Static Methods 3 I am method 2 I am method 1 I am method 1 I am method 1 I am method 3 I am method 2 I am method 1 I am method 1 k k k k k k 4 The program for the following drawings is gtlltgtllt COSC 236181 Jessica Hutchinson Drawings With Triangles Lab 1 public class Drawings public static void mainString args pointDownTriangleO middleO pointUpTrianglGO Systemoutprintln pointUpTrianglGO pointDownTriangleO pointUpTrianglGO Systemoutprintln middleO pointDownTriangleO middleO Systemoutprintln Systemoutprintln SystemoutprintlnquotDone With drawingsquot public static void pointUpTriangle Systemoutprintlnquot quot Systemoutprintlnquot quot Systemoutprintlnquot quot public static void middlc Systemoutprint1nquotquot Systemoutprint1nquot quot Systemoutprint1nquotquot public static void pointDownTriangle Systemoutprint1nquot quot Systemoutprint1nquot quot Systemoutprint1nquot quot

×

×

### BOOM! Enjoy Your Free Notes!

×

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

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

Forbes

#### "Their 'Elite Notetakers' are making over \$1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION 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 support@studysoup.com

#### STUDYSOUP REFUND POLICY

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: support@studysoup.com

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 support@studysoup.com