File Tools - C++ Program

Cancelled Posted 6 years ago Paid on delivery
Cancelled Paid on delivery

File Tools

1. File "HEAD" program:

Write a program that asks the user for the name of a file. The program should display the first 10 lines of the file on the screen (the "head" of the file). If the file has fewer than 10 lines, the entire file should be displayed, with a message indicating the entire file has been displayed.

2. File Display Program.

Write a program that asks the user for the name of a file. The program should display the contents of the file on the screen. If the file's contents won't fit on a single screen, the program should display 24 lines of output at a time, and then pause. Each time the program pauses it should wait for the user to strike a key before the next 24 lines are displayed.

3. File "TAIL" Program:

Write a program that asks the user for the name of a file. The program should then display the last 15 lines of the file. If the file has less than 15 lines, the entire file should be displayed, with a message indicating the entire file has been displayed.

4. File "DIFF" Program:

Write a program that asks the user for the names of two files. The program should read each line of the files, and compare them. If they are not identical, the file name, then the line number should be printed, and then the line for the differing lines.

5. File "CHAR_REPLACE" Program:

Write a program that asks the user for the name of the file, a character to find, and a character to replace it with. Write the replaced information to a new file, with the phrase C_REPL added to the original file name (i.e. if the original was MyHeader.h, the new file is MyHeaderC_REPL.h)

6. File "STR_REPLACE" Program:

Write a program that asks the user for the name of the file, a string (or substring) to find, and a string (or substring) to replace it with. Write the replaced information to a new file, with the phrase S_REPL added to the original file name (i.e. if the original was MyHeader.h, the new file is MyHeaderS_REPL.h)

7. File "STATS" Program:

Write a program that asks the user for the name of the file. the program will count the number of words in the file, determine the longest word in the file, and the average number of letters per word, and the number of sentences in the file. **BE SURE YOU DO NOT INCLUDE PUNCTUATION AS PART OF A WORD LENGTH**

8. Data Conversion Program

Write a program that reads data from a file, performs a units conversion, and writes the data to a new file. Offer the user the following choices of conversions: degrees F to degrees C, degrees C to degrees F, feet to meters, meters to feet, ounces to grams, grams to ounces. In the new file, the first line of the file should indicate the original units and the altered units, and the next lines should have both the input and the converted data. For example:

INPUT:

32.0

0

72

OUTPUT:

degrees F degrees C

32 0

0 -17.78

72 22.22

C Programming C# Programming C++ Programming PHP Software Architecture

Project ID: #15577504

About the project

16 proposals Remote project Active 6 years ago

16 freelancers are bidding on average $60 for this job

it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested. Thanks. Relevant Skills and Experience C++ Programming Proposed Milestones $4 More

$40 USD in 1 day
(1076 Reviews)
7.7
hbxfnzwpf

100usd for this project Relevant Skills and Experience I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing. Propo More

$100 USD in 2 days
(212 Reviews)
7.3
kaloyan13

I can finish your tasks in 3-4h. Relevant Skills and Experience C, C++, Linux Proposed Milestones $50 USD - final milestone

$50 USD in 1 day
(494 Reviews)
7.4
idleswell

I will create C++ programs for these 8 exercises. Relevant Skills and Experience I have 25 years experience programming in C++. Proposed Milestones $372 USD - C++ Programming

$372 USD in 6 days
(199 Reviews)
6.3
sujanttt

Hello sir, I can do this project. I can provide you the solutions within a day. This is a c program. I can provide you the well commented code. Relevant Skills and Experience C/C++ programming for 3 years Proposed Mi More

$40 USD in 1 day
(28 Reviews)
4.6
khanhptktmt

Your project includes so many programs, let me have a chance to help you Relevant Skills and Experience I'm a C/C++/Java/C# programmer with 10+ years experience so I think I can complete this project Proposed Milesto More

$100 USD in 1 day
(13 Reviews)
4.3
naeem76

I can do it for you with C#. Relevant Skills and Experience C# Programming Proposed Milestones $20 USD - Code all programs specified

$20 USD in 1 day
(3 Reviews)
2.3
thejusp1996

A proposal has not yet been provided

$15 USD in 1 day
(2 Reviews)
1.4
vapashos

Seems quite straight forward for me i can do it Relevant Skills and Experience computer engineer background currently working as C++ software engineer Proposed Milestones $25 USD - total Additional Services Offered More

$25 USD in 1 day
(1 Review)
0.6
arton1x

A proposal has not yet been provided

$35 USD in 2 days
(0 Reviews)
0.0
Strawberry4

1 Odpowiednie Umiejętności i Doświadczenie 1 Zaproponowane płatności Milestone $5 USD - First 3 points $15 USD - All

$20 USD in 1 day
(0 Reviews)
0.0
Logal

Hi, I can code this simple program Habilidades y experiencia relevante C++, C#, python Htos propuestos $30 USD - source code

$30 USD in 1 day
(0 Reviews)
0.0