# LaTeX and Calculator programming

Complete all of the problems and questions below. See submission information below.

Practice using LaTeX by posting a solution to the following problem.

A narrow street is lined with tall buildings. The base of a 20 foot long ladder is resting at the base of the building on the right side of the street and leans on the building on the left side. The base of the 30 foot long ladder is resting at the base of the building on the left side of the street and leans on the building on the right side. The point where the two ladders cross is exactly 8 feet from the ground.

Approximately, how wide is the street (to the nearest tenth)? Justify your answer.

## Riemann sums

Create a calculator program to estimate the area under a curve.

1. Provide the code for a calculator program that could be used to calculate the Riemann sum:
 Inputs Function of x Lower bound of x Upper bound of x Output Estimated net area based on 3 equally spaced rectangles using "midpoints"
2. Annotate your code by explaining each line of code that contains mathematics.
3. Run your program for the instructor on the due date.

## Discussion questions

1. Provide at least two advantages of calculator programming.
2. Provide at least two disadvantages of calculator programming

## Challenge (+2 TP)

Extend the "Riemann sums" program to also compute Riemann sums for left endpoints and right endpoints.

Run your program for the instructor.

## SUBMISSION

1. Publish the assignment to your EduBlog by: