Answered step by step
Verified Expert Solution
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
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 numbersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started