Calculate the percentage, by weight, of each of the elements (C, H, O) in glucose.

C= 40%
H= 6.7%
O= 53.3%
Correct?

Yes, that's right but you don't have the same number of significant figures for each of the elements.