Question
i am really stuck on this portion trying to wrtie a code in C++ as to how to incorporate this the input file is going
i am really stuck on this portion trying to wrtie a code in C++ as to how to incorporate this the input file is going to start with a single letter only one of too a F and then followed by two numbers and if it is starting with a G, then it will have 4 binary digits ex 0000, 0001, 0101, or just 11. if it is G, then it will go to the seocnd function is F, then it will go to the first function. I am just at a loss as to how to write these seeing as i am unfamiliar with bitwise operators and shifting. Whatever help could be given would greatly be appreciated. Thank you very much.
Input: Input will be from the file named "graycodes.dat". The first line of input gives the number of test cases, N (at most 25). N test cases follow. Each test case is a line and starts with an A or a B. If the line starts with an A, then there will follow 2 integers: number of bits n (1 snStep 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