Using the hardware given to the right, show the addition of two numbers in steps as it would take place.
A = 18.625, B = 2.125
Show the steps in detail. Also show the contents of different registers (R1, .. R8) and control bits (C1, .. C9). It is noted that Control bits (C1, ..
C9) could be either 1 or 0 and you can assign the logic levels for particular operations.
You can present your answer preferably in a table. (If you wish, you can prepare your own Table to present your answer in better way)Time Step-1 operation R1 R2 .. .. C1 C2 … Comments, if any
Time Step-2
……
Hollow Rectangle - 2
Write a program to print a rectangle pattern of
The first line of input is an integer
In the given example,
3 rows and 10 columns.Therefore, the output should be
Striped Rectangle
Given an integer number
The first line of input is an integer
In the given example the striped rectangular pattern of
7 rows and 5 columns. Therefore, the output should be
Sum of Even numbers
Write a program to find the sum of even numbers in first N natural numbers.
The input is an integer N.
The output should be an integer containing the sum of even numbers upto the given number.
In the given example
N = 5, the even natural numbers below 5 are 2, 4 Then total = 2 + 4
So, the output should be
6.
Remove Vowels in a Sentence
You are given a sentence. Write a program to remove all the vowels in the given sentence.
The first line of input is a string
In the example given a sentence
Hello World, the sentence contains vowels e, o.So, the output should be
Hll Wrld
Letter, Digit or Special Character
You are given a character as input. Check if the given input is a
The first line of input is a single character
In the given example character is
9. So, the output should be Digit.
Palindrome - 3
You are given a string, write a program to find whether the string is palindrome or not.
The first line of input is a string.
The output should be
In the given example, the string
No lemon no melon is a palindrome as we are ignoring spaces. So, the output should be True.
Write a function in this called nine_lines that uses the function three_lines to print a total of nine lines .
Develop an OOP to find the sum of “n” terms of the following series.
1^3 + 3 x 2^2 + 3^3 + 3 x 4^2 + 5^3 + 3 x 6^2 + . . . . .
Show what happens when a variable defined outside a function has the same name as a local variable inside a function . Explain what happens to the value of each variable as the program runs .