CAS CS 111 Study Guide - Midterm Guide: Substring

143 views3 pages
cherryberry1035 and 38883 others unlocked
CAS CS 111 Full Course Notes
48
CAS CS 111 Full Course Notes
Verified Note
48 documents

Document Summary

Complete syntax for the header of a static method: public static ( , , ) built in math class contains static methods for math operations returns result of applying the operation to the parameters ex. round(double value) returns result of rounding value to nearest int abs(double value) returns absolute value of value pow(double base, double expon) returns result of raising base to expon power sqrt(double value) returns square root of a value. exactly one has to be true, so the last condition can be omitted sequential if statements executes any number of several conditional blocks if else if statement ending in else if executes at most one of several blocks if else if ending in just else executes exactly one of several blocks to eliminate errors, declare variables outside of true blocks as soon as one return statement is reached, method"s execution stops and specified value is returned.

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

Related Documents

Related Questions