Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A Python program that reads a text tile and generates a tormatted table. The program should use f - strings and perform any necessary calculations.
A Python program that reads a text tile and generates a tormatted table.
The program should use fstrings and perform any necessary calculations.
The program should format numerical output as a float with decimal places.
This program shall also meet all requirements stated in the assignment requirements section above and the evaluation criteria stated in
the section below and will be scored using the assignment rubric.
INSTRUCTIONS
Read the text file lpsaletxt created in the previous program programpy
Use fstrings along with any necessary calculations to create a table.
Each row of the table should correspond to a destination, with columns as indicated in the example output.
Format numerical output as a float with decimal places. $ signs are not required.
Choose your own column widths but include column headings as shown in the example output.
ADDITIONAL EVALUATION CRITERIA
In addition to the requirements for this module stated in the section above, your program will also be evaluated on the following criteria:
Correctness of the script: The script should correctly read the text file and generate the desired table.
Use of fstrings: The script should make appropriate use of fstrings to format the table.
Numerical formatting: Numerical output should be correctly formatted as a float with decimal places.
Table formatting: The table should be correctly formatted with appropriate column widths and headings matching that of the example
output.
EXAMPLE OUTPUT
abur Titie
Artiat Naxe
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started