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 # Part
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 # 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 below.
Then paste the program into jDoodle, run the program by pressing the Execute button, and
answer question
What variables are declared? List each variables name and type.
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.
What constants are declared? List each constants name and type.
What classes are declared? List each class name.
What methods are declared? List each methods name.
For each method, what type of valueobject does it return?
Are there any method calls? List the statement containing each call.
Does the program output anything to the user? Hint: look for System.out.print
or System.out.println
Paste the program into the online compiler and run it What does it doHint: be sure
to turn on the Interactive switch in jDoodle.
Programs
PalindromeNumber.java
SumOfDigits.java
VowelsInAString.java
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
