Design a 3 bit Arithmetic Circuit and give its function table.
Write a program that display the sum of all odd numbers between a and b (inclusive). Where a and b are inputs from the user.
Thank you.
Write a program that prompt the user to input a four digit positive interger. The program then output the digit of the number, one digit per line. For example, if the input is 3245, the is
3
2
4
5
Thanks...
implement a list data structure discussed above including following operations using array adt. get() update() length() back() next() start() end() remove() add()
In a bank there are two types of transactions: credit and debit. All transactions are assigned an alphabetical ID. Credit transactions are assigned a vowel and debit transactions are assigned a consonant. To track transactions over a year, all the transaction IDs are combined to form a string of IDs for each customer. A customer wishes to know the number of times he made a debit transaction immediately after a credit transaction.
Write an algorithm to print the count of debit transactions that were made immediately after a credit transaction for that particular customer.
Input
The first line of the input consists of a string userString, representing the string of transaction IDs.
Output
Write a program in which there is a global variable, a local variable for main function and a variable in a nested scope inside main, with the same name. Print all the three variables.
Write a program to create a class ‘num’ which stores an integer number. Derive three classes from ‘num’ class namely ‘binary’, ‘octal’ and ‘hexa’ which store the binary, octal and hexadecimal equivalent of the number in ‘num’ class. Input an integer value and display its binary, octal and hexadecimal equivalent.
implement a list data structure discussed above including following operations using array adt. ◼ get() ◼ update() ◼ length() ◼ back() ◼ next() ◼ start() ◼ end() ◼ remove() ◼ add()
Suppose 8 bit registers have following contents
X=00001111
Y=10101010
Z= 11011011
W=00110011
What will be the 8 bit values of each register after execution of following sequences of
microoperations ?
X ← 𝑋 + 𝑌
Z←Z⋀ 𝑊, 𝑌 ← 𝑌 + 1
X←X-Z