subject
Computers and Technology, 24.11.2021 15:20 hellion

Q9) What will be the value of x and y after executing of the following segment? (Show your work) int x =3, p=8;
double y;

x = (int)(11 % x + x+p / x+p * 3.9 - x);

y = x / p * x;

System. out. println("x = " + x);
System. out. println("y = " + y);

Q10) Consider the following Program. Evaluate x and y. (Show your work) (5 m)
int y; double x;
x = 10 % 4 + 13 / 2 + 1.5;

y = 3 * 3 * 2 - 11 / 5;

System. out. println("x = " + x);
System. out. println("y = " + y);
System. out. println("x + y = " + x + y);
System. out. println("x + y = " + (x + y) );
System. out. println("x + y = " + ( (int)x + y) );
Q11) Show the value of x after the statement below is performed.
x = ( 3 * 9 * ( 3 + ( 9 * 3 / 3) )%7 ) ;

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:10, BrianKeokot4534
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
image
Computers and Technology, 23.06.2019 20:40, bobby3350
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, kandi2565
What is a programming method that provides for interactive modules to a website?
Answers: 1
image
Computers and Technology, 24.06.2019 09:10, daedae11142
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
You know the right answer?
Q9) What will be the value of x and y after executing of the following segment? (Show your work) i...

Questions in other subjects:

Konu
Biology, 25.07.2019 14:30