Question: Write a program to add 4 0 ( decimal ) and - 1 0 ( decimal ) . There is no input, so these integers

Write a program to add 40(decimal) and -10(decimal). There is no input, so these integers should be stored in memory. Output the result.
2. Verify you can do the above program WITH INPUT. There is a video in this weeks module called
Add2Integers
3. Write a program to input an integer, add 10(decimal) to it, and output the result.
4. Write a program to input an integer, subtract 20(decimal) from it, and output the result. There is no need for your initial integer to be greater than 20, your output will just be negative. Look at the status bits. If your result is negative N should be 1, if your result is zero, Z should be 1.
5. Write a program to input an integer, multiply it by 7, output the result. This is perhaps the most difficult, so be sure you can do this or ask for help.
Use pep8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!