80 likes | 184 Vues
Explore the fundamentals of OOP through interactive game creation using BlueJ, an ideal tool for beginners in programming. Learn to design simple word and number games, visualize object and class diagrams, and grasp essential concepts of Java programming. With step-by-step guidance, this assignment helps build a solid foundation in object-oriented programming.
E N D
Nifty AssignmentsforBlueJ DayMarch 1, 2006 Rathika Rajaravivarma Central Connecticut StateUniversity
CS1 at CCSU • 3-credit introductory programming course for CS majors and non-majors • For the graduate students (non-CS majors) a bridge course in introductory programming – to leap up to advanced programming concepts • Emphasis on the language foundation • Focus on language constructs – syntax and semantics • Working with classes and objects, control structures, and arrays • GUI is dealt in CS2 / Advanced programming course
Programming simple games • Project 1 – Design your own games - a simple word game and - a simple number game • Example Projects • Hangman • Other
Why we chose BlueJ • Interactive • Easy to use • Ideal for introductory programmers • Shows relational diagram much like UML • Visual effect for abstract concepts • Implemented in Java • Runs on all platforms • Debugging features • Free !
BlueJ’s effect on OOP • think in terms of objects – the fundamental units • foundations • From a class create objects • OR to create objects we need a class • From an object invoke a method • OR to use a method there must be an object • Objects exist independently and operations can be executed on them.
The BlueJ Environment • At the functional level -- Objects • At the operational level -- Methods • For a beginner these abstract concepts are difficult to grab. • Visual effect with object and class diagrams and the relations between classes has higher impact in learning and understanding. • BlueJ provides an environment to create and manipulate objects interactively.
BlueJ as an OOP environment Step 1: Create objects .and visualize the outcome Step 2: Manipulate method and visualize the outcome Step 3: Modify existing method .and visualize the outcome Step 4: Add/Create methods .and visualize the outcome Step 5: Create classes .and visualize the outcome Step 6: Establish a relation .and visualize the outcome