Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

C programming - Basic

12/09/2020 Client: ericsermon1000 Deadline: 24 Hours

Develop a C (or C++) program that reads an unsigned number in some base and outputs the


equivalent value in BCD.


Your program must require a single command line argument, the name of an input file. This


input file will consist of any number of lines, each falling into one of three varieties:


1. Comment - These lines always start with an asterisk ('*') and should be completely


ignored.


2. Blank line - Used to visually organize the input file and should be completely ignored.


3. Data line - These are the ones your program will process and are described below.


Data lines will all have exactly two items separated by a single space character:


1. an input base (2 through 16) and


2. an input value in that base whose decimal equivalent will never be more than 6 digits


For each Data line from the input file, you must output:


1. the line number of the input file this data line is on (starting the file with line 1… same as


a text editor would show)


2. a colon followed by a space


3. the BCD equivalent of the input value , four bits at a time with one space between each


set of bits. Remember the decimal values will not exceed 6 digits, so the BCD value will


never exceed 24 bits, not including whitespace between 4-bit sets. NEVER print any


leading bit sets that contain only zeros…


a. eg, instead of 0000 0101 0000 1000, you would print 0101 0000 1000


b. only exception is if the value itself is zero, as in the example below


Example input file Expected output to console


* a first example


2 011000


8 70


7 0


11 3A


* This is long


10 123456




Results


2: 0010 0100


4: 0101 0110


5: 0000


6: 0100 0011


9: 0001 0010 0011 0100 0101 0110

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Academic Master
Top Academic Guru
Assignment Hub
Writing Factory
Homework Tutor
Buy Coursework Help
Writer Writer Name Offer Chat
Academic Master

ONLINE

Academic Master

I have super grip on essays, case studies, reports and discussion posts. I am working on this forum from last 6 years with full amount of satisfaction of my clients.

$40 Chat With Writer
Top Academic Guru

ONLINE

Top Academic Guru

This project is my strength and I can fulfill your requirements properly within your given deadline. I always give plagiarism-free work to my clients at very competitive prices.

$35 Chat With Writer
Assignment Hub

ONLINE

Assignment Hub

I feel, I am the best option for you to fulfill this project with 100% perfection. I am working in this industry since 2014 and I have served more than 1200 clients with a full amount of satisfaction.

$55 Chat With Writer
Writing Factory

ONLINE

Writing Factory

I can help you with creating a presentation of one slide for The Word of William Hunter. I will be happy to offer you 100% original work with high-quality standard, professional research and writing services of various complexities.

$25 Chat With Writer
Homework Tutor

ONLINE

Homework Tutor

Hello client, I have gone through the project specifications you have provided and I can easily manage the task. I am an experienced writer with diverse Knowledge in Article writing and Rewriting, Dissertations & Thesis writing, reports, case studies, and Literature Review.

$35 Chat With Writer
Buy Coursework Help

ONLINE

Buy Coursework Help

I can help you with your project. I will make sure to provide you exceptional quality work within the required timeframe. Please message me so we can discuss the further details over chat.

$35 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Vce examination timetable 2021 - Resspond to classmates discussin - Discussion B week 9 - Angie's bake shop makes birthday chocolate chip cookies - University of phoenix mth 217 - Mod c prescribed texts - Grace before meals fr leo patalinghug - math help - Powerpoint elbow connector orientation - Enthalpy of combustion meaning - Old spice brand image - 65 channel road shepparton - 4810 kj to calories - 9781260906301 - The selection of channel members - Apply a circle style cell bevel to the first row - 0.3 kg to grams - Case Studies - Jewish culture - Analysis of a commercial bleach post lab answers - History of visual communication ppt - Southern bank and trust clarkesville ga - Cardiovascular - Turkish films in london cinemas - Read Carefully - Reading summary - Role and Scope Research 1 - Grapefruit seed extract woolworths - Social ethical and legal aspects of marketing ppt - Westpac discharge of mortgage - Hydrochloric acid 0.1 n msds - ENG questions - What types of legal claims could Paula make against Capstone Corporation and Freddy? - Discussion: Simulators Training Flaws Tied to Airline Crashes - Assignment - Without exaggeration crossword clue - Qing dao health massage centre - massage pennant hills - Week 8 Assignment: Essay – Interrelationships Reflection - ACCOUNTING SHORT ANSWER - Tranquil retreat exterior render - Why does the felony murder statute affect juveniles more often - I need help with statistics - Is burning hydrogen gas a chemical change - Creating a Resource List - What is khp used for titration - Brainpop black death quiz answers - Cb high risk licence - Unit 8.2 DB: My Career - Igneous rocks worksheet answer key - 12 characteristics of handwriting - Vce english study design 2021 - 750worlds - Www uwimona edu jm application form - Reflective Journal - Square root of 18 - Love at 16 2004 - Discussion - Kitchen selectives double burner db2 - Apply for special consideration rmit - Occupational therapy volunteer resume - Fe3+ scn fescn2+ equilibrium constant - Homework Wk 6 - 2/71 heller st brunswick west - Krisflyer upgrade using points - Bond order of sf6 - Streaming video systems can be classified into three categories - Ascii code for infinity - How to find starch in a leaf - Techniques in act 1 scene 5 macbeth - Discussion - International Expansion - Menelik ii of ethiopia on imperialism worksheet answers - Digital/Computer Forensics - Auden as a modern poet - Porphyrin is a pigment in blood protoplasm - F and r auto repair - Fight for sight summer student fellowship - Amplitude period phase shift and vertical shift calculator - 1 page single spaced Summary and Robust Casual Loop Diagram - Truth table for gated sr latch - Dhl express box 5 - MKT/435 WEEK 1 - Hybridization and geometry chart - Grundfos cr 32 2 - Vhdl convert std_logic_vector to natural - Api 570 practice questions - A rectangular storage container with an open top - Find the epicenter worksheet answers - Abacus owner builder online - Desmos graphing trig functions - The immortal life of henrietta lacks chapter 1 - Paper typed - Kwik wire harness review - 2 ethoxy 1 1 dimethylcyclohexane - How did josie king die - Pulse and blood pressure lab answers - Park house surgery bagshot - An astronaut on the moon throws a baseball upward - Psychological Theories of Crime - I need 2500 words on an essay How Significant Was The Emergence Of Youth Culture In Post War Britain - Billy joel pressure ringtone