Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the following classes in C++ 1. Class 'tis contains the following properties a) An unsigned integer called the 'seed': (the seed value will range
Create the following classes in C++ 1. Class 'tis contains the following properties a) An unsigned integer called the 'seed': (the seed value will range between 0 to 255) b) A reciprocal characteristic/feedback polynomial function: (the user will set the characteristic polynomial. Basically, the user will specify the bit-positions which your class will use to generate the random numbers. The bits in the LFSR state that influence the input are called taps) Add appropriate member-functions such as a) Constructor(s) b) A function to print the seed and generated numbers (both in integer and binary number system) c) A function (named as "random number generator) to create 20 consecutive random numbers from the given seed and the characteristic polynomial. d) Based on the requirements of the class, you might have to convert any given decimal number to a binary number and store it. So, you need to implement a function that converts a given decimal number to a corresponding binary number
Step 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