Please provide a answer for all the questions below: 1. Rewrite the following ex
ID: 3679334 • Letter: P
Question
Please provide a answer for all the questions below:
1. Rewrite the following expression using compound assignment operators.
2. Write down the output of the java code which are parts of program? (Carefully for trick)
3. Write down the output of the java code which are parts of program (Carefully for trick)
4. Find the valid names which we CANNOT declare as variable, method, or class names from the followingaccording to the Java syntax:
Counter, it8, 0employee, $3, $4dollar, Five_Cents, _score, _Scores, 7Dollars, 5dimes, 5_dollars, left hand, right eye, right_eye, Left_legs, one$, be$two, number$, GPA_.
5. What are the three Control Structure? And provide an example for each.
Explanation / Answer
1.
pass+=1
failure/=sum
student%=5
2.
The number is:1
The second is:2
the third is:4
3. The number is:2
The number is:1
Th number is:1
4. 0employees,7dollars,5dimes,5_dollors
if GPA_. then it is not valide(if there is no . then valide)
names having $ is automatic generated varibles and we can also use $ symbol for variable,function names
5.control structures: control structures are :
condition control structures:
IF trans_type = 'CR' THEN
iterative control structures:
FOR i IN 1..3 LOOP -- assign the values 1,2,3 to i
sequential control strucure:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.