Question: please write in (( c++ )) program Question 1 15 Points Assessm No due An engineering process P depending on two parameters x and y
please write in (( c++ ))
program
Question 1 15 Points Assessm No due An engineering process P depending on two parameters x and y of type float is described using the following equation: X Timeli 60 min BE if 10.0 10.0 Grading PAD 101 Where the values of x and y are measured experimentally and stored in order in a text file two values per line. The number of lines in a file is unknown in advance. Write a complete C++ program that repeatedly reads two values for x and y from a line in the text file, calculates P, then prints on the screen each of x, y and P in a separate line. If any value of x is less than-10, then your program must print an error message: "Invalid value of x is found in your file."len goes to the next line. Use the editor to format your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
