CSC 160-2 Lab 7-2 Problem-Solving Lab

This lab consists of two assignments to help you develop your problem-solving skills. You are to solve two problem as described below.

Submission

Create a project named LastNameLab7_2 (Substitute your last name). Write code to solve the first problem. For the second problem, right click on the project node, and select New..., then Other..., then Category Java, and file type Java Main Class. Name the new class ProblemB. Type your code for the solution to the second problem in this file. To run it, right-click on the file in the project pane, and select Run File.

Lab7_2A: Pascal's triangle

Solve Problem 2 on the 2001 Acca Programming Competition. However, make the following modification to the description of the problem: keep asking for a row to be printed until 0 is entered. Thus, a sample run might look like this

	Enter row to be printed: 4
	The row is 1 3 3 1
	Enter row to be printed: 6
	The row is 1 5 10 10 5  1
	Enter row to be printed: 0	
	

Lab7_2B: Another sequence

Solve Problem 2 on the 2001 Acca Programming Competition.

Due Date: Both of these are due Monday of Week 8.