3) What will be the output of the following programs: a) #include Using namespace std; int...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3) What will be the output of the following programs: a) #include <iostream> Using namespace std; int main() { } int x = 20, y = 40, z = 45; if(x>y &&x>Z) cout <<"biggest = "<< x <<endl; else if (y > x &&y>z) } cout<< "biggest = "<<y << endl; else if (z > x && z>y) cout<<"biggest = "<< > << endl; return 0; b) # include <iostream> Using namespace std; int main() { while ('a' < 'b') cout<<"malayalam is a palindrome" << endl; return 0; 3) What will be the output of the following programs: a) #include <iostream> Using namespace std; int main() { } int x = 20, y = 40, z = 45; if(x>y &&x>Z) cout <<"biggest = "<< x <<endl; else if (y > x &&y>z) } cout<< "biggest = "<<y << endl; else if (z > x && z>y) cout<<"biggest = "<< > << endl; return 0; b) # include <iostream> Using namespace std; int main() { while ('a' < 'b') cout<<"malayalam is a palindrome" << endl; return 0;
Expert Answer:
Answer rating: 100% (QA)
a The first program initializes three integer variables x y and z with the values 20 40 and 45 respe... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Question 2: What are two reasons that topology matters in Ethereum? For each one, give a one-sentence summary of the problem and how topology plays a role.
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Randy and Vonny were coconspirators involved in a drug distribution conspiracy. Randy was caught by police officers and was eager to make a deal that would allow him to remain on the street and act...
-
Data obtained from asking the wrong questions at the wrong time or in the wrong place can lead to misleading summary statistics. Explain why the following collection procedures are likely to produce...
-
This chapter discusses two areas of accounting: management and financial accounting. Contrast management and financial accounting with respect to the following: Overall purpose Type of financial...
-
True Plumb Surveyors provides survey work for construction projects. The office staff use office supplies, while surveying crews use field supplies. Purchases on account completed by True Plumb...
-
Tyrell has worked his way up from sales associate to department supervisor for a large suburban discount store. Now he has been offered a higher position in Atlanta. Currently, Tyrell earns about...
-
Lower-of-Cost-or-Market Sedato Company follows the practice of pricing its inventory at the lower-of-cost-or-market, on an individual-item basis. From the information above, determine the amount of...
-
A business issued a 180-day, 8% note for $28,000 to a creditor for an accounts payable. Illustrate the effects on the accounts and financial statements of recording (a) the issuance of the note and...
-
The following 2 employees are PAID monthly and this is the last payday of the year (Dec). Each employee's taxable part of their wages is listed below. The company is located in Henry County, IN 1....
-
Summarize how the researcher analyzes the data in this research-based article " The effect of progressive relaxation exercise on dyspnea and anxiety levels in individuals with COPD: A randomized...
-
The following financial information is for Alpha Corporation for the fiscal years ending 2017 & 2016 (all balances are normal): Item/Account 2017 2016 Accounts Receivable $9,800 $9,400 Inventory...
-
During the current year, merchandise is sold for $8,560,000. The cost of the goods sold is $6,077,600. This information has been collected in the Microsoft Excel Online file. Open the spreadsheet,...
-
Under HIPAA, which is a reason for releasing or disclosing patient information? For how long a heart lung machine can be used?
-
The main reason to participate in the underground economy is to avoid Blank______. Multiple choice question. reporting actual savings and paying interest engaging in illegal activities and paying...
-
On December 31, 2018, the following pension-related data were available for CPS Industries' noncontributory, defined benefit pension plan: Projected Benefit Obligation ($ in millions) Balance,...
-
Question 12 4 pts Bega Products, Inc., is considering a new product launch. The firm expects to have annual operating cash flow of $4 million for the next eight years. The company uses a discount...
-
Prairie Outfitters, Inc., a retailer, accepts paymnent through credit cards. During August, credit card sales amounted to $12,000. The processor charges a 3% fee. Assuming that the credit card...
-
If necessary, create a new project named Advanced25 Project and save it in the Cpp8\Chap14 folder. Also create a new source file named Advanced25.cpp. If you are using Microsoft Visual C++, copy the...
-
Use the nums array to answer. The array was declared using the int nums[4] = {10, 5, 7, 2}; statement. The x and total variables are int variables and are initialized to 0. The avg variable is a...
-
Use the sales array to answer. The array was declared using the int sales[5] = {10000, 12000, 900, 500, 20000}; statement. The sales[3] += 10; statement will replace the number _____________________....
-
7. Blondek and Tull were two employees of an American company called Eagle Bus. They hoped that the Saskatchewan provincial government would award Eagle a contract for buses. To bolster their...
-
9. ROLE REVERSAL Draft an essay or short-answer question that involves a dispute brought to the WTO on one of these issues: dumping, nontariff barriers, or intellectual property.
-
8. Richard Johnson, an American citizen, was a highly trained electrical engineer who had worked for Hughes Aircraft and Norcroft Corp. He strongly believed in the cause of the Provisional Irish...
Study smarter with the SolutionInn App