Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Gentlemen/ Ladies, need help with the folllow C++ assignmentand everybody is con

ID: 3610865 • Letter: G

Question

Gentlemen/ Ladies, need help with the folllow C++ assignmentand everybody is confused. (Note: its is not in any shape nor formin the text book Problem Solving With C++ 7th Ed By WalterSavitch) Progranm requirements are as follows: Write a complete program to read 3-sets of 3-double numbers(9-total) that are the vertice of a 3-dimensional triangle from"instructor given file data"- one triangle per line, find the areaof each triangle using Herod's formula. Find and output thesmallest triangle and its line number as well if it is horizontalor not. State in comments how horizontal was determined. Alsofind and output the average triangle area, as well as the number oftriangles read in. Finally, determine the most vertical triangle and its linenumber and state in comments how the most vertical wasdetermined. Output is to both screen and a data file namedoutput.dat. Thanks Gentlemen/ Ladies, need help with the folllow C++ assignmentand everybody is confused. (Note: its is not in any shape nor formin the text book Problem Solving With C++ 7th Ed By WalterSavitch) Progranm requirements are as follows: Write a complete program to read 3-sets of 3-double numbers(9-total) that are the vertice of a 3-dimensional triangle from"instructor given file data"- one triangle per line, find the areaof each triangle using Herod's formula. Find and output thesmallest triangle and its line number as well if it is horizontalor not. State in comments how horizontal was determined. Alsofind and output the average triangle area, as well as the number oftriangles read in. Finally, determine the most vertical triangle and its linenumber and state in comments how the most vertical wasdetermined. Output is to both screen and a data file namedoutput.dat. Thanks

Explanation / Answer

please rate -thanks In your message to me you said just get you started, so this is notdebugged #include #include #include double findslope(double,double,double,double); double getarea(double,double,double); double findline(double,double,double,double);     int main() {double side1[3],side2[3],side3[3],area[3],; double x[3][3],y[3][3],slope1[3],slope2[3],slope3[3],small; int i,j,smallindex; ifstream in;   in.open("text.txt");          //open file   if(in.fail())            //is it ok?        { couty[i][j]; //3 triangles index i 3 points per triangle -index j for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote