Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Lab #1 Keyboard and Screen Processing Using the Irvine Link Library Assigned: 9/

ID: 673674 • Letter: L

Question

Lab #1 Keyboard and Screen Processing Using the Irvine Link Library Assigned: 9/24/2014 - 9/25/2014 Due: 10/15/2014 - 10/16/2014 Create a program that will perform the following actions. You should code as much as possible at home. Remember, you can create an Assembly program in any plain text editor. After creating the text *.ASM file you can attempt to compile it, and work out any bugs using MASM in Visual Studio. All of the concepts in this lab are covered in the textbook, and the Irvine 32 library (pages 158-170) has several procedures that you can use, so if you get stuck refer to the book. Turn in a copy (email as an attachment) of the *.asm file, before you leave class on the due date. Do not rely on the lab time on the due date to complete the program. The grading percentages are: Did you make the due date? 10%/week, Program Design 20%, Coding Design 20%, Does it meet the demands? 50% (If it does not meet all the demands, points will be lost from this category. Do your best! Partial credit is given for a reasonable effort). Please create a program that asks for a person’s name. Once the name has been collected, clear the screen, and use the name in the salutation of a letter to the user. Remember, a well-designed program will use procedures to house pieces of code that perform a specific task, and are likely to be used more than once. This affects the Coding Design grade. The Details: 1. To complete this lab you will have to read ahead a bit and familiarize yourself with a few Irvine library procedures. At a minimum, the procedures you will need to complete this lab are: ClrScr (pg 138/159), ReadString (pg 146/167), WaitMsg (pg 147/168), and WriteString (pg 148/169) 2. Display a prompt that asks for a name, then collect and store the name for display later. Note: All of your inputs should be able to accept up to 25 characters in length. 3. Display a prompt that asks for an address, then collect and store the address for display later. 4. Display a prompt that asks for a city, then collect and store the city name for display later. 5. Display a prompt that asks for a state, then collect and store the state for display later. 6. Display a prompt that asks for a zip code, then collect and store the zip code for display later. 7. After all information has been collected, clear the screen and display the collected information to the screen in a mailing label format. (example: Joe Smith 123 Main St. Bel Air, MD 21015 ) 8. Use the WaitMsg procedure discussed in Chapter #5 to display a “Press any key to continue…” message, then wait for a key to be pressed. When a key is pressed clear the screen and end the program.

Explanation / Answer

Solution :