Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that reads the file.in file, extracts columns 10-14 and writes the number into a file, file.out as shown. The number is to

Write a program that reads the file.in file, extracts columns 10-14 and writes the number into a file, file.out as shown. The number is to be written 2 times into the file in columns of width 15 each. The first column should be left justified, the second right justified. The second column should display the number divided by 100.0 in scientific notation. file.in

abcdefghi123456789012345678901234567890 abcdefghi23456789012345678901234567890s abcdefghi3456789012345678901234567890gj abcdefghi456789012345678901234567890dnf abcdefghi56789012345678901234567890djdi abcdefghi6789012345678901234567890rrggg abcdefghi789012345678901234567890fggffg abcdefghi89012345678901234567890gbbfgfg abcdefghi9012345678901234567890fgfgfgfg abcdefghi012345678901234567890fgfgfgfgf abcdefghi123456789012345678901234567890

file.out

12345 1.234500E+002 23456 2.345600E+002 34567 3.456700E+002 45678 4.567800E+002 56789 5.678900E+002 67890 6.789000E+002 78901 7.890100E+002 89012 8.901200E+002 90123 9.012300E+002 1234 1.234000E+001 12345 1.234500E+002

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

7. What is coaching? Is there only one type of coaching? Explain.

Answered: 1 week ago