subject
Engineering, 25.02.2020 16:49 seanisom7

Which statement allows you to properly check the char variable code to determine whether it is equal to a "C" and then output "This is a check" and then advance to a new line?

(A) If code is equal to Y
cout < < 'This is a check\n":
(B) If (code = "Y")
cout < < 'This is a check" < < endl:
(C) If (code == 'Y')
cout < < 'This is a check\n":
(D) If (code == Y)
cout < < 'This is a check" < < endl:

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 19:10
Agas contained within a piston-cylinder assembly e end nation about same energy states, 1 and 2, where pi 10 bar, v undergoes two processes, a and b, between the sam 0.1 m3, ui-400 kj and p2 1 bar, v2 1.0 m2, u2 200 kj: process a: process from 1 to 2 during which the pressure- volume relation is pv constant process b: constant-volume process from state 1 to a pressure of 2 bar, followed by a linear pressure-volume process to +20 0 state 2 kinetic and potential energy effects can be ignored. for each of the processes a and b, (a) sketch the process on p-v coordinates, (b) evaluate the work, in kj, and (c) evaluate process the heat transfer, in kj
Answers: 2
question
Engineering, 04.07.2019 19:20
Asimple speed reducer is composed of 2 spur gears. the pinion gear has a pitch diameter of 0.75" and 36 teeth while the driven gear has a pitch diameter of 4.0" and 192 teeth. a)-what is the diametral pitch of each gear? b)-if an electric motor rotating ccw at 3000 rpm is coupled to the pinion, what is the rotational speed of the driven gear? c)-if the torque delivered to the pinion is 1 n-m, what is the torque on the driven gear? d)-what is the power transmitted by the gear train?
Answers: 1
question
Engineering, 06.07.2019 05:10
Determine the heat loss per hour from a wall of a build- ing when the wind is blowing parallel to its surface with a speed of 2 km/hour. the wall is 5 metre long and 3 metre high. tempe rature of the wall is 25°c and air temperature is 5°c.
Answers: 2
question
Engineering, 06.07.2019 05:10
An electric cable of 10 mm in diameter is to laid in atmosphere at 20°c. the estimated surface temperature of the cable due to heat generation is 65°c. find out ther maximum percentage, increese in heat dissipated when the wire is insulated with rubber having k =0155 w/m-k. take h=8.5w/m^2.k
Answers: 2
You know the right answer?
Which statement allows you to properly check the char variable code to determine whether it is equal...
Questions
question
Mathematics, 14.05.2020 08:57
question
Mathematics, 14.05.2020 08:57
question
Mathematics, 14.05.2020 08:57
Questions on the website: 13722359