I have to create a c++ program. I really don\'t know where to begin. Can someone
ID: 3550997 • Letter: I
Question
I have to create a c++ program. I really don't know where to begin. Can someone please point me in the right direction to do this:
Explanation / Answer
#include #include #include //pyth.cpp //a^2+b^2=c^2 -- The Pythagorean Theorem //This C++ program takes information inputted about a triangle, and using the Pythagorean Theorem: //Either solves for a, b, or c, and displays properties about a simulated triangle with those variables //For example, we would find and output the area, perimeter, etc. of that triangle //I would say to credit this if you used it in your schoolwork, but you probably won't anyway //I do accept payment, donations, and gifts of appreciation in the form of money and women //(c)2012 Ty K. using namespace std; string AskIfGoAgain(){ int loop = 1; string answer = "y"; while (loop == 1){ answer = "y"; cout > answer; if (answer == "y"){return answer;} else if (answer == "n"){return answer;} else { cout b; //Prompts user to input b cout > c; //Promts user to input c bSquared = b*b; cSquared = c*c; //Finds each variable's square.. if that makes grammatical/syntactical sense a = cSquared - bSquared; //Finds a coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.