Question: 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

 please write it in c++ language Write a program that reads

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!