1 1 1 1 11 13convert the magnitude to decimal 0011

This preview shows page 6 - 7 out of 7 pages.

1101¬0010+100113.Convert the magnitude to decimal: 00112=2^1+2^0= 310.4.Since the original number was negative, the final result is -3.b. 110111111.First, note that the number is negative, since it starts with a 1.2.Change the sign to get the magnitude of the number.110111116 | am/cpsc111-Su16-Asg1.docx Assigned: Monday, July 18th
CPSC111-Introduction to computing By Dr. Ahmed Malki – Asg. #1 (Summer-16)¬00100000+1001000013.Convert the magnitude to decimal: 00112=2^5+2^0= 3310.4.Since the original number was negative, the final result is -33.c. 01101The number is positive, so simply convert it to decimal: 011012= 2^3+2^2+2^0= 1310.Check the classroom handout on different conversion systems (Two's Complement to Decimal Conversion)Happy computing!N.B:Next, you are going to make sure you can use the submission properly. This will be how you turn inyour assignments electronically. The submission procedure only accepts zip files (NOT rar Files), so youare going to create a “Asg1_YourFirstName_YourStudentID.zip” file containing all the programs you justwrote as well as this document with your name and student number added to it.To create a “.zip” file, findthe directory where the files are saved and select all of them. If you right-click on one of the selected files,you should have the option to create an archive by choosing “Send to” then “Compressed “zipped”Folder”. Rename the created “.zip” file and give it the name Asg1_YourFirstName_YourStudentID.zip.10 marks will be deducted if:1.the email did not have a full name and a student # in the subject field or2.the procedure for zipped file is not followed or3.Python template and documentation are missing or4.This document, with your name and student number on it, is not included with the zipped fileA score of zero (0) will be given to everyone whose email is empty.7 | am/cpsc111-Su16-Asg1.docx Assigned: Monday, July 18th

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture