Answer is :
cout << "you say\nyes and";
cout <<" I\nsay No.";
Sample code to test:
#include <iostream>
using namespace std;
int main()
{
cout << "you say\nyes and";
cout <<" I\nsay No.";
return 0;
}
Output:
Which one of the following sets of statements would produce the output shown? You say yes...
Which of the following 6-bit inputs to the saturator would produce an output of 7 on the seven segment display? Select one: a. 000010 b. 111011 C. 010101 d. 000110 Check
I am having trouble trying to output my file Lab13.txt. It will say that everything is correct but won't output what is in the file. Please Help Write a program that will input data from the file Lab13.txt(downloadable file); a name, telephone number, and email address. Store the data in a simple local array to the main module, then sort the array by the names. You should have several functions that pass data by reference. Hint: make your array large...
Using a single cout statement, write a c++ program to produce the following output. "#//'Baton // @ \\ Rouge'\\#" Write a c++ program, using one cout statement that will output the following: ”\%”BEARS”/%”
Would you consider running for local or state office? If yes, which one and why? If not, why not? At least a paragraph with references.
5. What is the output of the following section of a program int a[10] = {2,5,1,6,x,7,0,3,y,8}; for(int i=0;i<9;i++) a[i]=a[i+1]; for(int i=0;i<8;i++) cout<<a[i]<<” “; cout<<endl; 6. What will be shown on the output screen after following statements are executed? char a[ ]="I have a part time job"; int c=x, i=0 while(a[i]!=’\0’){ if(a[i]==' '){ c++; cout<<endl; } else cout<<a[i]; i++; } cout<<c<<endl; 7. After following statements are executed, what are the outputs char a[ ]= "Fresno City College"; for (i...
Assume that a firm has a fixed-proportions production function, in which one unit of output is produced using one worker and two units of capital. If the firm has an extra worker, say two workers, and no more capital, it still can produce only one unit of output. Similarly, an extra unit of capital does the firm no good.a) Draw the isoquants for this production function.b) Draw the total product, average product, and marginal product of labor curves (you will...
24) Would the following hydrobromination reaction produce a racemic mixture? HBr A. Yes B. No 25) What is(are) the expected product(s) of the following Sn2 reaction? o.. SN2 Br + oH - on НОН но н A. Only B. Only II C. I and II D. None
Which of the the following statements is true in regard to limited data sets?A.Limited data sets contain some individual identifiers.B.Patients must authorize the use of limited data sets.C. Those who recieve limited data sets can pass them on without restrictions.D.Limited data sets can't include a patients city, state, age, or birth date.
Given the following code namespace globalType { void.printResult(): } which of the following statements is needed to access printResult? a. globalType.printResult(): b. globalType:: printResult: c. globalType.printResults(): d. globalType: printResult(): Consider the following statements: struct rectangleData { double length: double width: double area: double perimeter: }: rectangleData bigRect: Which of the following statements is valid in C++? a. cin > > bigRect:: length: b. cout < < bigRect.length: c. cout < < bigRect: d. cout < < length: What is the...
The boxplots shown below summarize two data sets, I and II. Based on the boxplots, which of the following statements about these two data sets CANNOT be justified? a) The interquartile range of data set I is equal to the interquartile range of data set II b) Data set 1 and data set II have the same number of data points. c) The range of data set I is greater than the range of data set IL. ) The median...