##### Filter Reset
###### Lectures
• All Lectures
• Lecture 4 (1)
• Lecture 5 (1)
• Lecture 6 (1)
• Lecture 7 (1)
• Lecture 8 (1)
• Lecture 9 (1)
• Lecture 10 (1)
• Lecture 11 (1)
###### Semester
Class Notes (1,044,543)
AUS (35,216)
MQ (1,869)
COMP (43)
COMP115 (8)

# Class Notes for COMP115 at Macquarie University

Introduction to Computer Programming

Sort
8 Results
##### COMP115 Lecture 9: Arrays and functions

10 jan, Wednesday Wednesday, 10. January 09:07 Arrays Is a reference to a block of memory collection of values that are of the same data type Syntax: 1) Type[] name = new type [number of items] Int [] points = new int [4];...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture 7: Arrays and strings

Arrays and strings Wednesday, 10 May 2017 6:30 pm Collection of similar items Fixed size Types of arrays Type [] name = new type [size]; Float [], y values = new float [5]; Block of memory Reference (address) Y values [0] ...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture Notes - Lecture 5: Ellipse

Week 5 Wednesday, 29 March 2017 5:52 pm Break; exits the loop that was before it More complex structures Loops lab 2 there is absolutely no restriction on how the two control structures can be used 1. i=1 > k loop executed...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture 4: Loops

Week 4 loops Wednesday, 22 March 2017 1:47 am Ellipse (n) * width12, height2, width6, width6); ??? Takes the values Tracing: 1, 3, 5, 7, 9, 11 This is whats encapsulated (captured) in a loop Create a logic table that keep...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture 10: Arrays

7th jan comp115 Monday, 8. January 2018 09:08 An array is a collection of float which is Float[] dia = new float [5] Float array dia is a new float array with 5 items Instantiation of the array reference Declaration of the...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture 11: Multi-Dimentional array

Monday 15th, multi dimensional arrays Monday, 15. January 2018 09:05 An array is a collection of items that are of the same type. Int []a= new int [5]; a Int [ ] [ ] a = new int [2][3]; [0] = 0 A [0] [1]= 0 [1] [2]=0 Numbe...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture Notes - Lecture 6: Boolean Function

Week 6 Wednesday, 5 April 2017 6:14 pm Functions enable us to group related code together(modularity) and reuse it easily (reusability) Function definitions: Return type Type name () { Body } Name by which function is refe...

Computing
COMP115
Gaurav Gupta
##### COMP115 Lecture Notes - Lecture 8: Empty String

Strings Friday, 12. January 209:36 A very specific application of an array Used to store text. Eg. Instead of storing a date as a text, its better to store is as: D=12 M=1 Y=2018 Not very efficient String name=gaurav gupta...

Computing
COMP115
Gaurav Gupta
Notes
Practice
Me

OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Just a few more details

So we can recommend you notes for your school.