MATERIALS SCIENCE AND ENGINEERING: INTRO
10th Edition
ISBN: 9781119571308
Author: Callister
Publisher: WILEY
expand_more
expand_more
format_list_bulleted
Question
Chapter 8, Problem 23QAP
(a)
To determine
The maximum torsional stress amplitude for the lifetime of
(b)
To determine
The maximum torsional stress amplitude for the lifetime of
(c)
To determine
The maximum torsional stress amplitude for the lifetime of
(d)
To determine
The maximum torsional stress amplitude for the lifetime of
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
please solve and neglect the distance between the two angles for simplecalculations
Inth big below:-
A
500m
B
Zoom
с
180011
I=50A
I-60A I-804
06
·0.7
0.8
lag.
unit)
Teading Pf
P.F
Pl
A
I sing phase distributor of 3/cm =
The distance from point A To B is 500m
distance from point A To C is /200m
The distance from point A To D is 3000m
The impedance of each part is.
ZAB-0.51j0.8 -2/km
ZBC= 0.7+71.2 12/1cm
ZCD = 1.3772.5 -2/1cm
The voltage of end for is VD= 220 Volt
Find : 1- sending Voltage
senting power
2- 5
The next problem concerns the following C code:
/copy input string x to buf */
void foo (char *x) {
char buf [8];
strcpy((char *) buf, x);
}
void callfoo() {
}
foo("ZYXWVUTSRQPONMLKJIHGFEDCBA");
Here is the corresponding machine code on a Linux/x86 machine:
0000000000400530 :
400530:
48 83 ec 18
sub
$0x18,%rsp
400534:
48 89 fe
mov
%rdi, %rsi
400537:
48 89 e7
mov
%rsp,%rdi
40053a:
e8 d1 fe ff ff
40053f:
48 83 c4 18
add
callq 400410
$0x18,%rsp
400543:
c3
retq
0000000000400544 :
400544:
48 83 ec 08
sub
$0x8,%rsp
400548:
bf 00 06 40 00
mov
$0x400600,%edi
40054d:
e8 de ff ff ff
callq 400530
400552:
48 83 c4 08
add
$0x8,%rsp
400556:
c3
This problem tests your understanding of the program stack. Here are some notes to
help you work the problem:
• strcpy(char *dst, char *src) copies the string at address src (including
the terminating '\0' character) to address dst. It does not check the size of
the destination buffer.
You will need to know the hex values of the following characters:
Chapter 8 Solutions
MATERIALS SCIENCE AND ENGINEERING: INTRO
Ch. 8 - Prob. 1QAPCh. 8 - Prob. 2QAPCh. 8 - Prob. 3QAPCh. 8 - Prob. 4QAPCh. 8 - Prob. 5QAPCh. 8 - Prob. 6QAPCh. 8 - Prob. 7QAPCh. 8 - Prob. 8QAPCh. 8 - Prob. 9QAPCh. 8 - Prob. 10QAP
Ch. 8 - Prob. 11QAPCh. 8 - Prob. 12QAPCh. 8 - Prob. 13QAPCh. 8 - Prob. 14QAPCh. 8 - Prob. 15QAPCh. 8 - Prob. 16QAPCh. 8 - Prob. 17QAPCh. 8 - Prob. 18QAPCh. 8 - Prob. 19QAPCh. 8 - Prob. 20QAPCh. 8 - Prob. 21QAPCh. 8 - Prob. 22QAPCh. 8 - Prob. 23QAPCh. 8 - Prob. 24QAPCh. 8 - Prob. 25QAPCh. 8 - Prob. 26QAPCh. 8 - Prob. 27QAPCh. 8 - Prob. 28QAPCh. 8 - Prob. 29QAPCh. 8 - Prob. 30QAPCh. 8 - Prob. 31QAPCh. 8 - Prob. 32QAPCh. 8 - Prob. 33QAPCh. 8 - Prob. 34QAPCh. 8 - Prob. 35QAPCh. 8 - Prob. 36QAPCh. 8 - Prob. 37QAPCh. 8 - Prob. 38QAPCh. 8 - Prob. 40QAPCh. 8 - Prob. 41QAPCh. 8 - Prob. 42QAPCh. 8 - Prob. 43QAPCh. 8 - Prob. 44QAPCh. 8 - Prob. 1DPCh. 8 - Prob. 2DPCh. 8 - Prob. 3DPCh. 8 - Prob. 4DPCh. 8 - Prob. 5DPCh. 8 - Prob. 6DPCh. 8 - Prob. 7DPCh. 8 - Prob. 8DPCh. 8 - Prob. 1SSPCh. 8 - Prob. 2SSPCh. 8 - Prob. 1FEQPCh. 8 - Prob. 2FEQPCh. 8 - Prob. 3FEQPCh. 8 - Prob. 4FEQP
Knowledge Booster
Similar questions
- A ROP (Return-Oriented Programming) attack can be used to execute arbitrary instructions by chaining together small pieces of code called "gadgets." Your goal is to create a stack layout for a ROP attack that calls a function located at '0x4018bd3'. Below is the assembly code for the function 'getbuf', which allocates 8 bytes of stack space for a 'char' array. This array is then passed to the 'gets' function. Additionally, you are provided with five useful gadgets and their addresses. Use these gadgets to construct the stack layout. Assembly for getbuf 1 getbuf: 2 sub $8, %rsp 3 mov %rsp, %rdi 4 call gets 56 add $8, %rsp ret #Allocate 8 bytes for buffer #Load buffer address into %rdi #Call gets with buffer #Restore the stack pointer #Return to caller. Stack Layout (fill in Gadgets each 8-byte section) Address Gadget Address Value (8 bytes) 0x4006a7 pop %rdi; ret 0x7fffffffdfc0 Ox4006a9 pop %rsi; ret 0x7fffffffdfb8 0x4006ab pop %rax; ret 0x7fffffffdfb0 0x7fffffffdfa8 Ox4006ad mov %rax,…arrow_forwardIn each of the following C code snippets, there are issues that can prevent the compilerfrom applying certain optimizations. For each snippet:• Circle the line number that contains compiler optimization blocker.• Select the best modification to improve optimization.1. Which line prevents compiler optimization? Circle one: 2 3 4 5 6Suggested solution:• Remove printf or move it outside the loop.• Remove the loop.• Replace arr[i] with a constant value.1 int sum( int ∗ ar r , int n) {2 int s = 0 ;3 for ( int i = 0 ; i < n ; i++) {4 s += a r r [ i ] ;5 p r i n t f ( ”%d\n” , s ) ;6 }7 return s ;8 }2. Which line prevents compiler optimization? Circle one: 2 3 4 5 6Suggested solution:• Move or eliminate do extra work() if it’s not necessary inside the loop.• Remove the loop (but what about scaling?).• Replace arr[i] *= factor; with arr[i] = 0; (why would that help?).1 void s c a l e ( int ∗ ar r , int n , int f a c t o r ) {2 for ( int i = 0 ; i < n ; i++) {3 a r r [ i ] ∗= f a c t o r…arrow_forward123456 A ROP (Return-Oriented Programming) attack can be used to execute arbitrary instructions by chaining together small pieces of code called "gadgets." Your goal is to create a stack layout for a ROP attack that calls a function located at 'Ox4018bd3'. Below is the assembly code for the function 'getbuf, which allocates 8 bytes of stack space for a 'char' array. This array is then passed to the 'gets' function. Additionally, you are provided with five useful gadgets and their addresses. Use these gadgets to construct the stack layout. Assembly for getbuf 1 getbuf: sub mov $8, %rsp %rsp, %rdi call gets add $8, %rsp 6 ret #Allocate 8 bytes for buffer #Load buffer address into %rdi #Call gets with buffer #Restore the stack pointer #Return to caller Stack each Layout (fill in Gadgets 8-byte section) Address Gadget Address Value (8 bytes) 0x7fffffffdfc0 0x7fffffffdfb8 0x7fffffffdfb0 0x7fffffffdfa8 0x7fffffffdfa0 0x7fffffffdf98 0x7fffffffdf90 0x7fffffffdf88 Original 0x4006a7 pop %rdi;…arrow_forward
- Determine the required solids retention time (SRT) of a completely mixed activated sludge aeration tank for a conventional activated sludge system treating a design flow rate of 34,560 m³/d, where the effluent standards are 30.0 mg/L for BODs and 30.0 mg/L for total suspended solids (TSS). Assume that the BOD5 of the effluent TSS is 70% of the TSS concentration. Assume the BODs concentration leaving the primary clarifier is 128 mg/L that the MLVSS concentration (X₂) is 2,500 mg/L. Assume the following values for the growth constants: Ks 100 mg/L BODS ⚫ Hm - 2.5 d 1 kd = 0.050 d 1 Y = 0.50 mg VSS/mg BODs removed Express your answer in days and round to the nearest 0.1.arrow_forwardCharacter Hex value || Character Hex value | Character Hex value 'A' 0x41 יני Ox4a 'S' 0x53 0x42 'K' 0x4b 'T" 0x54 0x43 'L' Ox4c 0x55 0x44 'M' Ox4d 0x56 0x45 'N' Ox4e 'W' 0x57 0x46 Ox4f 'X' 0x58 0x47 'P' 0x50 'Y' 0x59 'H' 0x48 'Q' 0x51 'Z' Охба 'T' 0x49 'R' 0x52 '\0' 0x00 Now consider what happens on a Linux/x86 machine when callfoo calls foo with the input string "ZYXWVUTSRQPONMLKJIHGFEDCBA". A. On the left draw the state of the stack just before the execution of the instruction at address Ox40053a; make sure to show the frames for callfoo and foo and the exact return address, in Hex at the bottom of the callfoo frame. Then, on the right, draw the state of the stack just after the instruction got executed; make sure to show where the string "ZYXWVUTSRQPONMLKJIHGFEDCBA" is placed and what part, if any, of the above return address has been overwritten. B. Immediately after the ret instruction at address 0x400543 executes, what is the value of the program counter register %rip? (That is…arrow_forwardProblem: Textbook Problem 10.52 and 10.53. Determine the moment of inertia of the area about the x- axis and the y-axis. 3 in. 3 in. 6 in. 2 in. 4 in. xarrow_forward
- Draw out the way each of these structs looks in memory, including padding! Number the offsets in memory. 1 struct okay Name 2 { short a; 3 4 long number; 5 int also_a_number; 6 7 }; char* text; 1 struct badName 2 { 3 4 5 }; short s; struct okay Name n;arrow_forwardConsider the circuit diagram below, where the load is indicated by the dashed box. Compute the apparent power and power factor of the load. Use power factor correction to correct the power factor of the load to 0.8 lagging. Your solution should include a circuit diagram of your modified circuit.arrow_forwardYou can create your own AutoCorrect entries. Question 19Select one: True Falsearrow_forward
- By default, all text is formatted using the Normal Style. Question 20Select one: True Falsearrow_forwardNode.js, Express.js, MongoDB, and Mongoose: Create, Read, Update, and Delete Operations There is a program similar to this assignment given as the last example, CRUD, in the lecture notes for the week that discusses the introduction to MongoDB. Basically, you need to adapt this example program to the data given in this assignment. This program will take more time that previous assignments. So, hopefully you'll start early and you've kept to the schedule in terms of reading the lecture notes. You can use compass if you want to create this database. Or, when your connection string in the model runs it will create the database for you if one does not yet exist. So, ⚫ create a Mongoose model based on the info given below. The index.html page is given in the same folder as these notes. • When you successfully run index.js and instantiate the model, your database is created. • Once the database is created, you need to perfect the addCar route so you can add data using the index.html page. •…arrow_forwardConsider the circuit diagram below. What is the power factor of the circuit? Is it leading or lagging? Draw the power factor triangle of the circuit without calculating the individual power consumption of each component.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsEngineeringISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncEssentials Of Materials Science And EngineeringEngineeringISBN:9781337385497Author:WRIGHT, Wendelin J.Publisher:Cengage,Industrial Motor ControlEngineeringISBN:9781133691808Author:Stephen HermanPublisher:Cengage Learning
- Basics Of Engineering EconomyEngineeringISBN:9780073376356Author:Leland Blank, Anthony TarquinPublisher:MCGRAW-HILL HIGHER EDUCATIONStructural Steel Design (6th Edition)EngineeringISBN:9780134589657Author:Jack C. McCormac, Stephen F. CsernakPublisher:PEARSONFundamentals of Materials Science and Engineering...EngineeringISBN:9781119175483Author:William D. Callister Jr., David G. RethwischPublisher:WILEY

MATLAB: An Introduction with Applications
Engineering
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

Essentials Of Materials Science And Engineering
Engineering
ISBN:9781337385497
Author:WRIGHT, Wendelin J.
Publisher:Cengage,

Industrial Motor Control
Engineering
ISBN:9781133691808
Author:Stephen Herman
Publisher:Cengage Learning

Basics Of Engineering Economy
Engineering
ISBN:9780073376356
Author:Leland Blank, Anthony Tarquin
Publisher:MCGRAW-HILL HIGHER EDUCATION

Structural Steel Design (6th Edition)
Engineering
ISBN:9780134589657
Author:Jack C. McCormac, Stephen F. Csernak
Publisher:PEARSON

Fundamentals of Materials Science and Engineering...
Engineering
ISBN:9781119175483
Author:William D. Callister Jr., David G. Rethwisch
Publisher:WILEY