Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In addition to outputting ( or not ) the input file s characters to the output file, count the number of characters from the input

In addition to outputting (or not) the input files characters to the output file, count the number of
characters from the input file (as you input them) and the number of characters sent to the output
file. After exiting the loop controlling the character-by-character input/output, close both files,
compute the fraction of size that the output file is of the input file (see below) and then output a
report using printf statements detailing the following:
name and size (number of characters) of input file
name and size of output file
percent difference (output files size / input files size *100) as
a floating-point value with 2 decimal points of accuracy
if the output file has more than 280 characters, a message that the file (by name) cannot be
tweeted
The output should be formatted so that the file names, sizes and the percent difference line up.

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

4. How is culture a contested site?

Answered: 1 week ago