Question: Write methods to do the following: a. Display three full lines of asterisks on the screen. b. Accept as an argument your age, and display
Write methods to do the following:
a. Display three full lines of asterisks on the screen.
b. Accept as an argument your age, and display that value along with an appropriate label.
c. Accept two floating-point values as arguments. Display the values formatted with three digits to the right of the decimal.
d. Accept three int arguments and return their sum.
e. Accept no arguments and return no values. Initialize a local Boolean variable to true. Have the method print the Boolean’s value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
