Write a function in Java that implements the following logic: Given a string name, e.g. "Bob", return a greeting of the form "Hello...
CodeWorkout Exercise - Types & Data
Score: 0 / 8.0
Please complete the following exercises about Types & Data.
Exercises
0
/ 1.0
0
/ 1.0
Declare a String variable, name it student
and assign it the value "Malcolm".
0
/ 1.0
Write a Java statement to declare an integer variable with the name hours
that has an initial value of 7.
0
/ 1.0
Given the name of a person and a phrase that person said, return a String
in the following format, including the quotation marks:
...
0
/ 1.0
Create a print line that sums variable a and variable b.
0
/ 1.0
Complete this method so it prints out the difference between the two parameters.
0
/ 1.0
What datatype should you use to store a Middle initial?
0
/ 1.0
What is the value of variable donuts after the following code executes?
int donuts = 6; donuts = donuts + 3; donuts = donuts * donuts;