String program, C/C++ Programming

Assignment Help:

Write a C++ program which does the following:

1. Asks the user to enter the following text "Four score and seven years ago there was a man named Joey Bagadonuts."

2. Save this string into a C string named inputSentence

3. Open a text file named lab7.txt as an output file

4. Write the C string inputSentence out to the file and also print it out to the screen.

5. Close the output file

6. Open the  lab7.txt file as an input file

7. Read the contents into a C string named outputSentence

8. Print the contents of the  C string outputSentence to the screen

9. Close the input file

10.  Print your name on the screen

11.  Take a screen shot and save it to a word document called lab7.doc

12.  EXIT the program

13.  Create a Zip file for your entire lab7 project and your word doc and put it into the dropbox for week 7


Related Discussions:- String program

Name the operators which cannot be overloaded?, Q: Name the operators which...

Q: Name the operators which cannot be overloaded? A:sizeof, ., .*, .->, ::, ?:

When i develop a destructor, When I develop a destructor, do I require to e...

When I develop a destructor, do I require to explicitly call the destructors for my member objects?

Nested if else, input marks of c and c++ if c grater than equal to 50 grate...

input marks of c and c++ if c grater than equal to 50 grater than 50 you are pass if c greater than equal to 50 c++ less than 50 than supplementry c++ if c less then 50 and c++ gra

StACK, Q. Explain that how do we implement two stacks in one array A[1..n] ...

Q. Explain that how do we implement two stacks in one array A[1..n] in such a way that neither the stack overflows unless the total number of elements in both stacks together is n.

Pointers, write short notes about void pointers

write short notes about void pointers

Areaundercurve, Write a program to find the area under the curve y = f(x) b...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw .

Operator overloading - c++ program, Operator overloading - c++ program: ...

Operator overloading - c++ program: Write a program in c to define operator overloading. class matrix{                   private :                 int x[2][2];

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd