1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mumz [18]
3 years ago
5

For this assignment you will write a crc integrity checking program will have two modes of operation. your program must implemen

t the crc calculation method involving long division by a polynomial that we discussed in lecture. in "calculation" mode, the program will calculate the crc-12 value for a given input string. in "verification" mode, the program will interpret the last 3 hex characters of an input string as a crc-12 value, and it will then determine whether this is the correct crc-12 value for the input string without those 3 characters. in both modes, the program must report header information, intermediate results, and final results as described further below. the mode and the input string to process will be supplied to your program as command line arguments. the program will be graded according to the grading rubric that appears at the bottom of this assignment.
Business
1 answer:
AVprozaik [17]3 years ago
3 0

Of course, some of the recorded functions will very likely invoke others of these functions. It is decent practice to reuse components instead of writing the same block of code in multiple places. Many logical errors can be evaded by doing so, and if any corrections are needed, they can be done conveniently in just one place.

Keep in mind that the basic idea is to break down the overall task into small pieces that can be developed (and tested) separately so you can build your program incrementally.

Program Output

The program must present output consisting of header information, intermediate results, and final results, as described separately below. Sample outputs follow in the next section.

Header Information

The header information should be written on distinct lines as shown in the sample outputs that follow. The individual lines are:

1. The program must first write a string of 62 hyphens (dashes) to serve as a separator, and then, 2 lines below it, the string "CIS3360 Fall 2017 Integrity Checking Using CRC", and then on the next line the string "Author: " followed by your name (or names, if teaming) and a newline.

2. The program must then write the string "The input string (hex): ", followed by the string value of the second command line input argument

3. The program must then write the string "The input string (bin): ", followed by the binary value of the second command line input argument, and then a newline.

4. The program must then write the string "The polynomial that was used (binary bit string): ", followed by the 13-bit binary value of the polynomial given at the top of this assignment with spaces every 4 characters to improve readability.

5. The program must then write the string "Mode of operation: ", followed by either the word "calculation" or "verification", depending on the value of the first command line input argument

6. The content of this line depends on whether the mode is calculate or verify.

a. If in calculation mode, this line should read: "Number of zeroes that will be appended to the binary input: 12"

b. If in verification mode, this line should read: "The CRC observed at the end of the input: ", followed by the binary and hex values for the last 3 hex characters of the input string, as shown in the sample outputs that follow.

Intermediate Results

This section will begin with the string: "The binary string difference after each XOR step of the CRC calculation", followed by a newline.

Following the above statement, this section will show on separate lines the results of each XOR step as described above, with spaces every 4 characters as shown to improve readability.

Note that for calculation mode, you must pad the binary version of the input string with 12 zeroes before you start the division procedure, but for confirmation mode you have two choices. The first step is to remove the last three hex characters demonstrating the observed CRC, in which case you must then pad the rest with 12 zeroes like you were calculating the CRC. The second step is to leave the detected CRC attached to the rest of the input, in which case you should not add zeroes for padding. The difference between these two choices determines how you will interpret the result in the bottom row of the intermediate results output.

<span> </span>

You might be interested in
Due to recent political and economic events, general prices of goods and services are expected to increase significantly over th
melomori [17]

Answer:

a. Inflation

Explanation:

In the context of economics, inflation refers to the increase in the price of goods and services

Moreover,  we also know that

(1 + Nominal rate of return) = (1 + real rate of return) × (1 + inflation rate of return)

According to the given situation, it is mentioned that The general goods and services prices are expected to rise substantially over the next five years which represents the concept of inflation

Hence, the option a is correct

5 0
3 years ago
Calculate a firm's WACC given that the total value of the firm is $2 million, $600,000 of which is debt, the pre-tax cost of deb
butalik [34]

Answer:

the weightage average cost of capital of the firm is 13.50%

Explanation:

The computation of the weighted average cost of capital is shown below;

WACC = Cost of debt × weightage of debt + cost of equity × weightage of equity

= 10% × ($600,000 ÷ $2,000,000) + 15% × ($1,400,000 ÷ $2,000,00)

= 3% + 10.5%

= 13.5%

hence, the weightage average cost of capital of the firm is 13.50%

6 0
3 years ago
ACold Inc. Is a frozen-food distributor with 10 warehouses across the country. Ivan Tory, one of the warehouse managers, wants t
blagie [28]

