Lab 1 Directions

Part1: Data Representation (10 Points)

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
  • Learn how to convert unsigned 8-bit binary integers to decimal, and vice-versa.
  • Learn how to convert 16-bit hexadecimal integers to decimal, and vice-versa.
  • Learn how to do hexadecimal addition and subtraction.

Tasks:

  • Complete Questions 3,8,9,11,15 from the Section 1.3.7 Review Exercises in the Irvine Assembly Language book Chapter 1. Topic: Data Representation. ( Find this in the Module 1 Resources)Read the slide show on Character representation (ASCII and Unicode).Create a PDF or JPG file showing all of your work.

Part 2: Students and Courses, Part 1 (18 Points)

Java review

You may use an IDE or a text editor, but I will test this by compiling and running from the command line so be sure to test it that way. (No packages allowed) The program will not compile and run at the command line if you include any package statements.

Save this program, for a future assignment (Lab 8).

Here are the steps.

  1. Create a Student class containing an ID, a last name, and a list of course names such as “COP2210” or “COP2250”. This should not be a string of multiple courses. The ID should be an integer which is printed with leading zeros.Create a class named StudentTest that contains a List of students. Do not use the list provided here in the sample. In the class constructor, create 15 students and add them to the list. Each student’s ID must be different. Each student you add to the list must contain 2-4 different course names. At least one should have two course names and at least one should have four course names. Make sure the students do not all have the same courses, although there should be some overlap (see the sample below). The student names must be inserted into the list inrandom order (not sorted).Sort the list in ascending order by student last name and display the list. For each student, display the ID with leading zeros, last name, and list of courses on a single line.

Here is sample output. Note how the tab character is inserted after the name to line up the next column containing courses. Be sure there is no trailing comma at the end of the list of courses.

Submit a zip file called FirstnameLastnamelab1.zip. It should contain: (2 Points)

  • The PDF file or JPG file from Part 1.All Java source files from Part 2.Do not include any other files or folders

For example:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

CarylRahnlab1.zip

CarylRahn.jpg

Student.java

StudentTest.java

A Java submission must compile and run from the command line or it will earn a 0 and will not be graded further. Do not include package statements or this will happen

  1. Irvine’s Assembly Language for x86 Processors, Chapter 1 (PDF) (Binary, ASCII, Hexadecimal)
  2. Wikipedia: ASCII
  3. Wikipedia: Unicode
  4. List of XML and HTML character entity references
  5. Wikipedia: UTF-8
  6. Character Representation Slide Show (PDF)
  7. Character Representation Study Guide (PDF)
  8. Khan Academy video: Binary Numbers
  9. Programming Rules for Java (PDF)

Order a unique copy of this paper

600 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
Top Academic Writers Ready to Help
with Your Research Proposal

Order your essay today and save 25% with the discount code GREEN