Page 1 of 1

Develop a program that reads from an input CSV file named input.csv the pairs of values of distance (meters) from left b

Posted: Wed Apr 27, 2022 2:41 pm
by answerhappygod
Develop A Program That Reads From An Input Csv File Named Input Csv The Pairs Of Values Of Distance Meters From Left B 1
Develop A Program That Reads From An Input Csv File Named Input Csv The Pairs Of Values Of Distance Meters From Left B 1 (31.79 KiB) Viewed 39 times
Develop a program that reads from an input CSV file named input.csv the pairs of values of distance (meters) from left bank and the river depth y (meters) at that location, for a given cross-section. Note that the x values are equidistant with each other. The file will have the following format Format: Example: pusat <number of data pts File Format <xl> <y> cx2> <h2> 5,2.32 10,4.6 <xm> <y> 15,4.64 20,3.33 25,2.51 7 M 10 15 2.32 4.0 4.66 2.51 25 30 30, The program will use the composite Trapezoidal Rule and composite Simpson's Rule to approximate the area of the river cross-section SPECIFICATIONS 1. Let the user choose between implementing (a) the composite Trapezoidal Rule, or (b) the composite Simpson's Rule. 2. Open the file input.csv and read the data contained within 3. Display the computed area of the river cross-section on the screen. HINT: Use a running total variable to solve for the summations as your program reads through the input file.