01:198:111 Lecture Notes - Lecture 5: Java Syntax
cyansea-lion159 and 56 others unlocked
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 a for-loop that does the above with x being a user input. Write the same code using a while-loop and a do-while-loop. Write a program which computes the average of multiple test scores. Ask the user for how many test scores they are going to input. *you must use a while-loop in your program. Write a program that draws a horizontal pyramid of a height specified by a user. Write a program that draws the same pyramid as in the previous exercise but vertically.