Write a program to compute the circular convolution of two length-N sequences via the DFT ap-
proach. Use your DFT and IDFT programs for this purpose.
Use your programs (using calling function) to
nd the circular convolution of the following pairs of sequences:
(i) x(n) = [1; 3;-2; 4; 7], h(n) = [3; 1; 21;-3]
(ii) x(n) = n; h(n) = (0:5)^n, 0 < n <10
differentiate between a client network computing and peer to peer processing.
Write a program that uses three structures Dimensions, Results and Rectangle. The Dimension structure stores length and width, Result structure stores area and perimeter and Rectangle stores two variables of Dimension and Results. The program declares a variable of type Rectangle, inputs length, width, calculates area and width and then displays the result.
Orchid bank is a private sector bank which has branches in different countries. Orchid bank uses database for the storage of clients’ data because databases can store very large numbers of records efficiently. By using database, we can add, edit or delete data easily. It is more efficient in data searching and data sorting. Database can be used by more than one user to access same data simultaneously.
As a database designer, which type of database (distributed database & centralized database) you will use in this scenario to ensure data consistency, easy management and easy backup?
Also, what you think that replication of database suitable in the above given scenario?
Orchid bank is a private sector bank which has branches in different countries. Orchid bank uses database for the storage of clients’ data because databases can store very large numbers of records efficiently. By using database, we can add, edit or delete data easily. It is more efficient in data searching and data sorting. Database can be used by more than one user to access same data simultaneously.
As a database designer, which type of database (distributed database & centralized database) you will use in this scenario to ensure data consistency, easy management and easy backup?
Also, what you think that replication of database suitable in the above given scenario?
Discuss the addressing modes of following instructions
A. STA 2001H
B. LHLD 3000H
C. RAR
D. MVI B,31H
Write an assembly program for division of two eight bit no. at 4000H=2CH and 4001H=30H and
save result at 4002H=quotient and 4003H= remainder.
Senerio:
ATM (Automated Teller Machine) machines are electronic outlets that allow customers to do their basic transactions without interaction of bank’s representative. While programming this ATM in C++, We have created a class named CUSTOMER which stores customer data (i.e. name, NIC, age, address, account balance and transaction history etc.). There is a friend function that wants to access some private information of the class.
Question:
Being a C++ developer, analyze the whole scenario, what do you think, does a friend function contradict the rules of Encapsulation?
Give your opinion in yes or no with strong reasons.
Assign the size of userInput to stringSize. Ex: if userInput is "Hello", output is:
Size of userInput: 5#include <iostream>
#include <string>
using namespace std;
int main() {
string userInput;
int stringSize;
getline(cin, userInput);
/* Your solution goes here */
cout << "Size of userInput: " << stringSize << endl;
return 0;
}