| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Be able to explain what variables are. Understand variable types, allowed names, and valid values. Know how to create and use string, integer, floating-point, and boolean variables.
The lab template contains a program that prints the following:
2 tickets: $28.00 2 hotdogs, 2 popcorn, 2 sodas: $18.00 1 autographed baseball $45.00 real conversation with 11 year old son: priceless true
Ignore the code that you don't fully recognize and concentrate on changing the variables to alter the MasterCard Priceless script to say:
3 tickets: $42.00 3 hotdogs, 3 popcorn, 3 sodas: $27.00 2 autographed baseball $90.00 watching the Giants win: priceless false
Take note of the various variables and their data types. Write a brief summary in this section of the README.md file listing the:
Next give TWO example variable names and TWO example variable assignments that are WRONG and explain why.
Pick several of the Java format specifiers below and define variables of the correct type utilize sout and String.format to view the resulting formats.
| Back | FazBrowse Home | New Git URL |