| **Derivative Instruments and Hedging Activities**                       | 12 Months Ended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
||
| **Derivative Instruments and Hedging Activities Disclosure [Abstract]** |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIES                           | DERIVATIVE INSTRUMENTS AND HEDGING ACTIVITIESIn the normal course of business, we are exposed to global market risks, including the effect of changes in foreign currency exchange rates. We use derivative instruments to manage our exposure to such risks and formally document all relationships between hedging instruments and hedged items, as well as the risk-management objective and strategy for undertaking hedge transactions. We recognize all derivatives in our Consolidated Balance Sheet at fair value. We do not hold or issue derivatives for speculative purposes.At July 1, 2016, we had open foreign currency forward contracts with an aggregate notional amount of $53 million, which were classified as fair value hedges. This compares with open foreign currency forward contracts with an aggregate notional amount of $74 million at July 3, 2015, of which $73 million were classified as fair value hedges and $1 million were classified as cash flow hedges. At July 1, 2016, contract expiration dates ranged from 14 days to 20 months with a weighted average contract life of 1 month.Additionally, as described below in the “Interest Rate Risk” sections, during the third quarter of fiscal 2015, we entered into interest-rate swap agreements to hedge against interest-rate risk related to the anticipated issuance of long-term fixed-rate debt to redeem certain of our long-term debt securities and to fund a portion of the cash consideration payable under the merger agreement with Exelis, which were terminated during the fourth quarter of fiscal 2015. See Note 4: Business Combinations and Note 13: Long-Term Debt for additional information. Exchange Rate Risk — Balance Sheet HedgesTo manage the exposure in our balance sheet to risks from changes in foreign currency exchange rates, we implement fair value hedges. More specifically, we use foreign currency forward contracts and options to hedge certain balance sheet items, including foreign currency denominated accounts receivable and inventory. Changes in the value of the derivatives and the related hedged items are reflected in earnings, in the “Cost of services” line item in our Consolidated Statement of Income. As of July 1, 2016, we had outstanding foreign currency forward contracts denominated in the British Pound, Australian Dollar, Singapore Dollar, Mexican Peso, Norwegian Krone, Canadian Dollar and Brazilian Real to hedge certain balance sheet items. The net gains or losses on foreign currency forward contracts designated as fair value hedges were not material in fiscal 2016, 2015 or 2014. In addition, no amounts were recognized in earnings in fiscal 2016, 2015 or 2014 related to hedged firm commitments that no longer qualify as fair value hedges.Exchange Rate Risk — Cash Flow HedgesTo manage our exposure to currency risk and market fluctuation risk associated with anticipated cash flows that are probable of occurring in the future, we implement cash flow hedges. More specifically, we use foreign currency forward contracts and options to hedge off-balance sheet future foreign currency commitments, including purchase commitments to suppliers, future committed sales to customers and intersegment transactions. These derivatives are being used to hedge currency exposures from cash flows anticipated across our business segments. We also have hedged U.S. Dollar payments to suppliers to maintain our anticipated profit margins in our international operations. As of July 1, 2016, we had outstanding foreign currency forward contracts denominated in the British Pound to hedge certain forecasted transactions.These derivatives have only nominal intrinsic value at the time of purchase and have a high degree of correlation to the anticipated cash flows they are designated to hedge. Hedge effectiveness is determined by the correlation of the anticipated cash flows from the hedging instruments and the anticipated cash flows from the future foreign currency commitments through the maturity dates of the derivatives used to hedge these cash flows. These financial instruments are marked-to-market using forward prices and fair value quotes with the offset to other comprehensive income, net of hedge ineffectiveness. Gains and losses in accumulated other comprehensive income are reclassified to earnings when the related hedged item is recognized in earnings. The ineffective portion of a derivative’s change in fair value is immediately recognized in earnings. The cash flow impact of our derivatives is included in the same category in our Consolidated Statement of Cash Flows as the cash flows of the related hedged items.The net gains or losses from cash flow hedges recognized in earnings or recorded in other comprehensive income, including gains or losses related to hedge ineffectiveness, were not material in fiscal 2016, 2015 or 2014. We do not expect the net gains or losses recognized in the “Accumulated other comprehensive loss” line item in our Consolidated Balance Sheet as of July 1, 2016 that will be reclassified to earnings from accumulated other comprehensive income within the next 12 months to be material.Interest Rate Risk — Cash Flow HedgesAs noted above, fixed-rate long-term debt issued in fiscal 2015 was to be used to redeem certain of our fixed-rate long-term debt securities and to fund a portion of the cash consideration payable under the merger agreement with Exelis. More specifically, in the fourth quarter of fiscal 2015, we issued new 10-year and 30-year fixed-rate debt, $800 million of which we used to fund the redemption of the entire outstanding $400 million principal amount of our 5.95% notes, due December 1, 2017 and the entire outstanding $350 million principal amount of our 6.375% notes, due June 15, 2019 at the “make-whole” redemption prices determined as set forth in those notes (see Note 13: Long-Term Debt for additional information). The issuance of this debt was not dependent on the closing of the Exelis acquisition. Prior to the issuance of this debt, on March 5, 2015 and March 10, 2015, we entered into six interest-rate swap agreements (“swaps”) with a notional value of $1 billion. We designated four of these swaps, with a notional value of $800 million, as cash flow hedges to mitigate the risk attributable to the benchmark interest rate’s effect on the probable cash flows of 10-year and 30-year fixed-rate debt to be issued. These swaps were terminated as planned in connection with the related debt issuance during the fourth quarter of fiscal 2015, and because interest rates decreased during the period of the swaps, we made cash payments to our counterparties and recorded after-tax losses totaling $24 million in the “Accumulated other comprehensive loss” line in our Consolidated Balance Sheet. The accumulated other comprehensive income balances will be amortized to interest expense over the lives of the related fixed-rate debt securities. The ineffective portion of these swaps’ change in fair value was immediately recognized in earnings in the “Interest expense” line item in our Consolidated Statement of Income, and this amount was immaterial. We classified the debt issuance proceeds, together with the cash outflow from the termination of these swaps, as financing cash flows in fiscal 2015 in our Consolidated Statement of Cash Flows.Interest Rate Risk — Economic HedgesAs noted above, on March 5, 2015 and March 10, 2015, we entered into six swaps with a notional value of $1 billion. We entered into two of these swaps, with a notional value of $200 million, to mitigate the risk attributable to the benchmark interest rate’s effect on the cash flows of 10-year and 20-year fixed-rate debt anticipated to be issued to fund a portion of the cash consideration payable under the merger agreement with Exelis. These swaps (economic hedges) were not designated to receive hedge accounting treatment. These swaps were terminated as planned in the fourth quarter of fiscal 2015, and as a result, an immaterial gain was recorded in interest expense. We classified the debt issuance proceeds, together with the cash inflow from the termination of these swaps, as financing cash flows in fiscal 2015 in our Consolidated Statement of Cash Flows.Credit RiskWe are exposed to the risk of credit losses from non-performance by counterparties to the financial instruments discussed above, but we do not expect any of the counterparties to fail to meet their obligations. To manage credit risks, we select counterparties based on credit ratings, limit our exposure to any single counterparty under defined guidelines and monitor the market position with each counterparty.The amount of assets and liabilities related to foreign currency forward contracts in our Consolidated Balance Sheet as of July 1, 2016 was immaterial. See our Consolidated Statement of Comprehensive Income for additional information on changes in accumulated other comprehensive loss for the three fiscal years ended July 1, 2016. |

| X                                                                                                                                                                                                                                     |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6441202&loc=d3e80720-113993Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5624171-113959Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=64837297&loc=d3e41620-113959Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5624163-113959Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5579240-113959Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4D -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5624177-113959Reference 7: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 30 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=35736893&loc=d3e80784-113994Reference 8: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=64837297&loc=d3e41641-113959Reference 9: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5579245-113959Reference 10: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4H -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5624258-113959Reference 11: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 30 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=35736893&loc=d3e80748-113994Reference 12: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4K -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5708775-113959Reference 13: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4J -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5708773-113959Reference 14: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5618551-113959Reference 15: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5580258-113959Reference 16: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4E -URI http://asc.fasb.org/extlink&oid=64837297&loc=SL5624181-113959Reference 17: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 25 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6886632&loc=d3e76258-113986Reference 18: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=64837297&loc=d3e41638-113959Reference 19: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(n)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690
+ Details**Name:**us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock**Namespace Prefix:**us-gaap_**Data Type:**nonnum:textBlockItemType**Balance Type:**na**Period Type:**duration |