Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How do you create text files using notepad and insert them into your C++ file? T

ID: 3538308 • Letter: H

Question

How do you create text files using notepad and insert them into your C++ file? These text files are going into loop functions.

1. For your input, create the following text file using notepad. Note that the last line of the file must contain a sentinel value of x to indicate the end of the file.

f           3.5

f           4.0

m         3.91

f           2.20

m         3.01

f           2.97

m         3.17

m         3.54

m         1.97

m         3.75

f           2.5

f           3.85

m         4.0

m         2.20

m         3.5

f           2.0

x



2.

20                (remember that this will indicate how many values)

8 4 57 3 22

17 2 4 1 29

100 77 88 33 55

9 6 35 19 1

Explanation / Answer

Just open up notepad (assuming you know how to do this ).


Copy the data as you have posted it in the notepad file, and save it.

When asked to save, make sure you name it "input.txt" ( or whatever name the c++ programs are using) , and save it in the same folder where you have the c++ codes.


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote