Added documentation and information to the programs

This commit is contained in:
cmitchell2301 2025-12-14 19:29:35 -05:00
parent ba1c8d6d86
commit ca0492fb72
4 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# Program rectanglar-solid.py
startUpMessage = '''
This program calculates the volume of a rectangular solid.
'''
print(startUpMessage)
length = float(input("Enter a value for the length "))
width = float(input("Enter a value for the width "))
height = float(input("Enter a value for the height "))
volumeOfRectangle = length * width * height
print(f"Volume = {volumeOfRectangle:.1f}")
print("\n")