1. Gain further experience constructing expressions.
2. Gain further experience writing programs.
Each of the following projects involves the construction of expressions of various types, and so will provide practice in building expressions. Your instructor will tell you which one(s) to do.
2.1. Programming Problem 1 (converting measurements) at the end of Chapter 3.
2.2. Programming Problem 2 (converting weights) at the end of Chapter 3.
2.3. Programming Problem 3 (resistance in an electronic circuit — series connection) at the end of Chapter 3.
2.4. Programming Problem 4 (resistance in an electronic circuit — parallel connection) at the end of Chapter 3.
2.5. The two solutions of a quadratic equation
2.6 Write a program that, given the amount of a purchase and the amount received in payment, computes the change in dollars, half-dollars, quarters, dimes, nickels and pennies.y = ax2 + bx + ccan be found using the quadratic formula:solution1 = -b + the square root of (b2 - 4ac) ----------------------------------- 2aandsolution2 = -b - the square root of (b2 - 4ac) ----------------------------------- 2aWrite a program that inputs values for a, b and c, and outputs the values of solution1 and solution2.(Don't worry now about "division by 0" or "square root of a negative number" errors. We'll see how to handle these later.)