GSOE9740_LECTURE_FundamentalProgrammingConcepts

pdf

School

University of New South Wales *

*We aren’t endorsed by this school

Course

GSOE9740

Subject

Physics

Date

Oct 30, 2023

Type

pdf

Pages

7

Uploaded by ProfArtDolphin3

Report
Fundamental Programming Concepts ISA, School of Physics University of Sydney Dr. Arunima Malik GSOE9740 Industrial Ecology and Sustainable Engineering Acknowledgement: Some slides adapted from Dr. Michalis Hadjikakou’s lecture.
What is programming?
Getting to know each other Previous coding experience How did you find the homework? Anything else you want to tell the class about yourself?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
What is programming? set of instructions (recipe) on how to solve a problem A programming language is a language developed to express programs (with its own rules and syntax) How would you tell someone to make a peanut butter sandwich? Computers work on binary number system 0s and 1s. How can we talk to a computer in 0s and 1s we need programming languages ! You need to be specific in the instructions you give to the computer !
Basic programming advice Code with a purpose i.e. to satisfy a need Ensure others can understand/use your code (code neatly) Make sure you can upgrade/improve the code at a later time Start with easy coding examples and scale up Seek help (lots of online forums, web pages etc.)
Introduction to MATLAB What is MATLAB and why?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Introduction to MATLAB - variables Symbolic name associated with a value Value of the variable is the data stored in that variable Variable names must start with a letter Case-sensitive ! ‘Test’ is not same as ‘test’ Variables can store scalars, vectors, matrices, strings etc. Use the equal sign to assign values to a variable

Browse Popular Homework Q&A

Q: Problem 2. Outside temperature over the course of a day can be modeled as a sinusoidal function.…
Q: You perform a study on if neglectful parents raise children. Will the child have low test scores…
Q: What is the ratio of base [A] to acid [HA] at pH 4, 5, 6 and 7 for an acid with a pka of 6?
Q: The drag force on an object with a mass of 1 kg that is falling vertically is FD= C-V2, where c =…
Q: Find the area K of the triangle specified below. a = 8, b= 6, c= 10
Q: 4 Let f(x, y) = x² + 2y* + 32xy List the critical points: Preview The critical point at the origin…
Q: Gas is contained in a 6.00-L vessel at a temperature of 18.0°C and a pressure of 8.00 atm. (a)…
Q: The fractions of colors in a population of squirrels is 0.73 red and 0.27 black.   If two are chosen…
Q: Find f + g, f − g, fg, and  f/g and their domains.  f(x) = 2 − x2,    g(x) = x2 − 9 Find (f + g)(x).…
Q: Biochemical oxygen demand (BOD) measures organic pollutants in water by measuring the amount of…
Q: Table 2. Smoking status before onset of the present illness, lung cancer cases and matched controls…
Q: In a study of the effects of caffeine on memory, a researcher assigned one group of students to…
Q: Convert 67 nine to base ten
Q: Let Y represent the amount an individual spends on a trip. The individual's utility is a function of…
Q: Identify a false statement moist environment promotes bacteria colonization within our body O…
Q: At time t=0.0 s a particle is located at x = 4.0 m and y = 1.0 m. The particle has an initial…
Q: Munoz Sporting Equipment manufactures baseball bats and tennis rackets. Department B produces the…
Q: Question 6 Which of the following statements, if true, cannot be used to conclude that f (0) exists?…
Q: Write a paragraph to express your point of view of how events during the Progressive Era made the…
Q: 2b.
Q: On level ground a shell is fired with an initial velocity of 30.0 m/sm/s at 70.0 ∘∘ above the…
Q: Does plant based company labels such as “veggie burger, soy milk, or cauliflower rice” confuses…