CR - Open-Ended Activity (Lesson)

APCompSci_LessonTopBanner.png

Open-Ended Activity

Introduction

In this activity you will create your own program about anything that interests you. You may use the Review class or explore an area of your own interest.

Once you have written your program you will answer a series of questions demonstrating your understanding of the concepts and describing your work. At the end of the lesson you will submit the java file for your program and the answers to the question in this lesson.

Program Project

This open-ended activity requires you to develop your own program. Your program can use the Review class, or it can be based on anything that you find interesting.

If you use the Review class, be sure to add code to meet the project requirements. Previously written code cannot count toward meeting the assignment requirements.

Requirements

  • Write a program with a main method
  • Create a least one new method which is called from main that takes at least one parameter
  • Call at least two distinct methods in the String class
  • Utilize conditional statements or compound boolean expressions
  • Utilize iteration

This lab content is from the CollegeBoard Links to an external site..

Program Review

Test your program and correct any errors. Once your program has been implemented and tested, answer the following questions. These answers will be submitted as part of your project.

  1. Why did you choose to implement this program?
  2. Describe the development process used in the completion of the project.
  3. Provide the method header for a method that you implemented that takes at least one parameter. Explain why you chose the given parameter(s), including type, and why you made the method static or non-static.
  4. Provide the code segment(s) where two distinct methods in the String class are called. Describe what each method call is doing, and what is being returned (if anything) by the method calls.
  5. Copy and paste one code segment that uses nested conditional statements or compound boolean expressions. What is one other way that this code would be written to achieve the same result? Provide an equivalent code segment.
  6. Copy and paste one code segment that uses iteration. Describe how the loop you used works and provide an equivalent code segment that uses a different type of loop.

APCompSci_LessonBottomBanner.pngIMAGES CREATED BY GAVS