This repository contains solutions and code developed as part of the "Programming With Purpose" course, based on the curriculum from Princeton University. The course introduces fundamental concepts in computer science and programming using the Java language.
"Programming With Purpose" is designed to teach the basics of programming, computational thinking, and problem-solving. The course covers topics such as:
- Variables, data types, and operators
- Control flow (conditionals and loops)
- Functions and recursion
- Arrays and data structures
- Object-oriented programming
- Basic algorithms and applications
This course was completed through the Coursera platform. Please note that no certificate is issued for this course, as Princeton University's policies do not provide certification for this offering.
The course emphasizes writing clear, efficient, and correct code, and encourages students to develop strong analytical and logical reasoning skills.
src/: Contains Java source files for various assignments and exercises.graderFeedback/: Contains feedback files (e.g., PDFs) received from the automated grading platform.
All code in this repository was tested and graded by an external automated platform provided by the course. The test cases and grading scripts were not made available to students; only the results and feedback were provided after submission. Feedback files (such as PDFs) are included in the graderFeedback/ directory for reference.
To run the code examples and assignments, you will need:
- Java Development Kit (JDK);
- A Java IDE.
Compile and run Java files from the src/ directory as needed.
This project uses the algs4 library from Princeton University, which provides essential classes for input/output, drawing, and more (such as StdIn, StdOut, StdDraw, Picture, etc.).
The algs4.jar file is already included in this repository. If you need to re-download it, you can get the latest version from the official Princeton algs4 download page.
To compile and run any Java file that depends on algs4, use the following commands from the project root:
javac -cp algs4.jar src/YourClass.java
java -cp algs4.jar:src YourClass
This repository is inspired by the course materials from Princeton University and the book "Computer Science: An Interdisciplinary Approach" by Robert Sedgewick and Kevin Wayne.
Below are the details of each module submission, including the Java classes submitted and the corresponding feedback file. For exact assessment results, refer to the respective PDF in the graderFeedback/ directory.
Feedback/result: See graderFeedback/module01.pdf
Feedback/result: See graderFeedback/module02.pdf
Feedback/result: See graderFeedback/module03.pdf
Feedback/result: See graderFeedback/module04.pdf
Feedback/result: See graderFeedback/module05.pdf
Feedback/result: See graderFeedback/module06.pdf
Feedback/result: See graderFeedback/module07.pdf
Feedback/result: See graderFeedback/module08.pdf
Feedback/result: See graderFeedback/module09.md
Feedback/result: See graderFeedback/module10.pdf