subject
Engineering, 24.10.2019 05:00 Arealbot

Given an integer representing a 10-digit phone number, output the area code, prefix, and line number, separated by hyphens. ex: if the input is: 8005551212 the output is: 800-555-1212 hint: use % to get the desired rightmost digits. ex: the rightmost 2 digits of 572 is gotten by 572 % 100, which is 72. hint: use // to shift right by the desired amount. ex: shifting 572 right by 2 digits is done by 572 // 100, which yields 5. (recall integer division discards the fraction). for simplicity, assume any part starts with a non-zero digit. so 999-011- is not allowed.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
You know the right answer?
Given an integer representing a 10-digit phone number, output the area code, prefix, and line number...
Questions
question
Mathematics, 14.01.2021 22:20
question
Mathematics, 14.01.2021 22:20
question
Physics, 14.01.2021 22:20
question
Mathematics, 14.01.2021 22:20
question
Mathematics, 14.01.2021 22:20
Questions on the website: 13722363