Hey guys, this is unrelated to SRO but im desperate from help and i know everyone on this forum is really skilled. My computer science 101 class taught me c++ console programming, and now im in an ist class that assumes everyone knows object oriented c# programming. Im really unfamiliar with this and I'm unsure how to use it and im unsure of the syntax. Our assignment is to create an amortization program. It has 4 text boxes. The inputs are Principle, Rate, and Term of loan. The fourth textbox is for the output of the monthly payment that will be calculated from this program. So far what I've done is go into the Private function of each textbox and convert the string to double.
Double Principle = Convert.ToDouble(principle.Text) ;
However, now that I've done that I'm unsure of a few things, since each function for each object is private, how do i call variables from other objects. What i mean is, i have the formula for calculating the monthly payment, but im unsure where in the code to put the formula because if i put it in a private function somewhere, and i call the variable "principle" it doesnt recognize it.
After i get that squared away, im unsure how to code the "submit " button to provide the output in the fourth textbox.
Sorry thats alot, and again sorry this is unrelated to sro. I know the people here are really good and my teacher has yet to email me back and i really need help.
Thanks!
Double Principle = Convert.ToDouble(principle.Text) ;
However, now that I've done that I'm unsure of a few things, since each function for each object is private, how do i call variables from other objects. What i mean is, i have the formula for calculating the monthly payment, but im unsure where in the code to put the formula because if i put it in a private function somewhere, and i call the variable "principle" it doesnt recognize it.
After i get that squared away, im unsure how to code the "submit " button to provide the output in the fourth textbox.
Sorry thats alot, and again sorry this is unrelated to sro. I know the people here are really good and my teacher has yet to email me back and i really need help.
Thanks!