01:198:111 Lecture Notes - Lecture 6: Java Syntax, Multiplication Table

74 views1 pages
cyansea-lion159 and 56 others unlocked
01:198:111 Full Course Notes
47
01:198:111 Full Course Notes
Verified Note
47 documents

Document Summary

*your peer leader will leave time at the end to ask questions about your upcoming midterm. The midterm will cover the following topics: binary numbers, truth tables/boolean expressions, basic. Java syntax, variable typing, arithmetic operations, calling methods (e. g. io. readint(), math. sqrt(), etc), Write the method signature for a method which takes in 2 doubles and returns their average. Write the (cid:373)ethod sig(cid:374)ature for a (cid:373)ethod which takes i(cid:374) the user"s (cid:374)a(cid:373)e a(cid:374)d age a(cid:374)d returns true if they are an adult. Write the (cid:373)ethod sig(cid:374)ature for a (cid:373)ethod which takes i(cid:374) the user"s first (cid:374)a(cid:373)e a(cid:374)d last (cid:374)a(cid:373)e as two para(cid:373)eters a(cid:374)d retur(cid:374)s their (cid:374)a(cid:373)e as (cid:862)last, first(cid:863). Write a method called printtable which takes an integer as a parameter and prints out a multiplication table up to that number. Write a method called gcf in methods. java which takes in 2 integers as parameters and returns their gcf.

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

Related Questions