Implement a Message Authentication Code program in either C/C++ or Python.
1. Accept a message as keyboard input to your program.
2. Accept a secret key for the sender/recipient as keyboard input to your program.
3. Your hash function H() is simply the checksum. To compute the checksum, you add all the characters of the string in ASCII codes. For example, the checksum of a string "TAMUC" would be 84 + 65 + 77 + 85 + 67 = 378.
Concatenate the secret key of the sender/recipient (from step 2) and the message (from step 1) and compute the checksum of the concatenated string. For ASCII codes, refer to the following website:
http://www.asciitable.com
4. Accept a secret key for the attacker as keyboard input to your program.
5. The attacker modifies the message from step 1. The original message can be modified any way you want.
6. Concatenate the secret key of the attacker (from step 4) and the modified message (from step 5) and compute the checksum of the concatenated string.
7. Concatenate the secret key of the sender/recipient (from step 2) and the modified message (from step 5) and compute the checksum of the concatenated string.
8. Compare the checksum from step 7 and the checksum from step 6. See if they match or not.
9. Compare the checksum from step 3 and the checksum from step 6. See if they match or not.
NOTE: your program should have separate functions for the checksum and the message modification by the attacker.
In: Computer Science
SupposeSuppose the heights of 18-year-old men are approximately normally distributed, with mean 66 inches and standard deviation 1 inches.
(a) What is the probability that an 18-year-old man selected at
random is between 65 and 67 inches tall? (Round your answer to four
decimal places.)
(b) If a random sample of nine 18-year-old men is
selected, what is the probability that the mean height x
is between 65 and 67 inches? (Round your answer to four decimal
places.)
(c) Compare your answers to parts (a) and (b). Is the probability
in part (b) much higher? Why would you expect this?
The probability in part (b) is much higher because the standard deviation is smaller for the x distribution.
The probability in part (b) is much higher because the standard deviation is larger for the x distribution.
The probability in part (b) is much higher because the mean is smaller for the x distribution.
The probability in part (b) is much higher because the mean is larger for the x distribution.
The probability in part (b) is much lower because the standard deviation is smaller for the x distribution.
In: Math
In: Psychology
Explain the different inventory classification models that can be used in inventory management.
Discuss the primary functions of a distribution
center.
In: Operations Management
Using service management best practices are criteria, which of the things KidZania is doing impressed you the most/the least, and why?
In: Operations Management
Pina Corporation was organized on January 1, 2020. It is
authorized to issue 10,600 shares of 8%, $100 par value preferred
stock, and 500,200 shares of no-par common stock with a stated
value of $1 per share. The following stock transactions were
completed during the first year.
Jan. 10 | Issued 80,640 shares of common stock for cash at $6 per share. | |
Mar. 1 | Issued 5,850 shares of preferred stock for cash at $111 per share. | |
Apr. 1 | Issued 24,940 shares of common stock for land. The asking price of the land was $90,270; the fair value of the land was $80,640. | |
May 1 | Issued 80,640 shares of common stock for cash at $9 per share. | |
Aug. 1 | Issued 10,600 shares of common stock to attorneys in payment of their bill of $50,500 for services rendered in helping the company organize. | |
Sept. 1 | Issued 10,600 shares of common stock for cash at $11 per share. | |
Nov. 1 | Issued 1,050 shares of preferred stock for cash at $106 per share. |
Prepare the journal entries to record the above transactions.
(Credit account titles are automatically indented when
amount is entered. Do not indent manually. If no entry is required,
select "No Entry" for the account titles and enter 0 for the
amounts.)
In: Accounting
The Paris Company purchased an 80% interest in Seine, Inc. for $600,000 on July 1, 2015, when Seine had the following balance sheet: Assets Accounts receivable $ 50,000 Inventory 120,000 Land 80,000 Building 270,000 Equipment 80,000 Total $600,000 Liabilities and Equity Current liabilities $100,000 Common stock, $5 par 60,000 Paid-in capital in excess of par 140,000 Retained earnings (July 1) 300,000 Total $600,000 The inventory is understated by $20,000 and is sold in the third quarter of 2015. The building has a fair value of $320,000 and a 10-year remaining life. The equipment has a fair value of $120,000 and a remaining life of 5 years. Any remaining excess is attributed to goodwill. From July 1 through June 30, 2016, Seine had net income of $100,000 and paid $10,000 in dividends. Assume that Paris uses the equity method to record its investment in Seine. Required: a. Prepare a determination and distribution of excess schedule as of July 1, 2015. b. Prepare the eliminations and adjustments that would be made on the June 30, 2016 consolidated worksheet to eliminate the investment in Seine. Distribute and amortize any excess. Determination and distribution of excess schedule as of July 1, 2015: -------Do this in Excel------- Elimination and Adjusting Entries as of June 30, 2016: -------Do this in Excel--------
In: Accounting
On January 1, 2021, Buffalo Corp. had 472,000 shares of common
stock outstanding. During 2021, it had the following transactions
that affected the Common Stock account.
February 1 | Issued 125,000 shares | |
March 1 | Issued a 10% stock dividend | |
May 1 | Acquired 100,000 shares of treasury stock | |
June 1 | Issued a 3-for-1 stock split | |
October 1 | Reissued 63,000 shares of treasury stock |
b) Assume that Buffalo Corp. earned net income of $3,568,000 during 2021. In addition, it had 101,000 shares of 9%, $100 par nonconvertible, noncumulative preferred stock outstanding for the entire year. Because of liquidity considerations, however, the company did not declare and pay a preferred dividend in 2021. Compute earnings per share for 2021, using the weighted-average number of shares determined in part (a). (Round answer to 2 decimal places, e.g. $2.55.)
c) Assume the same facts as in part (b), except that the preferred stock was cumulative. Compute earnings per share for 2021. (Round answer to 2 decimal places, e.g. $2.55.)\
d) Assume the same facts as in part (b), except that net income included a loss from discontinued operations of $422,000 (net of tax). Compute earnings per share for 2021. (Round answer to 2 decimal places, e.g. $2.55.)
Please show all work
In: Accounting
A woman can read the large print in a newspaper only when it is at a distance of 62 cm or more from her eyes. (a) Is she nearsighted (myopic) or farsighted (hyperopic), and what kind of lens is used in her glasses to correct her eyesight? (b) What should be the refractive power (in diopters) of her glasses (worn 2.9 cm from the eyes), so she can read the newspaper at a distance of 29 cm from the eyes?
A: I know she's farsighted
B: I did (1/ 29-2.9 + 1/(62-2.9) = .05523 x 100 = 5.52 cm, which was wrong. How do I solve this part of the equation?
In: Physics
Write a Java code to represent a
1. Date class. As date class is composed of three attributes, namely month, year and day; so the class contains three Data Members, and one method called displayDate() which will print these data members.
Date |
month : String year: int day : int |
displayDate(): void |
In: Computer Science
Draw an EER model of given scenario
We wish to create a database for a company that runs training courses. For this, we must store data about the trainees and the instructors. For each course participant (about 5,000),identified by a code, we want to store her social security number, surname, age, sex, place of birth, employer’s name, address and telephone number, previous employers (and periods employed), the courses attended (there are about 200 courses) and the final assessment for each course. We need also to represent the seminars that each participant is attending at present and, for each day, the places and times the classes are held. Each course has a code and a title and any course can be given any number of times. Each time a particular course is given, we will call it an ‘edition’ of the course. For each edition, we represent the start date, the end date, and the number of participants. If a trainee is self-employed, we need to know her area of expertise, and, if appropriate, her title. For somebody who works for a company, we store the level and position held. For each instructor (about 300), we will show the surname, age, place of birth, the edition of the course taught, those taught in the past and the courses that the tutor is qualified to teach. All the instructors’ telephone numbers are also stored. An instructor can be permanently employed by the training company or freelance.
Note:It will be really helpful if you provide it on a paper by hand.
In: Computer Science
In a 250-500 word paper, describe the ways in which the organization you identified has utilized or will utilize the talent and resources to develop an analytics-driven organization. Identify the strategies used by the leaders of the organization in order to leverage data as a strategic asset for an organization. Lastly, be sure to describe what the vision and the culture of the organization looks like and provide examples.
In: Operations Management
Uber has long been criticized for its use of surge pricing, setting prices based on current supply and demand factors, which, at times, results in a sudden and drastic increase in prices. In a Wall Street Journal article, the CEO of Uber was asked if we are seeing the end of surge pricing. His response: “. . . at the end of the day, Friday night is three or five times bigger than a Sunday night in any city around the world. And if you’ve got enough supply on the system so that we were perfectly supplied on a Friday night for as much demand as a city could ever throw at us, then the rest of the week you have drivers not making a living.”
a. Draw a demand and supply graph for Uber rides in Miami on a Sunday night. How does demand change on a Friday night? How does the supply of Uber rides change? Label the shortage of Uber cars that results on a Friday night without surge pricing.
b. Show what happens to consumer and producer surplus on a Friday night without surge pricing.
c. How does surge pricing change consumer and producer surplus?
In: Economics
1) How are the Greek gods depicted in the various myths? What personalities, attitudes and traits do they exhibit?
2) How did the Greeks describe Creation, the birth of the gods, and the Great Flood? How are these myths similar/ different to the Creation and Flood stories in Genesis?
3) What elements in the myths of Demeter and Orpheus and Eurydice seem to allude to the concept of life after death?
4) How are the stories of Perseus and Bellerophon similar/different? What attributes do Greek heroes have in common?
In: Psychology
Fleurant, Inc., manufactures and sells two products: Product W2 and Product P8. Data concerning the expected production of each product and the expected total direct labor-hours (DLHs) required to produce that output appear below: Expected Production Direct Labor-Hours Per Unit Total Direct Labor-Hours Product W2 600 6 3,600 Product P8 900 4 3,600 Total direct labor-hours 7,200 The direct labor rate is $42.10 per DLH. The direct materials cost per unit is $208.60 for Product W2 and $145.30 for Product P8. The company is considering adopting an activity-based costing system with the following activity cost pools, activity measures, and expected activity: Estimated Expected Activity Activity Cost Pools Activity Measures Overhead Cost Product W2 Product P8 Total Labor-related DLHs $ 223,576 3,600 3,600 7,200 Production orders orders 19,038 530 430 960 Order size MHs 333,386 3,930 3,730 7,660 $ 576,000 If the company allocates all of its overhead based on direct labor-hours using its traditional costing method, the overhead assigned to each unit of Product W2 would be closest to: Multiple Choice $261.14 per unit $186.31 per unit $480.00 per unit $118.99 per unit
In: Accounting