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, 22.06.2019 15:10
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
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
Questions on the website: 13722367