Thread: christmas tree in c programming using loops.

  1. #1
    Registered User poojaraghoo's Avatar
    Join Date
    Oct 2011
    Posts
    2

    Question christmas tree in c programming using loops.

    hello. i have just started doing programming and i have this number that i got stuck.can you please help me out and explain the basics to me...? here is the question:

    As a seasonal amusement some programmers like to print out a picture of a Chirstmas
    Tree looking like this.
    *
    ***
    *
    ***
    *****
    *
    ***
    *****
    *******
    |
    ---+---

    The tree consists of a series of tiers (three in this case) of increasing size. Write a
    program to produce such a display having prompted the user for the number of tiers.
    You could try putting a few baubles on the tree (using o or O).

    Last edited by poojaraghoo; 10-09-2011 at 08:20 AM.

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    52
    Read the homework policy....

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    10
    What is the problem with this assignment?

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by poojaraghoo View Post
    hello. i have just started doing programming and i have this number that i got stuck.can you please help me out and explain the basics to me...? here is the question:

    As a seasonal amusement some programmers like to print out a picture of a Chirstmas
    Tree looking like this.
    *
    ***
    *
    ***
    *****
    *
    ***
    *****
    *******
    |
    ---+---

    The tree consists of a series of tiers (three in this case) of increasing size. Write a
    program to produce such a display having prompted the user for the number of tiers.
    You could try putting a few baubles on the tree (using o or O).

    Read this ... Homework Policy

    First you need to spend a few minutes and figure out exactly what's being asked of you and "display a christmas tree" is a totally inadequate level of understanding... climb into the problem, understand it right down to the minutia. From there plan out how you would solve the problem in little tiny steps (like the computer does)... next write code from the plan and test it.

    If you get stuck (really stuck, not lazy stuck) you may post your code here and we'll see what we can do to help...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Programming Quiz - Loops
    By Sirion in forum C++ Programming
    Replies: 4
    Last Post: 07-21-2010, 04:07 PM
  2. Tree structure programming question help?
    By Rob4226 in forum C++ Programming
    Replies: 4
    Last Post: 04-08-2008, 08:35 PM
  3. Christmas Songs
    By Betazep in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 12-21-2001, 07:44 PM
  4. Merry Christmas!!
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-12-2001, 10:49 PM
  5. What I Wan't For Christmas!
    By no-one in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 09-26-2001, 05:00 PM