Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago