Yazeed | Mastering Python and Java: Key Lessons from February and March 2024 Classes
Learning Python and Java can open doors to a world of opportunities in software development, but mastering these languages requires a solid understanding of core principles. In this blog, we dive into the key lessons from the February and March 2024 programming classes, where students explored essential concepts like methods, arrays, object-oriented programming (OOP), and encryption techniques.
Whether you're just starting out or looking to strengthen your coding skills, this comprehensive guide will provide practical examples, hands-on exercises, and valuable resources to help you excel in Python and Java. Get ready to take your coding journey to the next level!
1) Class 2 (25 Jan 24 ) :
a) Class Summary:
b) Video ( Thrusday ):
Part 1 (-)
Part 2 (-)
Part 3 (-)
d) Files: Main Slides , L2 Pyhon Slides
e) Class Code: python
f) Excercises : here
g) Twitter (X) link: Group 1 - homework : N/A
2) Class 3 (29 Jan 24 ) :
a) Class Summary:
b) Video ( Thrusday ):
Part 1 (-)
Part 2 (-)
Part 3 (-)
d) Files: Main Slides , White Paper for Suming Numbers, L22_python_slides
e) Class Code: python
f) Excercises : here
g) Twitter (X) link: Group 1 - homework : N/A
Note: 1 & 4 Feb got no classes bec. yazeed was sick
3) Class 4 (5 Feb 24 ) :
a) Class Summary:
b) Video ( Monday ):
Part 1 (Not recorded)
Part 2 (-)
Part 3 (-)
d) Files: Main Slides , L3_selection process python_slides
e) Class Code: all code was written on Yazeed computer
f) Excercises : Check Age even or odd
g) Twitter (X) link: Group 1 - homework : N/A
4) Class 5 (9 Feb 24 ) :
a) Class Summary:
-
N/a
b) Video ( Friday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Main Slides
e) Class Code: Python
f) Excercises : Give discount
g) Twitter (X) link: Group 1 - homework : N/A
Starting Here we switched to java instead of python
5) Class 6 (12 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Monday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Main Slides
e) Class Code: Java
f) Excercises : recipt program Java
g) Twitter (X) link: Group 1 - homework : N/A
6) Class 7 (15 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Thrusday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: All Slides (3 Files)
e) Class Code: Java
f) Excercises : recipt program Java
g) Twitter (X) link: Group 1 - homework : N/A
7) Class 8 (17 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Saturday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Network Engineer, Programmer, AI Field
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
8) Class 9 (19 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Monday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: java_primitive_data_types_operators
e) Class Code: Java
f) Excercises : Avg and variance Exercise
g) Twitter (X) link: Group 1 - homework : N/A
9) Class 10 (22 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Thrusday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Cyber SecuirtyIntro , OOP for java
e) Class Code: Java
f) Excercises : OOP Question
g) Twitter (X) link: Group 1 - homework : N/A
10) Class 11 (24 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Saturday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Virtual Server
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
11) Class 12 (26 Feb 24 ) :
a) Class Summary:
-
N/A
b) Video ( Monday ):
Part 1 ()
Part 2 (-)
Part 3 (-)
d) Files: Intro into the Internet , Java Methods
e) Class Code: methods example in java code
f) Excercises : java methods
g) Twitter (X) link: Group 1 - homework : N/A
12) Class 13 (1 March 24 ) :
a) Class Summary:
-
N/A
b) Video ( Monday ):
Part 1 ()
Part 2 (-)
Part 3 (Chat GPT & Gemini)
d) Files: Data packet Switching & Intro to Block Chains , get IP address on wondows
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
13) Class 14 (14 March 24 ) :
a) Class Summary:
-
Methods in Java
b) Video ( Thrusday ):
Part 1 ()
Part 2 (-)
Part 3 ()
d) Files: Defining Simple Methods
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
14) Class 15 (15 March 24 ) :
a) Class Summary:
-
Methods Signiture in Java
-
Using ready made methods like Math.abs, Math.round and Math.random
-
Practice on using math.random
b) Video ( Friday ):
Part 1 ()
Part 2 (-)
Part 3 ()
d) Files: Method with return Statements + Math Methods, Math. random
e) Class Code: Methods with different signiture
f) Excercises : Calculate triangle hypothesis
g) Twitter (X) link: Group 1 - homework : N/A
15) Class 16 (21 March 24 ) :
a) Class Summary:
-
M
b) Video ( Tuesday ):
Part 1 ()
Part 2 (-)
Part 3 ()
d) Files: String Split , Arrays Intro, String Intro
e) Class Code: Arrays + String length + split a string
f) Excercises : Extract match Scores
g) Twitter (X) link: Group 1 - homework : N/A
16) Class 17 (28 March 24 ) :
a) Class Summary:
-
M
b) Video ( Thrusday ):
Part 1 ( Hexadecimal Numbers + Usage Example)
Part 2 (Embedded Systems Examples + EEG headsets)
Part 3 (Hexadecimal Numbers + Usage Example )
d) Files: Embedded Systems + Sensors + EEG Headsets
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
* Class was given 1 hour in Ramdan due to the request to have an earlier class
17) Class 18 (1 April 24 ) :
a) Class Summary:
-
n/a
b) Video ( Monday ):
Part 1 ( Introduction to Caeser Encryption using key shifting of alphabets)
Part 2 ( Discussing extracting Match Exercise from a string using Split method)
d) Files: Encryption
e) Class Code: Using Split function + Shifting alphabet charcaters
f) Excercises : Function to shift alphabet
g) Twitter (X) link: Group 1 - homework : N/A
18) Class 19 (8 April 24 ) :
a) Class Summary:
-
n/a
b) Video ( Monday ):
Part 1 (Imam University Syllabus Overview)
Part 2 (Introduction to DB, SQL and Operating Systems )
d) Files: Imam University Syllbus Overview
e) Class Code: n/a
f) Excercises : n/a
g) Twitter (X) link: Group 1 - homework : N/A
19) Class 20 (18 April 24 ) :
a) Class Summary:
-
n/a
b) Video ( Thrusday ):
Part 1 (Extracting football match results from a string Exercise),
Part 2 (not recorded),
Part 3 (String methods in java & Local Variables Scope in Functions)
d) Files: String Methods in Java
e) Class Code: Local variables in Functions and using return keyword
f) Excercises : Function to shift alphabet
g) Twitter (X) link: Group 1 - homework : N/A
This week class will be canceled bec. of exams
20) Class 21 (5 Sept 24 ) :
a) Class Summary:
- To be updated
b) Video (Thrusday):
- Part 1:
- Part 2: Java Programming for Beginners in KSA: Learn Machine code & High-Level Languages
- Part 3:
d) Files:
- Imam University Slide1
e) Class Code:
- n/a
f) Exercises:
- Find Error:
https://liveexample.pearsoncmg.com/LiveRun13e/faces/LiveExample.xhtml;jsessionid=6ea64f38eaa5365c754ff14e3240
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files
21) Class 22 (12 Sept 24 ) :
a) Class Summary:
- To be updated
b) Video (Thrusday):
- Part 1: Mastering Java Programming Essentials for KSA Students | Understanding IDEs, Syntax, and Logic Errors
- Part 2: Java Programming for Beginners: Live Session Breakdown & Hands-on Coding Tutorial
d) Files:
- Imam University Slide 2
e) Class Code:
- n/a
f) Exercises:
- Chapter2_ElementaryProgramming_Exercises
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files
22) Class 23 (17 Sept 24 ) :
a) Class Summary:
-
Programming Tasks and Solutions: Ahmed helped Yazeed prepare for upcoming exams by discussing a programming task involving extracting digits and calculating their sum. They also explored strategies for modifying and reusing code, especially in relation to interpreter functionality.
-
Technical Issues and Enhancing System Intelligence: The session covered troubleshooting a laptop battery issue and the need to implement loops in coding. They also faced challenges with repeated operations and agreed to modify the code to improve system intelligence and avoid redundant processes.
-
Ahmed and his student discussed key mathematical and coding concepts, including the Modulo operator, time conversion, and the efficient use of data storage by choosing appropriate data types.
-
Ahmed advised Yazeed to subscribe to a coding service for exam preparation and practice, while also preparing his computer for the next session focused on Modulo and time conversion techniques.
b) Video (Thuesday): (1 hr + 52 min)
- Part 1: Java Programming: Solving Coding Challenges and Battery Troubleshooting
- Part 2: Java Concepts for Beginners: Understanding Modulo, Time Conversion, and Data Storage
d) Files:
- Imam University Slide 2 (until page 38)
e) Class Code:
- n/a
f) Exercises:
- Calculate the number of days that have elapsed since 1970
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files
23) Class 24 (24 Sept 24 ) :
a) Class Summary:
-
Tax Calculations and Code Modifications:
- Discussed implementing tax rates between 5% and 10% in the code and adjusting output formats to display bill, tax, and total amounts separately.
-
Consistency in Pricing Systems:
- Emphasized maintaining consistent pricing per unit in the code and ensuring logical consistency in calculations.
-
Code Validation and User Input:
- Reviewed techniques for validating user inputs and ensuring inputs fall within acceptable ranges to prevent errors.
-
Debugging and Independent Problem-Solving:
- Highlighted the importance of practicing debugging, error handling, and solving coding issues independently.
-
Implementation and Output Formatting:
- Focused on the correct implementation of code and formatting outputs for clear, organized display, especially regarding tax values on invoices.
b) Video (Thuesday): (1 hr 15 min)
- Part 1: Java Programming Revision: Tax Calculations, Pricing Systems, and Code Validation
d) Files:
- n/a
e) Class Code:
- Enhanced Version of the Restaurant Menu Code
f) Exercises:
- Add Discount Functionality to Fast Food Ordering System
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files
24) Class 25 (1 Oct 24 ) :
a) Class Summary:
- Emphasized understanding of coding logic and string manipulation, focusing on ASCII conversions and index operations.
- Reviewed strategies for efficient exam preparation, including time management and focusing on key problem areas.
- Discussed character encoding, number conversions, and storage in computer systems using ASCII tables.
- Highlighted the importance of practicing coding problems and exam-style questions to ensure readiness for the midterm exam.
b) Video (Thuesday): (1 hr 48 min)
- Part 1: Midterm Exam Revision for Computer Science - KSA University
d) Files:
- n/a
e) Class Code:
f) Exercises:
- Practice the following MCQ exercises:
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files
25) Class 26 (2 Oct 24 ) :
a) Class Summary:
-
Denary and Hexadecimal System Overview: Ahmed introduced and clarified the concepts of Denary (Base-10) and Hexadecimal (Base-16), including their significance in computing and how they handle numeric representation.
-
Conversion Techniques: The class included a detailed explanation of how to convert Denary numbers to Hexadecimal, using division by 16 and modulo operations. Ahmed demonstrated this with clear examples.
-
Coding the Conversion: Ahmed went on to explain how to implement the conversion process in code, discussing key functions and logic necessary to convert numbers between systems.
-
Testing and Verification: The importance of testing the conversion code with different input values was emphasized to ensure accuracy. Ahmed provided practical examples to verify the proper execution of the hexadecimal conversion.
b) Video (Wednesday): (45 min - recording only)
- Part 1: Understanding Denary and Hexadecimal Systems
- Part 2 : Converting Denary to Hexadecimal
- Part 3: Code Explanation and Implementation of Hexadecimal Conversion
d) Files:
- n/a
e) Class Code:
- Hexadecimal Conversion and ASCII Manipulation in Java
f) Exercises:
- n/a
g) HomeWork Solutions Posting (FB) :
- post answers or link to answer files