My instructor gave an assignment that goes like this:
"Use a for loop to generate a table similar to the following table. The first row of the table should be for 5/32 inch and it should end at 1 inch (32 thirty-seconds). Inside the loop, calculate the decimal equivalent in inches, determine the next bigger and the closest wrench sizes in mm, and calculate the differences between the two wrenches in inches.
I got the first two row, but am having trouble with the math for the 3rd column and then how to make the decimals for the 4th. Then I figure the fifth is like the third. Last, how do I do the math for the 6th row? Very frusturated right now with this. Please help.
3rd column: convert inches to mm and do ceil()
4th column: convert mms from third column back to inches and substract original value
5th column: convert inches to mm and do round()
6th column: convert mms from fifth column back to inches and substract original value