Answered step by step
Verified Expert Solution
Link Copied!

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 f-strings and perform any necessary calculations.
The program should format numerical output as a float with 2 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 (lpsale.txt) created in the previous program (program6_1.py).
Use f-strings 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 2 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 f-strings: The script should make appropriate use of f-strings to format the table.
Numerical formatting: Numerical output should be correctly formatted as a float with 2 decimal places.
Table formatting: The table should be correctly formatted with appropriate column widths and headings matching that of the example
output.
EXAMPLE OUTPUT
a.bur Titie
Artiat Naxe
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions