Please register or login. There are 0 registered and 1163 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s November 23 - 02:17pm EST 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Programming /
 

  Programming/Coding Systems 
 
 Author 
 Date Written 
 Tools 
John Edwin Nov 27, 2012, 10:12am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List Replies: 7 - Views: 3477
Hi Guys,
I have a quick question on the above subject;my kid brother has asked me a question i dont seem to understand;the question goes like this:
Q: Formulate a coding system to represent the following commands/operations using a 5-bit byte.
-Add
-Subtract
-Multiply
-Evaluate
-Display Result;

I have no clue what this question is asking me to do.Any help will be greatly appreciated;

John


Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
Bungle Nov 28, 2012, 01:30am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Nov 28, 2012, 01:31am EST

 
>> Re: Programming/Coding Systems
John Edwin said:
Hi Guys,
I have a quick question on the above subject;my kid brother has asked me a question i dont seem to understand;the question goes like this:
Q: Formulate a coding system to represent the following commands/operations using a 5-bit byte.
-Add
-Subtract
-Multiply
-Evaluate
-Display Result;

I have no clue what this question is asking me to do.Any help will be greatly appreciated;

John


00001 = Add
00010 = Subtract
00100 = Multiply
01000 = Evaluate
10000 = Display

Thats my guess as to what the assignment is asking for.

Core i7 4770K @ 4.4GHz | Corsair H110 | Gigabyte GA-Z87X-UD5H | 32GB 1866MHz Corsair Vengeance
2x EVGA GTX 780 SLI | 256GB OCZ Vector SSD | 4TB Hitachi 7K4000
Corsair AX1200 PSU | Corsair 650D | Windows 7 Ultimate x64
John Edwin Nov 28, 2012, 03:04am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Programming/Coding Systems
Thanks MrBungle
How did you arrive at these codes?Any explanation you can give?

Rhort Nov 28, 2012, 04:15am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Nov 28, 2012, 04:25am EST

 
>> .

_________________________________________________________________________________
~ The manual said "Requires Windows '95 or better" ...so I installed Linux!
John Edwin Nov 28, 2012, 05:30am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Nov 28, 2012, 05:31am EST

 
>> Re: Programming/Coding Systems

Rhort Nov 28, 2012, 02:40pm EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> .

_________________________________________________________________________________
~ The manual said "Requires Windows '95 or better" ...so I installed Linux!
Bungle Nov 28, 2012, 04:15pm EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Nov 28, 2012, 04:16pm EST

 
>> Re: Programming/Coding Systems
John Edwin said:
Thanks MrBungle
How did you arrive at these codes?Any explanation you can give?


The question said to "Formulate" a system so I did... I wasn't going off of an existing system if thats what you're asking, my guess is that the question is just wanting the student to come up with 5 different binary values and assign them to a command. Rhort's system looks to be far more roubust and is likely closer to how one might work in the real world but unless this is a college level hardware design class you'll probably be ok with a simple answer.

Core i7 4770K @ 4.4GHz | Corsair H110 | Gigabyte GA-Z87X-UD5H | 32GB 1866MHz Corsair Vengeance
2x EVGA GTX 780 SLI | 256GB OCZ Vector SSD | 4TB Hitachi 7K4000
Corsair AX1200 PSU | Corsair 650D | Windows 7 Ultimate x64
Rhort Nov 30, 2012, 11:30am EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> .

_________________________________________________________________________________
~ The manual said "Requires Windows '95 or better" ...so I installed Linux!

Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.