_Lab Portfolio 3

pdf

School

Walden University *

*We aren’t endorsed by this school

Course

6115

Subject

Computer Science

Date

Feb 20, 2024

Type

pdf

Pages

5

Uploaded by JusticeBook6916

Report
ITSC 1213 Lab Portfolio Context - Module Title and Objectives Be able to write a loop in Java with and without the Python equivalent Be able to write a conditional in Java with and without the Python equivalent Know how to make and use ArrayLists Additional Problem Set (available on CodingRooms under the appropriate lab module) Completion Status - Fully Difficulty Rating - Neutral
ITSC 1213 Lab Portfolio Problem description Problem 4 in our portfolio lab problems asked us to write the code below to print 55555, 4444, 333, 22, 1 with each on a different line. Solution Explain the steps you have taken or tried to arrive at the final, polished solution. What did you get stuck on? How did you get unstuck? Design - Describe the classes you used and what each did To get the final solution I created a nested loop within the main method. The outer loop initializes the variable x to 5 and decrements it by 1 in each iteration until it becomes 1. The inner loop initializes the variable y to the value of x and decrements it by 1 in each iteration until it becomes 0. I did not get stuck anywhere, I had a couple of error messages pop up the first time I tried to run my code, but I was easily able to fix them.
ITSC 1213 Lab Portfolio Verification / Evidence that it works What things did you try to ensure your solution works as intended? If you implemented a program did you use the program visualizer or created environment diagrams. Make connections between your process and the learning objectives for this week. Execution sample To make sure my code gave me the solution I wanted, I made sure to run the code, and fix any errors that popped up. This problem relates to the learning objective be able to write a loop in Java without the Python equivalent, because we had to use a for loop in our problem.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
ITSC 1213 Lab Portfolio Human Credits Have you collaborated with another human on this assignment? [ ] Yes [x ] No If your answer is “Yes”, please provide details on how this collaboration contributed to your learning experience.
ITSC 1213 Lab Portfolio AI Credits Have you used an AI-powered tool or application to assist you with this assignment? [ ] Yes [ x ] No If your answer is “Yes”, please provide details on how the AI tool contributed to your learning experience. Feel free to include screenshots of your collaboration with AI.