✍️ Get Writing Help
WhatsApp

December 2020

What is the output of following statements?

Suppose x, y, and z are int variables and x = 18, y = 5, andΒ  z = 4. What is the output of each of the following statements?Β (3, 4, 10) a. cout b. cout c. cout << ” product=”” of=”” β€œ=””>< x=””>< β€œ=”” and=”” β€œ=””>< z=””>< β€œ=”” is=”” ” =””>< x=”” *=”” z=””>< endl;=””> d. […]

What is the output of following statements? Read More Β»

Variables

Suppose a and b are int variables, c is a double variable, and a = 25, b = 20, and c = 5.0. What is the output of the following statements?Β Β (3, 4, 10) a. cout < a=”” *=”” 2=”” *=”” b=””>< endl;=””> b. cout < a=”” +=”” b=”” 2.0=”” +=”” 1.5=”” *=”” c=””>< endl;=”” c.=””

Variables Read More Β»

Outputs the newline character

a. Outputs the newline character. b. Outputs the tab character. c. Outputs double quotation mark. Which of the following are correct C11 statements?Β (10) a. cout < β€œprogramming=”” with=”” c++!”=””>< endl;=””> b. cout < β€œ=”” programming=”” β€œ=””>< β€œ=”” with=”” β€œ=””><> < β€œ=”” c++”=””>< endl;=””> c. cout < β€œ=”” programming=”” β€œ=””> Β < β€œ=”” with=”” c++!”=””>< ‘n’;=””> d.

Outputs the newline character Read More Β»

Preceding error

The following program has syntax errors. Correct them. On each successive line, assume that any preceding error has been corrected.Β (12) #include using std; const doubleΒ  DECIMAL# = 5.50; const string blanks = ”   β€œ int ()main Β int height, weight; double 10%discount double billingAmount$; double bonus; int hoursWorked = 45; Β  height = 6.2; weight =

Preceding error Read More Β»

Namespace

2.Β Β Β Β  What will be the output of each of the following program when it is executed. (a) #include using namespace std; struct A A() cout < β€œa”=””><> ; struct B : A B() ; cout < β€œb”=””><> struct C : B C() ; cout < β€œc”=””><> struct D : C D() ; cout < β€œd”=””><>

Namespace Read More Β»

Polymorphic technique

1.Β Β Β Β  Write an object-oriented program in C++ using polymorphic technique that prints either the number and its square or the number and its cube from 0 to 100. 2.Β Β Β Β  Modify the above program so that it prints the number, square and cubes of only even numbers from 0 to 100 with the same output. 3.Β Β Β Β 

Polymorphic technique Read More Β»

The keyboard

1.A program to demonstrate the writing of a set of lines to a specified file, namely, β€œtext.dat”. 2.A program to illustrate the writing of a set of lines to a user-defined file where name of the file is specified in the user-defined mode. 3.A program to read a set of lines from the keyboard and

The keyboard Read More Β»

Mystery

What is printed by the following program? Suppose the input is:Β Β (8, 10, 11) Miller 34 62.5 #include #include using namespace std; const double CONVERSION = 3.5;Β  int main()Β  Β const int TEMP = 23; string name; int id; int num; double decNum; double mysteryNum; cout < β€œenter=”” last=”” name:=”” β€œ;=””> cin >> name; cout < endl;=””

Mystery Read More Β»

String department

Rewrite the following program so that it is properly formatted.Β Β (13) #include #include using namespace std; const double X = 13.45; const int Y=18; const char STAR= ‘*’; int main() string employeeID; string department; int num; double salary;Β  cout<β€œenter employee=”” id:=”” β€œ;=””> cin>> employeeID; cout cout<β€œenter department:=”” β€œ;=””> cin >>department; cout cout<β€œenter a=”” positive=”” integer=”” less=””

String department Read More Β»

For faster services, inquiry aboutΒ  new assignments submission orΒ  follow ups on your assignments please text us/call us onΒ +1 (251) 265-5102