Posts

Module 3: Introduction to JavaScript and Web Design

Here’s the link to my updated site: http://drew-williams.infinityfree.me/Module3.html For this assignment, I started by testing the sample JavaScript code. The code worked as expected, it created three variables (price1, price2, and total) , added the first two numbers together, and displayed the result in the webpage. The object in this example is the document , and the variables are price1 , price2 , and total . Seeing the output appear on the page helped reinforce how JavaScript connects with HTML elements. I also read Chapters 2–4 of Eloquent JavaScript . These chapters went into more detail on program structure, functions, and how code flows in JavaScript. It was useful to see the fundamentals broken down step by step. The last part of the assignment involved creating an image in three formats: PNG, JPG, and GIF. I exported my test image (which is just a personal icon I developed for my professional portfolio) in all three and added them to my Module 3 page. After comparing th...

Module 2: Introduction to HTML, CSS, and FTP

Here’s the link to my website:  https://drew-williams.infinityfree.me/index.html For this assignment, I created my very first homepage for the course using HTML and CSS and uploaded it to InfinityFree using FTP. At first, figuring out the FTP process felt a little tricky, But I had used it in the past for another course so it was really just a matter of seeing how much I could remember. Using VS Code to write my HTML and CSS was straightforward. I enjoyed giving the site a bit more style so it looked more like a real webpage, with a header, navigation links, and a footer. Creating the Module3.html page and adding a simple JavaScript script to display some text, was pretty simple. Overall, the hardest part was just making sure my files transferred correctly with FileZilla, but once I saw the site live, it felt really rewarding. Now I feel more confident about uploading changes and expanding the site in future modules.

First Blog Entry

 Hello, This is my very first post for the class. I just set up my website on InfinityFree , and I’ll be using this blog to share my experiences as I go through the course. So far, getting the site set up was pretty straightforward, though it was my first time using InfinityFree. I’m already familiar with programming and web development since I’m majoring in Information Science with a focus on software engineering. I’ve done projects with HTML, CSS, JavaScript, and frameworks like React, but I’m excited to learn more about open-source web technologies in this class and to build things in a more structured way. I think one of the challenges for me will be making sure I balance design and functionality. I’m very detail-oriented, so I like my sites to not only work but also look polished. That said, I’m looking forward to practicing and seeing how the skills from each module stack up over the semester. For now, this site is up and running, and I’ll keep posting updates as I move t...

Python Fitness Tracker – Final Project

For my final project in Introduction to Python , I created a simple terminal-based fitness tracker that lets users log, save, and review their daily step counts. The app supports average step tracking, goal-setting, and daily progress check-ins, all handled through clean Python logic and stored persistently in a .csv file. I’ve always enjoyed running, biking, and staying active, so it felt natural to combine that interest with coding. Whenever I start a new project, I like to build around hobbies I already care about. In fact, I previously developed a workout website during a bootcamp, so this was a nice opportunity to expand on that idea and keep building something useful. Project Purpose & Structure The goal of this project was to explore real-world data tracking using Python, applying core concepts like: Classes Functions Modules File reading/writing User interaction in the terminal The fitness tracker collects data either by automatically using today’s date , ...

Working with Datetime and Timedelta in Python

This week’s assignment focused on using the datetime and timedelta modules in Python. I practiced working with time-based objects, performing calculations, and combining date/time data with custom functions. Code Procedure: Simulated reading transaction data and displayed the item/cost with the current time using datetime.now() Used timedelta to subtract 60 seconds and add 2 years (730 days) to the current time. Created a timedelta object representing 100 days, 10 hours, and 13 minutes and printed the result. Wrote a function that takes 2 arguments (feet and inches) and prints them along with the current datetime. These exercises helped me better understand how Python handles time-based data and how to apply that to real-world scenarios. Code: from datetime import datetime, timedelta # 1. Display current time with item & cost sample_data = "2025-06-29\t11:23:00\tPublix\tMilk\t3.25\tCredit" data = sample_data.strip().split("\t") if len(data) == 6: ...

Using a Rectangle Class in Python

This week’s assignment was about working with classes and objects in Python. I implemented a Rectangle class using object-oriented programming and tested it with several helper functions. Code Procedure: Created a Point class to represent the (x, y) corner of a rectangle. Defined a Rectangle class that stores position, width, and height. Implemented the following helper functions: create_rectangle(x, y, width, height) - creates a new Rectangle instance. str_rectangle(rect) - returns a string representation of the rectangle. shift_rectangle(rect, dx, dy) - modifies the rectangle’s position in place. offset_rectangle(rect, dx, dy) - returns a new rectangle offset from the original. Tested the functions using the example given in the assignment to ensure they worked as expected. This assignment helped me understand how class instances can be passed into and returned from functions, and how methods like __str__ improve output readability. Code: #...

Python Assignment - Print and String in Python

I ran a Python script using the print ()   function and string variables. Code: # Example 1: Basic print statement print('Hello, world!') # Example 2: Creating a string using single quotes String1 = 'Welcome to the Geeks World' print("String with the use of Single Quotes:") print(String1) Output: Hello, world! String with the use of Single Quotes: Welcome to the Geeks World Explanation: The print () function is used to display output to the screen. In this case, it printed both a simple message ( Hello, world! ) and a string stored in a variable. Strings in Python are sequences of characters enclosed in either single quotes ( ' ) or double quotes ( " ) . You can use either style, but they must match (open and close the same way). In this example: I created a string called String1 using single quotes. Then I used print() to output both a label and the string itself. Together, print() and string variables work perfectly because print() ...