Input any number as "d," and wait for it to calculate. A few examples are given (0, 1, 2, and 3), and the last box is for your "d" value to calculate "c." "d" is your distance in miles, and "c" is the overall cost as determined by the "d" value.
Thanks to my Math (and Social Studies, and Advisory) teacher! This is an example of an algorithm a rental car company might use to calculate your payment. This algorithm assumes that the base price is 100 dollars, and the addition per mile is 10 cents. A brief warning: "Star Trek" puns and rental car company off-brands are prominent in this project.