🛠️

Project 1 - Flooring Estimate Program Overview

Aug 25, 2025

Overview

This lecture demonstrates the expected output for Project One, focusing on collecting user input, performing calculations, and displaying results for a flooring estimate program.

Program Requirements and Demo

  • The program collects the customer's name and address interactively (should not hard code any values).
  • User inputs room dimensions for a square room (side length), rectangular room (length and width), and circular room (diameter/radius).
  • Inputs accept both floating-point numbers and integers.
  • The program calculates each room's area, material cost, installation cost, and total cost.
  • An estimate is generated for each room and the grand total is displayed at the end.

Output Options

  • The basic requirement is a straightforward, readable output similar to the provided sample.
  • Optionally, students may format output as a table with columns for room type, area, costs, etc., for improved readability.
  • Table formatting uses string formatting techniques (like f-strings, justification, and width), but is not required.

Implementation Notes

  • The assignment is sequential code only: no if-statements, loops, or object-oriented programming.
  • Only valid, expected data will be tested; no input validation is needed at this stage.
  • The calculations and input process remain the same regardless of output formatting.

Key Terms & Definitions

  • Floating-point number — A number with decimals, e.g., 12.5.
  • String formatting — Adjusting the appearance of output text using programming syntax (e.g., f-strings).
  • Estimate — The calculated total including material and installation costs for each room.

Action Items / Next Steps

  • Implement the program with the described input prompts, calculations, and output.
  • Test with both integer and floating-point values.
  • (Optional) Experiment with formatted output/tables using f-strings and text alignment.
  • Contact the instructor with any questions about the assignment.