Answer to Question #184070 in C++ for Bilal

Question #184070

Comment this code line by line in simple english

float Beta(){
 
        return 90-Alpha();
 
    }
 
};
 
 
 
int main (){
 
    RightAngleTriangle rightAngleTriangle;
 
    rightAngleTriangle.Input();
 
    rightAngleTriangle.Output();
 
    system("pause");
 
    return 0;
 
}
1
Expert's answer
2021-04-24T11:29:26-0400
/* 
define a function called Beta
 */
float Beta(){
 		/* 
  return 90 minus the value returned by the Alpha function
    */
        return 90-Alpha(); 
    }

};
 //define the main function

int main (){

 	/*create an object of class RightAngleTriangle using rightAngleTriangle 
as the reference variable */

    RightAngleTriangle rightAngleTriangle;

	// call the Input() method
    rightAngleTriangle.Input();

	//call the Output() method
    rightAngleTriangle.Output();

	//keep the output window open
    system("pause");

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS