{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab4 - EEC 70 Computer Structures and Assembly Programming...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EEC 70: Computer Structures and Assembly Programming Winter Quarter 2006 Laboratory Exercise 4: String Operations Due Date: Monday, Feb 24, 11:59 pm Full Points 100 Problem Description You will implement the equivalent of the standard C functions strcmp and strcat in SAL using the array data structure. A string is a sequence of upper case and lower case characters. You should declare a constant MAXLENGTH to store the maximum length of the string. This way you can change it later if you want to. You can initialize the constant MAXLENGTH to 10. Your program should begin with a input prompt: << This is a signal for the user to give his/her input. The valid inputs to your program are the following: ?(s1,s2) +(s1,s2) where s1 and s2 denote the two strings. Notice that there are no spaces between the characters. The input to your program will end with a carriage return (ENTER key on the keyboard). ? denotes strcmp operation and should return -1, 0, or 1 depending on whether s1 is (lexicograph- ically) less than, equal to or greater than
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern