Tuesday 15 December 2015

Voting Poll Script

as from the example in the lecture


Not much to say...as usual. My blogging-mojo has died off, or should I say...Never born..hehe. anyway. this script is for the voting poll example. Notice, (in the script) there is a #include <iomanip> .As it says, it manipulates the input and output stream. Its work is see on the setprecision(x) code. Clearly from the script, it makes the output to 3 s.f. neat trick.

For those who missed Intro to Comp Sci

I'd like to give a heads in for the questions that may come in the test on 5 Jan. {may might be definite..lol}.

--How many parts does a Turing Machine has--
4. Which are control unit, read/write head, tape which is divided into cells and the machine's alphabet.

--What sequences of steps can a Turing Machine do--
Observing a cell, writing a symbol, moving the read/write head and changing its states.

--Examples of States--
Start,Halt,add,overflow,carry,return etc...

like i said...jus a heads up.

#SwayQuote
Smooth wind, produce weak bamboo. Expect solid diamond 10miles deep.

return 0; 

No comments:

Post a Comment