Help fix C code - 76599

Request Posted by
machine392

machine392

Rating : No Rating
Earned: $0
Request Detail
Price: $10
  • From: Computer Science, C Programming
  • Due on: Fri 13 Mar, 2015 (11:00pm)
  • Asked on: Fri 13 Mar, 2015
  • Due date has passed, but you can still Post Solution.
Description

I need to make a program called bin_str.c that completes a binary number. A
binary number is made up of 0's and 1's but the input strings you will receive can
also contain 'x''s. An x represents a digit that can be either a 0 or a 1. Your
program should display all the possible binary digits that can be formed. For
example the string x1x0 could represent either 0100, 0110, 1100, or 1110.
1. Name your executable bin_str.out
2. The program should accept the binary string as a command line argument
3. MUST solve this program RECURISIVELY
4. Examples
1../bin_str.out 0110
0110
2../bin_str.out 01x0
0100
0110
3../bin_str.out xx
00
01
10
11
4../bin_str.out 101x100x11x
10101000110
10101000111
10101001110
10101001111
10111000110
10111000111
10111001110
10111001111

 

It should only take like ten minutes. 

1 Solution for Help fix C code
Title Price Category solution By purchased  
C Program -- print binary number recursively
$10.00 Mathematics, Algebra lightsource 0 time(s)
Please Login or Register to Submit the Solution for the Request