The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Answer the questions in the document, it's about Input and Arithmetic Operators
Â
Â
Â
CMS 167 Homework 2: Input and ArithmeTc OperatorsInstructor: Due Date: Monday, September 12Name: __________________________________________________________Please sign the honor pledge below:On my honor, I have not given, nor received, nor witnessed any unauthorized assistance on this work.Your signature:___________________________________Part 1:Vocabulary ( 8 pts)1.List Java’s8 primiTve data types:Part 2: Declaring variables (4 pts. each)2.Write a statement to declare afoat variable namedweightand give it the value 115.5;3.Write a statement to assign the value 10 to the variable s, which has already been declared (seebelow).int s;4.Write a statement to declare acharvariable namedleTerBand assign it the value B.5.Write a statement to declare abooleanvariable namedisRainingand assign it the valuetrue.Part 3: CalculaTons (4 pts. each )6.____will be the value of a aFer this statement: int a = 9 / 5;7.____will be the value of b aFer this statement: int b = 9 %5;8.____ will be the value of d aFer this statement:double d = 9 / 5;9.____ will be the value of c aFer this statement: int c = 12 / 6 * 3;10. ____ will be the value of e aFer this statement: int e = 12 / ( 6 * 3 );11. ____ will be the value of f aFer this statement: int f =6 + 6 / 2;12. ____ will be the value of g aFer this statement:int g = ( 6 + 6 ) / 2;
Attachments:
-----------