Home / Expert Answers / Computer Science / write-a-gui-based-program-that-implements-the-bouncy-program-discussed-in-the-program-in-programing-pa737

(Solved): Write a GUI-based program that implements the bouncy program discussed in the program in Programing ...



student submitted image, transcription available belowstudent submitted image, transcription available belowstudent submitted image, transcription available belowWrite a GUI-based program that implements the bouncy program discussed in the program in Programing Project 4 of Chapter 3 of your book. Be sure to use the field names provided in the comments in your starter code. An example of the program is shown below: The screen with a distance calculator for number of bounces shown. The title bar has a title, Bouncy. The window takes three inputs from the user, the initial height, the bounciness index and the number of bounces in three textboxes. The initial height and bounciness index textboxes has zero point zero written by default and the textbox number of bounces has a zero by default. It is followed by a button

File: bouncywithgui.py Project 8.2 Determines the distance traveled by a bouncing ball. Inputs: Initial height, bounciness index, and number of bounces " " " " from breezypythongui import EasyFrame def computeDistance(height, index, bounces): "" Computes the total distance traveled by the ball, given an initial height, bounciness index, and number of bounces." "" pass class BouncyGUI(EasyFrame): def _-_init_- (self): "" "Set up the window and widgets." "" EasyFrame._-init_- (self, title = "Bouncy") "" "Define the following fields"" \# self.heightField (number entry) \# self.indexField (number entry) \# self.bouncesField (number entry) \# self.distanceField (result result) def computeDistance(self): " " " " Event handler for the Compute button and set the distanceField. " " " " pass def main( ): "" Instantiate and pop up the window." "" BouncvguT().mainloon() \# self.indexField (number entry) \# self.bouncesField (number entry) \# self.distanceField (result result) def computeDistance(self): "I "I " Event handler for the Compute button and set the distanceField. " I" " pass def main( ): "" Instantiate and pop up the window.""" BouncyGUI( ).mainloop( ) if __name__ == "__main__" : )


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe