01:198:111 Lecture Notes - Lecture 18: The Sydney Morning Herald, Multiplication Table

77 views2 pages
Verified Note

Document Summary

Arrays are not objects, they are primitive data types. Meaning they hold a collection of the same primitive data types. What is an object, class, constructor, etc. What is a default constructor and specific constructor. The bug is that int i=n, should be int i=n-1 because if a[n] does not exist, it is out of bounds due to how index numbering works. An array of size n is expected to contain distinct numbers from 1 ton(in any. Hint: if you take the all the numbers from 1 to n and add them up, they should all order). How do we find out if each number appears exactly once? equal to a certain sum, n(n+1)/2. 2d arrays are really just tables like the multiplication table es en example. Rows start from 0 from top to bottom. Columns start from 0 from left to right.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents