Comp Sci / Expos

Read secondresistor print color of third resistor if

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Red enter 2, If Orange enter 3, If Yellow enter 4, If Green enter 5, If Blue enter 6, If Violet enter 7, If Gray enter 8, If White enter 9.” read secondResistor Print “Color of third resistor? If Black enter 0, If Brown enter 1, If Red enter 2, If Orange enter 3, If Yellow enter 4, If Green enter 5, If Blue enter 6, If Violet enter 7.” print “Error: Enter Value < Than 7” Yes read thirdResistor thirdResistor>7 No firstResistor=firstResistor*10 thirdResistor=10^thirdResistor totalResist...
View Full Document

This note was uploaded on 01/31/2013 for the course COMP SCI 111 taught by Professor Louissteinberg during the Spring '12 term at Rutgers.

Ask a homework question - tutors are online