ACold Inc. Is a frozen-food distributor with 10 warehouses across the country. Ivan Tory, one of the warehouse managers, wants to make sure that the inventory policies used by the warehouse are minimizing inventory while still maintaining quick delivery to ACold's customers. Because the warehouse carries hundreds of different products, Ivan decided to study one. He picked Caruso's Frozen Pizza (CFP). Demand for CFPs averages 400 per day with a standard deviation of 152. Because ACold orders at least one truck from its supplier each day, ACold can essentially order any quantity of CFP it wants each day. In fact, ACold's computer system is designed to implement an order-up-to policy for each product. Ivan notes that any order for CFPs arrives four days after the order.

Suppose it uses an order up to level of 2410. What is its expected on-hand inventory?

Answer:

The expected Inventory on -hand  =  429.074

Explanation:

From the given information;

Mean i,e Demand for CFPs averages  = 400 per day

standard deviation = 152

Lead TIme = 4 days

period length = ACold Inc. orders at least one truck from its supplier each day,

Let consider the fact that the order is up to level of S = 2410

Then, the expected demand for the lead time is;

\mu = Demand × (Lead time + period length)

\mu =  400 × ( 4 + 1)

\mu =  400 × 5

\mu =  2000

the standard deviation for the lead time as well is :

\sigma = standard deviation sd\sqrt{lead \ time \times period  \ length }

\sigma = 152 \sqrt{4+1}

\sigma = 152 \sqrt{5}

\sigma = 339.88

The z - value for the test statistics can now be computed as:

z = \dfrac{X - \mu}{\sigma}

z = \dfrac{2410 - 2000}{339.88}

z = \dfrac{410}{339.88}

z = 1.2063

z = 1.21

The order upto level = Inventory on -hand + Inventory order - Backorders

The order upto level - Inventory order + Backorders = Inventory on -hand

Inventory on -hand = The order upto level - Inventory order + Backorders

where ;

the backorders = \sigma L(z) and L(z) = standard loss

From the tables of distribution function and inventory  function for standard  normal distribution function

L(z) = 0.0561

the backorders can now be  = 340 × 0.0561

the backorders can now be  = 19.074

Recall that :

Inventory on -hand = The order upto level - Inventory order + Backorders

consider the fact that the order is up to level of S = 2410

∴ Inventory on -hand = 2410 - 2000 + 19.074

Inventory on -hand = 410 + 19.074

Inventory on -hand  =  429.074

6 0
3 years ago
Which are 3 common misconceptions users of an income statement may have?
Mama L [17]

The three most frequent misconceptions are that net income equals cash, net income excludes estimates, and net income reports all changes in value that occurred during the accounting period.

One of the three crucial financial statements used to describe a company's financial performance throughout a certain accounting period is the income statement. The balance sheet and the cash flow statement are the other two important statements. The income statement, which is often referred to as the profit and loss (P&L) statement or the statement of revenue and expense, primarily focuses on the company's revenue and expenses over a specific time period. Understanding how to study an income statement is the greatest approach to evaluate a business and choose whether or not to invest.

To learn more about income statement here

brainly.com/question/28035395

#SPJ4

3 0
2 years ago
TP4.
timofeeve [1]

Answer:

There would be no under-applied or over-applied overhead since the overhead applied will be equal to budgeted overhead.

Explanation:

Overhead application rate is the ratio of budgeted overhead to budgeted activity level. Overhead applied is overhead application rate multiplied by actual activity level. Under/over-applied overhead is the difference between overhead applied and budgeted overhead.

7 0
3 years ago
Other questions:
  • Implicit costs are ______.
    10·1 answer
  • Which spreadsheet type will determine how well a business has done over the past year?
    15·2 answers
  • Leroy was recently elected to the position of chair of his department at the university. with regard to department business, ler
    7·1 answer
  • As a manager, Colin realizes that there is no single formula for making easy decisions. In reality, business decisions he has to
    10·1 answer
  • Analyzing and Computing Accrued Warranty Liability and Expense Waymire Company sells a motor that carries a 60-day unconditional
    11·1 answer
  • A(n) bond is a long-term contract under which a borrower agrees to make payments of interest and principal, on specific dates, t
    9·2 answers
  • What can increase a credit cards APR
    8·1 answer
  • An insurance settlement offer includes annual payments of $36,000, $42,000, and $50,000 over the next three years, respectively,
    5·2 answers
  • If a sales rep earns $12 per hour plus $15 per unit sold, how much will he have earned after 20 hours and 15 units sold?.
    5·1 answer
  • What determines the price of land labor capital and entrepreneurship in a factor market?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!