Question: By using IDE PART 4-Recursion, up to 12 points In the language of an alien race, all words take the form of Blurbs. A Blurb
PART 4-Recursion, up to 12 points In the language of an alien race, all words take the form of Blurbs. A Blurb is a Whoozit followed by one or more Whatzits. A Whoozit is the character'x' followed by zero or more 'y's. A Whatzit is a 'q'followed by either a 'z' or a 'd', followed by a Whoozit. Design and implement a recursive program that generates random Blurbs in this alien language. Sample output: Output-CSC220 (run) un: How many blurbs would you like? 60 Blurb #1: xyyyqdxyyyyy Blurb 12: xyqzxy Blurb 3: xyyyyqzx Blurb #4: xyyyyqzxyyy Blurb #5: xyyqzxqzx BUILD SUCCESSFUL (total time: 3 seconds) 1 5 10 10 5 1 1 6 15 20 15 6 1 output, CSC220 Cran, Which line number of Pascal's Triangle? PART 5-Recursion, up to 10 Extra Credit points Another (y)y y Which ine nunber of Pascal's Triangle? 7 16 15 20 15 61 Design and implement a recursive program to determine other (g/b)7 y and print the Nth line of Pascal's Triangle (as shown above onwhach 3ine nunber ot Fascal's Triangle? as the right). Each interior value is the sum of the two values above it. Hint: use an array to store the values on each line. 114 91 364 1001 2002 3003 3432 3003 2002 1002 364 91 44 Another (y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
