Maurice Tutor


$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 239 Weeks Ago, 6 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688


    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011


  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 15 Sep 2017 My Price 5.00

4-bit binary number

Write a program that reads a 4-bit binary number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, theoutput should be 12. (Hint: Break the string into substrings and then convert each substring to a value for a single bit . If the bits are b0, b1, b2, and b3, the decimal equivalent is 8b0+ 4b1+ 2b2+ b3.)
Input Notes: Just a 4-bit  string , like 1101 or 0010.

Output Notes (Prompts and Labels): The input is prompted for by:
        Enter a four bit binary value .
After input, the program prints out a line of this form:
        The value of BBBB is D
where BBBB is the binary string entered and D is the calculated decimal equivalent.

SPECIFICATION OF NAMES: Your application class should be called FromBinary


Status NEW Posted 15 Sep 2017 03:09 PM My Price 5.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)