CS 0007 Quiz 4 Name: ___________________________


12/6/1999


Part 1: Program Segment Questions

1.(50 points)


Write a function that takes a string of length 80 (variable parameter) and an integer (value parameter that contains the occupied length of the string) and converts the string to all lowercase using the chr and ord functions. This function always returns the integer value 1.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. (50 points)

Write a function that takes a string (which contains the string representation of an integer) and returns the integer value of that string.