Homework Assignment 4 Solutions

Solutions:

  1. Program 2.29 from the text: Given two points on a line, return the equation for the line in the form Ax + By + C = 0.
    Solution

  2. Program 3.24 from the text: Calculate the best price for an order of n bagels, where bagels are priced 0.50 each, 2.60 the half dozen and 3.80 for a bakers dozen of 13 bagels.
    Solution

  3. Program 3.25 from the text: Calculate payments for a loan.
    Solution

  4. Program 4.26 from the text: Write a program to determine tax liability from a tax table.
    Solution