Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write it in c++ language Write a program that reads a number from a file located at: c:temp input.txt. The file consists of unlimited

image text in transcribed

please write it in c++ language

Write a program that reads a number from a file located at: "c:\temp input.txt". The file consists of unlimited input commands in this format: A letter indicating input number system A value then, have the program convert that input to "all taught" other formats. Example of input (no spaces in put file, each value is on a separate row): B 101 H A D 20 Your program should read that data (from c:\temp\input.txt) and should output: Binary: 101 Decimal: 5 Hex: 5 Binary: 1010 Decimal: 10 Hex: A Binary: 10100 Decimal 20 Hex: 14 Pay attention to the following: Note that your program should only work with numbers less than 33. So I will only test your code with numbers less than 33 (so 32 and less). Input file could contain a lot of commandumbers, so read the file until you get to the end! I could run it against 10 numbers, or 100 numbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

Is how things are said consistent with what is said?

Answered: 1 week ago