Needs to be current c++ source code.
Create an inputfile named "inputFile.txt" (use "Note Pad") thatcontains the following data. Be sure that the last line of the fileis empty (i.e., not even a space character). In other words, afterentering the second line of data, press the <ENTER> key, savethe file, then exit the editor.
5 10 6 923 7 13 40
Implement the following algorithm
Create & Open inputFileCreate & Open outputFileRead first line of data into variables a, b, c, dDOWHILE !EOF Create a unique formula that uses thevariables a, b, c, & d. For example, value = (a*a) + b - c + d Output value into outputFile Read each line of data into variables a,b, c, dENDDOClose inputFileClose outputFile
Post the source code (embed the code in your response)
Needs to be current c++ source code. Create an inputfile named "inputFile.txt" (use "Note Pad") that contains the follow
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am