Home Segments Index Top Previous Next

532: Practice

Suppose that, incredibly, the trade-description standard changes. Now the line describing a stock includes information about the size of the company via a size-indicating character. Of these characters, L indicates that the company is one of the largest 500; M indicates that the company is one of the largest 1000, but is not one of the largest 500; S indicates that the company is not one of the largest 1000; and X indicates that the company's size is unknown:

*-- Size-indicating character 
| 
v 
L-F-BLD    3.3  300 
S-T-GG     2.5  400 
M-AX-FLY   9.9  100 
L-AB-CH11 10.1  100 
L-C-IBM    5.0  200 

Modify the program in Segment 531 to accommodate the changes. Be sure to change only the industry_name and company_name functions.