declare a variable with the appropriate data type to have a statement that says: “Good Morning.” Use the variable you created in the...
Search Results
Searching for: variables
Individual Exercises
This method returns the price of bread. Declare a variable called “price of bread” using camel case and the correct data type in the...
What datatype should you use to store a Middle initial?
What is the value of variable donuts after the following code executes?
int donuts = 6; donuts = donuts + 3; donuts = donuts * donuts; 
What is the scope of the variable spicy?
int peper = 7; int cumin = 17; if ((pepper>5) && (cumin < 20)) { int spicy = 10;...
What is the scope of the variable cumin?
int peper = 7; int cumin = 17; if ((pepper>5) && (cumin < 20)) { int spicy = 10;...
Replace the /*date type*/ comments with the appropriate data types for each variable.
Replace the /*data type*/ comments with the appropriate data types for each variable.
For the question below assume the following implementation of the Employee class
public static class Employee{ public int ID; public int...
For the question below assume the following implementation of the Employee class
public static class Employee{ public int ID; public int...
Write a program that stores the following information about a soccer player in variables with the following identifiers and corresponding...
Write a function in Java that calculates a total cost with tax and tip. Given three doubles: basePrice, taxRate (as a decimal, e.g., 0.08...
Write a function in Java that calculates what grade a student needs on the next quiz to reach a target average. Given three ints:...
Write a function in Java that calculates the average speed of a trip. Given four ints: distance (miles), days, hours, and minutes;
...
Write a function in Java that calculates the difference between the volumes of two cubes. Given two doubles: sideLength1 and sideLength2...