CSE 142 Lecture 8: Animations, Math.max, and Calculations

98 views6 pages
Verified Note
13 Oct 2018
School
Course

Document Summary

13 for ( int i = 0; i < 50; i++) { 17 // if you wanna make it slower, make change the 10. Math. max(7, 10, 99) interactions:1:5:1:5: cannot find symbol: method max(int,int,int) in class java. lang. math. // **note: you cannot take the max or min of three values! Only 2 parameters allowed in math. max and math. min. 9 // you won"t see the answer value for the math. max(x, y) part. 10 // you must print it out because it automatically returns the answer. 11 // you can"t just call the math method! 2 public static void main(string[] args) { 8 public static ______ hw score( int score1, int poss1, int socre2, int poss2, 9 int score3, int poss3, int score4, int poss4) { 10 int totalscore = score1 + score2 + score3 + score4; 11 int totalposs = poss1 + poss2 + poss3 + poss4; 13 // (double) turns the int value from totalscore & totalposs into a double.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents