Lab4-701 F11

# Lab4-701 F11 - ENGR 1412 INTRODUCTION TO COMPUTER...

This preview shows pages 1–2. Sign up to view the full content.

ENGR 1412 – INTRODUCTION TO COMPUTER PROGRAMMING FALL 2011 Additional Project#3 Tasks 1. Draw a flowchart (or write an algorithm) to convert a binary number with a maximum of 32 digits to its decimal equivalent. Explanation: Project 3 required to write a program to determine the decimal equivalent of a four digit binary number. This problem requires you to write down the logic (or list of steps) that would be required to perform the conversion for a binary input with up to 32 digits. One approach to the problem would be to continue with the formulas devised in project 2 to separate out the digits. However, this would make the program extremely long and tedious. In this problem, you need to find a set of common steps that can be repeated over multiple times to separate out the digits and perform the conversion. Given below is an example algorithm and flowchart to add 100 numbers entered by the user. Program not required

This preview has intentionally blurred sections. Sign up to view the full version.

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

## This note was uploaded on 10/12/2011 for the course ENGR 1412 taught by Professor Staff during the Fall '08 term at Oklahoma State.

### Page1 / 2

Lab4-701 F11 - ENGR 1412 INTRODUCTION TO COMPUTER...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online