Thread: need help to get started

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    need help to get started

    can some one get me started on this c++ assignment.

    This lab is mainly an output-formatting exercise. It does require that you know how to develop the product of two integers, without using a calculator.

    Problem statement
    Write a program that multiplies two 4-digit positive integers and prints their product in the format below. Your program should ask the user to type the two numbers, then read them in. As an example, the product of 4560 and 4334 should produce the following output.
    Notice that the alignment should be the same as you’d get if you multiplied the numbers using a pencil and paper.

    4560
    x 4334
    ---------
    18240
    13680
    13680
    18240
    ---------
    19753920

    You have to pull out the digits of the top number. 1000th digit is ‘4’. So you’d then multiply ‘4’ time 4334. There are different ways of solving this.

  2. #2
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    How many tomes must this be explained? No one here is going to do your hw. Expect the same amount of effort from the forum as you yourself give.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    read the title

    its says needs help to get started, not need help to do. there lot of good people out there to help if you cant they will.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You can easily start by writing a skeleton program, and then tell us what you think you need to do to solve this problem.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by anniefaty View Post
    its says needs help to get started, not need help to do. there lot of good people out there to help if you cant they will.
    I can read, but actions speak more than words, and you're saying very little. It's not that I can't, it's that I refuse help those who make no attempt to help themselves.

    Show an honest attempt at anything and I'll be glad to help you turn it into what your assignment asks for.

  6. #6
    Registered User
    Join Date
    Sep 2010
    Posts
    3
    thanks am still in high school, but require to take this class and it's online, it very complicated don't know how to start i got the devc++ programme on mt computer but can start the first word its so hard.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help getting started...
    By Sh4d0ws in forum C Programming
    Replies: 0
    Last Post: 12-05-2009, 04:14 PM
  2. Help getting started..matrices
    By BobDole11 in forum C Programming
    Replies: 7
    Last Post: 11-15-2008, 09:51 PM
  3. Help getting started :(
    By blackocellaris in forum C Programming
    Replies: 4
    Last Post: 11-05-2006, 06:50 PM
  4. Getting Started
    By UnclePunker in forum Game Programming
    Replies: 3
    Last Post: 04-11-2003, 12:34 PM
  5. How to get started?
    By anoopks in forum Linux Programming
    Replies: 0
    Last Post: 01-14-2003, 03:48 AM