Thread: assignment

  1. #1
    Registered User
    Join Date
    Mar 2019
    Posts
    3

    assignment

    write a c program that takes the length and width then output rectangle similar to one below , the rectangle board must be * and filled with #(this question must be solved using loops)

    Please enter length and width: (this is the output)
    4 5
    *****
    *###*
    *###*
    *****


    guys help please how to solve this question

  2. #2
    Registered User
    Join Date
    Feb 2018
    Location
    San Diego, CA
    Posts
    63
    and you want us to do it for you or help you

  3. #3
    Registered User
    Join Date
    Mar 2019
    Posts
    3
    i will do it by my self just tell me the steps

  4. #4
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    677
    Quote Originally Posted by mohammedmaher View Post
    i will do it by my self just tell me the steps
    Have you not studied loops?

  5. #5
    Registered User
    Join Date
    Mar 2019
    Posts
    3
    the question say that it must be solved with loops

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,525
    First, read this
    A development process

    Then realise that this is an intermediate step.

    Write a program to do this.
    4 5
    *****
    *****
    *****
    *****
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,859
    Okay, so...

    Firstly, people don't usually like people who ask for help without trying anything - I'm not saying that you are doing this, but a lot of people will hope that other people will do their homework for them. However, if you write some code (no matter how bad it is) people will always respond better - You will also be better off developing your own code and making it better.

    I believe that when people give code to someone asking for help they are making bad programmers. Look at it this way: Learning to print a box probably isn't going to help you in your future career, but the thought and development process will.

    There is a particular user that tends to write programmes for people - It really annoys me, but I keep my mouth shut... 5 years ago they would have been scorned for doing that, but I suppose that times are changing...


    Back to the problem in hand: Break the problem into smaller problems

    To get you started, getting the number of rows and columns from the user will be the first thing your programme will have to do; maybe a nice hello message and instructions first.

    If you are having trouble following your course, there is always more information out there - Introduction to C - Cprogramming.com will get you started for your first step.
    Fact - Beethoven wrote his first symphony in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help!! Assignment!
    By Joeshua Lee in forum C Programming
    Replies: 3
    Last Post: 08-09-2011, 09:30 AM
  2. Help with Assignment
    By RenegadeTimmy in forum C Programming
    Replies: 17
    Last Post: 04-02-2011, 02:48 PM
  3. Car assignment help
    By anik18 in forum C Programming
    Replies: 4
    Last Post: 05-09-2009, 09:40 PM
  4. Replies: 3
    Last Post: 04-26-2009, 08:54 AM
  5. I need some help with an assignment
    By AtmaSniper in forum C++ Programming
    Replies: 9
    Last Post: 02-13-2005, 11:27 AM

Tags for this Thread