Friday, June 9, 2017

Lab 15 Assignment Operators

   
        This Lab was difficult as I had to make a calculator that would have an input and an output value. The task of this lab was to create a calculator that have an initial input value such as 10 and you will put in a value for the output. I put buttons that were x=y, x=x+y, x=x-y, x=x*y, and x=x/y. Each equation will have a different value. For example, x=y will switch the value of x to y. The other equations will add, subtract, multiply, and divide. But this will be a loop as the output value could be added, multiplied, and divided after it's been put in an equation. This lab was difficult at first but became much easier when I solved one button.

No comments:

Post a Comment