Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🏠 Python program to calculate the total cost of tiles needed to cover a floor of given dimensions and tile price per square meter.

Notifications You must be signed in to change notification settings

moroniq/find_costs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

# Tile Cost Calculator 🧱

This Python script calculates the cost of tiling a floor, based on user-provided dimensions and tile price.

## 📌 How it works

1. The user enters:

  - width of the floor (in meters)

  - length of the floor (in meters)

  - cost per square meter of tiles

2. The program calculates and displays the total cost.

3. After each calculation, the user can choose to calculate again or exit.

## 💬 Example interaction

Give the width of the floor in meters: 4

Give the length of the floor in meters: 5

Give the costs of the tiles in square meters: 45

Costs of the tiles are 900.00.

Do you want to check another costs? yes

...

## 🛠 Technologies used

- Python 3

- while loop for repetition

- try/except block for input validation

- Basic math and string formatting

## 🧠 What this project demonstrates

- Handling user input

- Looping until user chooses to stop

- Error handling with ValueError

- Presenting results with precision formatting


Created with 💡 by Olga Kęska

About

🏠 Python program to calculate the total cost of tiles needed to cover a floor of given dimensions and tile price per square meter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published