Needs to be current c++ source code. Create an inputfile named "inputFile.txt" (use "Note Pad") that contains the follow
Posted: Fri Jul 01, 2022 5:51 am
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)
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)