Question: Computer Programming - GENG 2 3 0 Project 1 - Fall 2 0 2 4 Write a Python program that reads data from the file

Computer Programming - GENG 230
Project 1- Fall 2024
Write a Python program that reads data from the file "beams.txt". This file contains information about several beams used in a construction project. Each line in the file includes a beam's ID, length (in meters), width (in meters), and height (in meters), separated by commas. The text file can be found on Blackboard in the same post. The program should perform the following tasks:
Print the title "Beam Dimensions and Properties" inside a bounding box using a function similar to boxString 0 as demonstrated in Chapter 5.
Display a formatted table with each beam's ID, length, width, height, cross-sectional area (width * height), and volume (length * width * height). Additionally, display the total volume of all beams at the end of the table.
Identify and mark the beam with the largest and smallest volume in the table generated in the previous part.
Calculate the number of beams with a cross-sectional area above and below the average cross-sectional area. Write a function called count_beams_by_cross_section () that takes a list of all cross-sectional areas as input and returns a tuple with two values: the number of beams with an above-average cross-sectional area and the number of beams with a below-average cross-sectional area.
Organize your program using the main () function.
Notes
The deadline for the project is Monday November 4,2024.
Submit only your Python file to Blackboard. Other forms of files will not be accepted.
Late submissions will not be accepted.
Do not submit by email, as it will not be accepted.
If your submission contains a code you did not write on your own or using AI tools, you will receive a reward of 0please make it easier snd the code slightly different
Computer Programming - GENG 2 3 0 Project 1 -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!