Write an algorithm in pseudocode or a high-level programming language (such as Python) to convert a 6-bit binary string into its denary equivalent.
The algorithm must:
| Denary placeholder | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| Binary number | 1 | 0 | 1 | 1 | 0 | 1 |
| Denary value | 32 | 0 | 8 | 4 | 0 | 1 |
62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.