Write a program called yourname, Christmas Tree.cpp. Write a program that ask how many rows(levels) of Christmas tree the user wants to print, and the user can see a Christmas tree (tree part with the rows they input) on the screen. You can design how large the base of the Christmas tree will be and the position of this Christmas tree shown on the screen (The reference outputs show below). 10 rows tree part. Christmas Tree Program How many levels Christmas tree you want to get: 18 *** ***** ******* ********

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question
Write a program called yourname, Christmas Tree.cpp.
Write a program that ask how many rows(levels) of Christmas tree the user wants to print,
and the user can see a Christmas tree (tree part with the rows they input) on the screen.
You can design how large the base of the Christmas tree will be and the position of this
Christmas tree shown on the screen (The reference outputs show below).
10 rows tree
part.
Base part
4 rows tree part.
Base part
Christmas Tree Program
How many levels Christmas tree you want to get: 10
********
****
Christmas Tree Program
How many levels Christmas tree you want to get: 4
*******
***
Transcribed Image Text:Write a program called yourname, Christmas Tree.cpp. Write a program that ask how many rows(levels) of Christmas tree the user wants to print, and the user can see a Christmas tree (tree part with the rows they input) on the screen. You can design how large the base of the Christmas tree will be and the position of this Christmas tree shown on the screen (The reference outputs show below). 10 rows tree part. Base part 4 rows tree part. Base part Christmas Tree Program How many levels Christmas tree you want to get: 10 ******** **** Christmas Tree Program How many levels Christmas tree you want to get: 4 ******* ***
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Concept of Threads
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT