Go to Post Step 1. Understand the game and how to win the match and the event. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 15-04-2008, 12:50
berkanbaba berkanbaba is offline
Registered User
no team
 
Join Date: Apr 2008
Location: turkey
Posts: 6
berkanbaba is infamous around these partsberkanbaba is infamous around these partsberkanbaba is infamous around these parts
Exclamation C Programming Homework Help Needed

i have a question about c programming.can you help for the solution.thank you . i just use C not C++


Question:
Write a C program for a binary notation simulator for positive integer numbers. Your program will ask and get positive integer numbers from user. Program will stop asking new numbers if 0 is input. It will display the binary representation of the input number and the minimum number of digits required to represent that number as given in the sample run.


Sample Run: (Italic and bold letters indicate the user input)
Enter a positive integer: -5
Enter a positive integer: -3
Enter a positive integer: 5
It is 101. At least 3 digits required.
Enter a positive integer: -2
Enter a positive integer: 7
It is 111. At least 3 digits required.
Enter a positive integer: 0
Stop... Bye..
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C Programming Homework Help Needed Pat McCarthy Programming 53 27-09-2008 22:15
programming help needed krunal Programming 3 29-01-2007 00:18
HELP-URGENT PROGRAMMING HELP NEEDED Rohith Surampudi Lego Mindstorm Discussion 1 24-03-2006 23:05
URgent Programming Help needed rcubes85 Programming 4 15-02-2005 23:21


All times are GMT -5. The time now is 09:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi