Winter 2023 Computer Science Education: CSE 121 Elba Garza Music Lesson Highlights

cse 121 elba garza n.w
1 / 10
Embed
Share

Explore the latest updates from CSE 121 Winter 2023, featuring announcements, reminders, programming assignments, lessons on types and expressions, variables, string manipulation, and more. Join the educational journey with creative projects and practical exercises, all presented with engaging visuals.

  • Education
  • Computer Science
  • Winter 2023
  • Programming
  • Music

Uploaded on | 2 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. CSE 121 Elba Garza Winter 2023 Music: Quiero Decirte - Abraham Mateo, Ana Mena

  2. Announcements, Reminders Creative Project 0 due last night! How did it go? Programming Assignment 0 released; Due January 17th Just joined CSE 121? Resubmission policy is your friend! See more in syllabus. Lesson 3 - Winter 2023 2

  3. Last Time Types & Simple Expressions int, double, String, boolean Mixing Types convert, or risk data loss! Operators For String & numericals Boolean Operators Precedence/ PeMMDAS Lesson 3 - Winter 2023 3

  4. Plan for Today Variables & Strings Declaration & Initialization Manipulation Strings & chars String Methods Evermore Practice Work with folks around you! TAs and will be wandering around Lesson 3 - Winter 2023 4

  5. Variables Containers that store values of a specific data type. int version; // declare version = 5; // initialize To create a variable: 1. Declaration: Specify a data type (e.g. int, double, or String) and a name/label 2. Initialization: Store a value into it // declare AND initialize int version = 5; Lesson 3 - Winter 2023 5

  6. Variables They re made to be manipulated, modified, re-used! int myFavoriteNumber = 27; int doubleFV = myFavoriteNumber * 2; myFavoriteNumber = myFavoriteNumber + 3; myFavoriteNumber = doubleFV; Lesson 3 - Winter 2023 6

  7. Work on Variables Problems Ed lesson linked from the course calendar Work with the folks around you! TAs will be walking around to help Lesson 3 - Winter 2023 7

  8. Strings String = sequence of characters treated as one, yet be indexed to individual parts Zero-based indexing Side note: new data type! char, represents a single character, thus use single quotes ;) Lesson 3 - Winter 2023 8

  9. String Methods Methods used to manipulate/extract information from Strings Usage: <string variable>.<method>(<parameters>) Examples: length(): returns number of characters in String charAt(int): returns char at a specific index (int) of String indexOf(char/String): returns int index position of char/String equals(String): returns boolean whether Strings fully match or not contains(String): returns boolean whether String fully present or not Note: Methods do not modify the String variable they re called upon. Rather, you receive information! Lesson 3 - Winter 2023 9

  10. Work on String Problems Ed lesson linked from the course calendar Work with the folks around you! TAs will be walking around to help Lesson 3 - Winter 2023 10

Related


More Related Content