Needs to be current c++ source code. Create an inputfile named "inputFile.txt" (use "Note Pad") that contains the follow

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Needs to be current c++ source code. Create an inputfile named "inputFile.txt" (use "Note Pad") that contains the follow

Post by answerhappygod »

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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply