CSE 2312 - Assignments

Not Graded Practice for Assignment 10


Practice Question 1

Write an assembly function reverse_string that takes in as argument a string, and reverses the order of characters in that string. Note that your function should modify the argument string, not create and return a new string.


Practice Question 2

Write an assembly function count_vowels that takes in as argument a string, and returns the number of vowels in the string. Both uppercase vowels and lowercase vowels should be counted.


Practice Question 3

Write an assembly function lower_case that takes in as argument a string, and modifies the string so that all letters are converted to lowercase. Non-letter characters should not be changed.


Practice Question 4

Write an assembly function separate that takes in as argument a string, and modifies the string so that:


Practice Question 5

Write an assembly function squares that takes in as arguments an array of integers and the length of that array, and modifies the array so that each integer in the array is replaced with the square of that integer.


Back to the list of assignments.