What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }
3 10735What are all the points to keep in consideration, while we are migrating the Universes,Reports from BO5.1.6 to BO 6.5? Is is compatible to migrate like this? Does it effect the filters in Reports and Join in the Universe?
2040Can we display only integers / numbers through the message box? Is there any constraint to do so?
8 14693what could be the problem if invoice_id is same in ap_invoices_all and ap_invoices_interface. while the Ord_id , invoice_num, and other things is diffrent .
3 17049How do you test pop up with LR? My whole application running on pop up. Its a JSP page written on pop up window.
1 7538Post New Infosys Interview Questions
what r the diffence between QTP 8.2 & QTP9.0?
DHPL is a small sized firm manufacturing hand tools. It manufacturing plan is situated in haryana. The company's sales in the year ending on 31st march 2007 were Rs.1000 million(Rs.100 crore) on an asset base of Rs.650 million. The net profit of the company was Rs.76 million. The management of the company wants to improve profitability further. The required rate of the company is 14 percent.The company is currently considering an investment proposal. One is to expand its manufacturing capacity. The estimated cost of the new equipment is Rs.250 million. It is expected to have an economic life of 10 years. The accountant forecasts that net cash inflows would be Rs.45 million per annum for the first three years, Rs.68 million per annum from year four to year eight and for the remaining two years Rs.30 million per annum. The plant can be sold for Rs.200 million: (a) The company can borrow funds from a nationalized bank at the interest rate of 14 percent for 10 years. It will be required to pay equal annum installment of interest and repayment of principal. (b) A financial institution has offered to lend money to DHPL at 13.5 per annum but it needs to pay equated quarterly installment of interest and repayment of principal. Questions: (1) Should the company expand its capacity? show the computation of NPV. (2) What is the annual installment of bank loan? (3) calculate the quarterly installment of the financial institution loan. (4) should the company borrow from the bank of from the financial institution?
How can one create a VM in Azure CLI?
What are the different steps involved in object oriented analysis?
What are the major features in different versions of spring framework?
What is amps ?
List down the major benefits of using node.js?
What are the major features of ms word?
How does mvc routing work?
how can i prepare for the apgenco can u send old qps to jeedipally@gmail.com
Is uri the same as url?
How does master data differ from transaction data in co? : co- general controlling
What is Spark SQL?
Tell me are other dental hygiene products necessary?
What are the two parts of design view?