Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -


assembly spim mips project

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 ArifBiyik


    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 08 April 2016 - 08:08 PM

Project #2
Write a single program that does the following.  You would be well 
advised to complete each part before even attempting the next.
Part 1 (50 points)
 Write a program to accept a one-line string (maximum of
 100 characters) from the keyboard.  Then, edit (with
 code that you write) to remove all the white space,
 digits, punctuation, and other special characters,
 leaving only the letters.  Print out the resulting com-
 pressed string to the screen.
 for example, if the input string was
    If I've told you once, I've told you 1000 times!!
 then the output string would be
Part 2 (50 points)
 Now, build a letter frequency table (you MUST use a 26
 entry WORD integer array) that counts how many times
 each letter is used in your compressed sentence for
 Part 1.  Count upper case letters as if they were lower
          Print out the numbers in this table to the
 screen starting with the frequency of "a" and continu-
 ing to the frequency of "z". Format the table output
 to consist of two horizontal lines with 13 numbers in
 each line.  Separate the numbers on the line by a sin-
 gle space.
 The appropriate output here for the above input would
   Letter Frequency Table
   0 0 1 2 4 1 0 0 4 0 0 2 1
   1 5 0 0 0 1 3 2 2 0 0 2 0
 Have the program handle multiple data sets and
 terminate execution when a null input string is
 please name the source file

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download