Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Lab
Synopsis

Imagine making a 1 billion dollar error by typing the incorrect information into a computer. That is what happened to a Japanese securities trader in December of 2005. The trader accidentally typed in the wrong amount when selling a share of stock and lost his investors millions upon millions of dollars. This module discusses the importance input validation and the risks involved if this is not considered in code.

Recommendations

An internet connection is needed for this assignment since it is set up as an interactive online experience.

This activity comes from a series of activities called Cyber4All at Towson University. This assignment can be done not only in C++ but also in Java and Python. It is important to note however only this assignment in C++ has been peer reviewed.

Engagement Highlights

In this laboratory, students are given many practical examples of why input validation is important and how not considering this in the development of code can be risky. By framing it by many modern day examples, this material uses Meaningful and Relevant Content. 

Additionally, as student move through the laboratory, there are several checklists, multiple choice questions, and opportunities for discussion, which allow for immediate feedback. In this way this laboratory offers Student-Centered Assessment.

Materials and Links

Computer Science Details

Programming Language
C++

Material Format and Licensing Information

Creative Commons License
CC BY-SA