Question: Lab # 8 Part 1 Based on your preference last week, you will complete this assignment individually or in a group. Each group will work

Lab #8 Part 1
Based on your preference last week, you will complete this assignment individually or in a
group.
Each group will work on one program from the Programs list at the bottom of this assignment
sheet. The professor will send you a course message with your assigned problems. Source code
for each program is attached to the lab assignment in Blackboard.
If you are working in a group, you can collaborate with other members of your group to answer
the questions, but you must submit your own copy of the answers via Blackboard.
Why We Are Doing This
This lab will help you practice reading unfamiliar Java code and identifying important elements.
This skill appears in the syllabus as Student Learning Outcome #3. Identifying elements is a
basic step in figuring out what a program does and how it works. As your knowledge and
experience increase, you will also be able to form an opinion about whether a program is written
correctly based on what its supposed to do as well as plan how to make improvements to it.
Detailed Instructions
For the program assigned to you or your group, review the code and answer questions 1-8 below.
Then paste the program into jDoodle, run the program by pressing the Execute button, and
answer question 9.
1. What variables are declared? List each variables name and type.
2. Are any of the variables also attributes? List each attribute and its class. (Hint:
Remember attributes are variables declared inside a class but not inside a method.)
3. What constants are declared? List each constants name and type.
4. What classes are declared? List each class name.
5. What methods are declared? List each methods name.
6. For each method, what type of value/object does it return?
7. Are there any method calls? List the statement containing each call.
8. Does the program output anything to the user? (Hint: look for System.out.print()
or System.out.println().)
9. Paste the program into the online compiler and run it. What does it do?(Hint: be sure
to turn on the Interactive switch in jDoodle.)
Programs
1. PalindromeNumber.java
2. SumOfDigits.java
3. VowelsInAString.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!