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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
question
Computers and Technology, 24.06.2019 21:50
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
He 98 pointsss how has computers changed over the years? how can they be used now? give details and such!
Answers: 1
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
question
Mathematics, 07.07.2021 05:00
Questions on the website: 13722360