×

### Let's log you in.

or

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

×

or

## Week 5 Notes COP 3014

by: Annette Marin

72

0

5

# Week 5 Notes COP 3014 COP 3014

Annette Marin
FSU
GPA 3.3
Programming I
Melina Vastola

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

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

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

×
Unlock Preview

Week 5 notes for COP 3014
COURSE
Programming I
PROF.
Melina Vastola
TYPE
Class Notes
PAGES
5
WORDS
KARMA
25 ?

## Popular in Engineering and Tech

This 5 page Class Notes was uploaded by Annette Marin on Friday September 25, 2015. The Class Notes belongs to COP 3014 at Florida State University taught by Melina Vastola in Fall 2015. Since its upload, it has received 72 views. For similar materials see Programming I in Engineering and Tech at Florida State University.

×

## Reviews for Week 5 Notes COP 3014

×

×

### 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: 09/25/15
Functions 92515 321 PM 0 Starting today by learning how to se prebuiltprewritten functions We ll look at the cmath library to start For reference you can look at ccom A function is a reusable portion of a program sometimes called a procedure or subroutine First Like a miniprogram or subprogram in its own right Second Can take in special inputs arguments ThirdCan produce an answer value return value Fourth Similar to the idea of a function in mathematics Within functions there are 2 major points of view First Builder of the function responsible for creating the declaration and the definition of the function ie how it works Second Caller somebody ie some portion of code that uses the function to perform a task include ltcmathgt in main double y 90 double root sqrty cout ltlt sqrtY cout lt lt sqrt250 if sqrty 30 cout ltlt sqrtlOO 2A8 7lt int x 2A8 double x pow28 cout ltlt pow53 125 include ltiostreamgt using namespace std bool InOrderint x int y int 2 function declarations double averageint a int b int c int main int user1 gtgt user2 gtgt user 3 cout ltlt Hey enter three ints and I ll tell you if they re in order 9 cin gtgt user1 gtgt user2 gtgt user3 double 2 cout ltlt average 1 2 3 z average 10 3 6 cout ltlt all donequot return 0 function definitions double averageint a int b int c double avg a b c30 return avg boolInOrder int x int y int 2 ifx lt y ampampy lt 2 return true else return false More on Functions for int i 0 i lt 10 i cannot do cout ltlt i int main put functions here 92515 321 PM 92515 321 PM

×

×

### 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

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."

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!"

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."

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

#### 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