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, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
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, 30.10.2020 19:50
Questions on the website: 13722363