Purdue School of Engineering and Technology

Purdue School of Engineering and Technology

Programming Constructs Laboratory

CIT 14000 / 3 Cr.

This course is an introduction to problem-solving techniques, program design and development, programming logic, and object-oriented terminology and concepts.

  • TextPad, NotePad++, or any text editor

Course Outcomes (What are these?)

  • Apply problem-solving techniques in designing computer applications (CIT c)Apply standard programming constructs (CIT c)
  • Design and use methods in problem solving (CIT c)
  • Use control structures correctly (CIT c)
  • Use proper naming conventions (CIT m)
  • Successfully create programs using JavaScript (CIT i)

CIT Student Outcomes (What are these?)

(c) An ability to design, implement, and evaluate a computer-based system, process, component, or program to meet desired needs.

(i) An ability to use current techniques, skills, and tools necessary for computing practice.

(m) An understanding of best practices and standards and their application.

  • General Concepts of Problem Solving
  • JavaScript Language Basics
  • Object Oriented Programming Concepts
  • Input/Output Processing
  • Decision Structures, Loops, and Procedures
  • Arrays and Debugging
Principles of Undergraduate Learning (PULs)

1b.  Identify and propose solutions for problems using quantitative tools and reasoning.

1c.  Make effective use of information resources and technology.

3.  Integration and Application of Knowledge

4.  Intellectual Depth, Breadth, and Adaptiveness

What You Will Learn

General Concepts of Problem Solving

  • Describe programs, programming, applications, and application development
  • Develop algorithm design skills
  • Describe each of the steps in the program development life cycle: requirement analysis, algorithm design,  interface design, coding, testing
  • Define structured programming and object-oriented programming

JavaScript Language Basics

  • Identify JavaScript data types
  • Declare variables of different data types
  • Explain the difference between variable initialization and assignment
  • Follow naming conventions for identifiers
  • Define the importance of  input/ output operations in problem solving
  • Use basic arithmetic operations to do work in your program
  • Use if/then/else and switch case decision structures correctly
  • Use different types of loops appropriately in problem solving
  • Declare and use arrays to store and retrieve data from memory
  • Create methods to perform various tasks in your program

Object Oriented Programming Concepts

  • Describe object-oriented programming
  • Define the terms objects, properties, methods, and events
  • Read and understand a generalization hierarchy
  • Read and understand an object structure diagram
  • Define and explain encapsulation and inheritance

Input / Output Processing

  • Create applications that read input from users using prompt method
  • Create applications that display output using document.write or alert method
  • Use data conversion from String to numeric data
  • Apply String concatenation to display output

Decision Structures, Loops, and Procedures

  • Explain sequence, selection, and repetition control structures
  • Use the If...Else  and switch decision structures correctly
  • Write nested decision structures to do work in your program
  • Use various loops constructs correctly in problem solving
  • Write nested loop efficiently to do work in your program
  • Define void methods and value-returning methods to perform various tasks in your program
  • Demonstrate passing parameters between methods
  • Differentiate between passing parameters by values and by references

Arrays and Debugging

  • Declare and use arrays to store and retrieve data from memory
  • Sort and search an element in the array
  • Pass an array as a parameter in a method