Assignment 1
Assignment 1
Assignment 1
Section B
Assignment # 1
Deadline: 5:00 PM Friday, September 30, 2016
1. Using paper and pen, manually convert the following decimal numbers into binary
numbers. Show the process that you used for each conversion.
6. Suppose you are part of a software development team and you are asked to draw a
flow chart of an algorithm.
Algorithm’s Details: The given algorithm is taking a number n as input from user
and print the sum of even and odd numbers from 1 to n. The algorithm scans from 1
to n. It checks whether the number is even or odd. If number is even, add that number
in SUM_EVEN and if it is odd, then add it in SUM_ODD and increment the value of
n by 1.
Instructions:
1. Your task is to draw the Flow chart of the given algorithm.
2. Check the symbols used for each building block of an algorithm for flowchart.
3. Use appropriate symbols for each type of statement.
7. There are many situations in which your computer does not have enough physical
memory (RAM) to meet the requirements of a software program. For example,
assume an older desktop has 256MB of physical RAM installed. How would a
program that requires 512 MB of RAM run on your machine? Explain your answer ?