Assignment
Purpose
This assignment is designed to familiarize you with the basics of looping.
Requirements
This assignment consists of five major requirements.
1) Developing a solution to the problem below.
2) Ensuring that it assembles and runs correctly using the tools on edoras.
3) Documenting your solutions correctly.
4) Organizing your handin directory and submissions correctly.
5) You must bring in a hardcopy of the rubric to class on the day the assignment is due. If the rubric is late, the assignment is late.
Problem
1) First, the program will print the programming assignment number, your name, and your class account, all on one line. Then your program will prompt the user to enter two numbers on a single line separated by a space. Your program will then validate that the two numbers input
fufill the following requirements:
a. There is nothing typed on the input line except numbers and a single space. If there is anything other than numbers and a single space, reject the input.
b. Each number must be at most 5 digits long and at least 2 digits long. Any other length input for each number should reject the input.
c. Each number must be in the range 25 - 65250 inclusive. If they are not reject the input.
Once all of these input verifications are satisfied your program will output three pieces of information:
a. The number of bits required to store the first number as a 2's compliment number
b. The number of bits required to store the second number as a 2's compliment number
c. The number of bits required such that adding the two numbers together would not result in overflow.
For example:
27 38
First number requires 6 bits.
Second number requires 7 bits.
No-overflow addition requires 7 bits.
2) You must ensure that your assembler can be assembled and run on edoras using the tools ppasm and bsvc. You may develop your solution on any machine you desire, as long as the final solution works on edoras.
3) Your solution must have a complete comment header as is detailed in your template.s file. During runtime, your solution to section 1 must output a correct title string as the first line printed. It should be in this format:
Program #2, Student Name, mascXXXX
4) You must place a copy of your solution inside a folder named handin in your home directory.
Your file MUST be named prog3.s and must not be modified after the turn in time. The modified timestamp for the file prog3.s in your handin folder will be used as the submission time. If it is after the due date, it will be counted as late. DO NOT turn in any compiled files.
Late Policy
Late programs will be accepted with a penalty of 5% per day for seven days after due date.
Cheating Policy
There is a zero tolerance policy on cheating in this course. You are expected to complete all programming assignments on your own. Collaboration with other students in the course is not permitted. You may discuss ideas or solutions in general terms with other students, but you must not exchange code. (Remember that you can get help from me. This is not cheating, but is in fact encouraged.) I will examine your code carefully. Anyone caught cheating on a programming assignment or on an exam will receive an "F" in the course, and a referral to Judicial Procedures.
Attachment:- Pic.rar