Thread: pls sum1 make this programme

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    1

    Unhappy pls sum1 make this programme

    develop a fairly-sophisticated program that simulates LED displays (e.g., a digital clock or microwave). Write a program that can print the digits 0 through 9 as block digits (like you would find on an LED display). Each digit should contain only the x and . characters (see example output below), and should be followed by a blank line so the digits are separated. The input to this program will be a number followed by a height and a width. For example, with the input 25, 7, 5, the program will write the digits 2 and 5 (separated by a blank line) where each digit has a height of 7 and a width of 5 characters. Your program requires that the height be an odd number >= 5 and that the width be >= 3. Your program should check that the input line contains three numbers (value, height, and width) and that the height and width adhere to the constraints (height is odd and >= 5, width >= 3). It should inform the user of any input problems.

    Input Line: 256 5 5
    Output:
    Number - 256, Height - 5, Width - 5

    xxxxx
    ........x
    xxxxx
    x.......
    xxxxx

    xxxxx
    x.......
    xxxxx
    ........x
    xxxxx

    xxxxx
    x........
    xxxxx
    x......x
    xxxxx



    Q2:

    (a) Write a main program in C programming Language that calls an 8086 Assembly Subroutine that divides an unsigned 2 byte number by an unsigned single byte provided the single byte number is NOT zero. The C Program should pass the two numbers to the assembly subroutine. The original values and the result of division should be printed from the C program. Test your program using the following values:

    First Operand: 1000 Second Operand: 25
    First Operand: 0 Second Operand: 25
    First Operand: 1000 Second Operand: 0
    (b) Write a Program in 8086 that has two subroutines: First for encrypting upper case alphabets in a string as follows:

    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    Q W E R T Y U I O P A S D F G H J K L Z X C V B N M



    need help very urgent

  2. #2
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  3. #3
    Registered User stuart_cpp's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    31
    Programmers dont become pro by asking other people to do there own Homework!

  4. #4
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    This is a C++ board, not C anyway. Post your message there, but you will get the same answer. Homework questions are not allowed! Post the code you have done on your own first, then we can help you, but nobody is going to write your enitre program for you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  2. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  3. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  4. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM