Question: Create declaration statements for the following variables: item, price, and quantity. Create the variables with the appropriate data types given the following criteria: ...........The item
Create declaration statements for the following variables: item, price, and quantity. Create the variables with the appropriate data types given the following criteria: ...........The item variable must be able to hold any single character. ...........The price variable needs to be able to store money values such as 14.33 or 9.09. ...........The quantity variable needs to be able to store a whole number such as 1, 2, or 10. ...........The name variable must hold any number of characters. This can be done in 4 lines of code. Use valid java syntax and code structure. Initialize your variables to appropriate values.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
